Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use cloud probability layer for each S2 scene (s2cloudless) #164

Closed
dbuscombe-usgs opened this issue Jul 26, 2023 · 2 comments
Closed

Use cloud probability layer for each S2 scene (s2cloudless) #164

dbuscombe-usgs opened this issue Jul 26, 2023 · 2 comments
Assignees
Labels
enhancement New feature or request V2 for version 2 of coastseg

Comments

@dbuscombe-usgs dbuscombe-usgs added enhancement New feature or request V2 for version 2 of coastseg labels Jul 26, 2023
@2320sharon
Copy link
Collaborator

This issue sounds like it belongs in coastsat package. I'm going to move it there.

@2320sharon
Copy link
Collaborator

  • This issue was developed on branch issue/164.
  • This feature is now available in coastseg version 1.1.0.dev2 pip install coastseg==1.1.0.dev2
  • coastsat_package version 0.1.21 contains S2 cloudless band as well as all the updated code and it has been updated to make it backwards compatible.

ChangeLog

CoastSeg

  1. filter_metadata
  • backwards compatible with old S2 imagery
  1. edit_metadata
  • backwards compatible with old S2 imagery

CoastSat_package

1. SDS_preprocess.read_bands

  • modified this function to be able to read bands from the new and old S2 imagery. New imagery contains 5 raster bands and old S2 imagery contains 4 raster bands
  1. SDS_download.get_metadata
  • writes the new field im_dimensions to the metadata.txt
  • optionally writes im_quality and im_dimensions to file if they exist
  1. SDS_download.read_metadata_file
  • reads new field for im_width and im_height which are used to create im_dimensions in metadata.txt
  • converts the metadata values to the correct data types and can read metadata files regardless if they contain im_quality and im_dimensions or not.
  1. SDS_download.retrieve_images
  • now reads for more quality flags from S2
  • no longer saves acc_georef 1 for PASSED image quality for S2 imagery
  • saves the new cloudless band for S2 imagery

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request V2 for version 2 of coastseg
Projects
None yet
Development

No branches or pull requests

2 participants