Skip to content

[FEAT] Add a unique image mode for Dataref_water project - #1

Open
NICOLAS-GAEL wants to merge 6 commits into
CNES:masterfrom
NICOLAS-GAEL:master
Open

[FEAT] Add a unique image mode for Dataref_water project#1
NICOLAS-GAEL wants to merge 6 commits into
CNES:masterfrom
NICOLAS-GAEL:master

Conversation

@NICOLAS-GAEL

@NICOLAS-GAEL NICOLAS-GAEL commented Jul 16, 2019

Copy link
Copy Markdown

The chain has been modified to compute a mask on a single image with a configurable resolution.
Moreover one additional band, the slope, is now computed and added in the composite product generated in input by ALCD.
Some VRT files are created to consult easily the NDVI, NDWI and RGB images.
It is also possible to take samples without buffer zone around.
Processing time enhancement ("in memory" process for intermediate files, RAM parameter for OTB application, some files no more generated -contour_labels.tif, contours_superposition.png, colorized_classif.png, quicklook.png-, confidence map generation in option).

@sylvesterkaczmarek sylvesterkaczmarek left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image_classification() returns ImageClassifier, but that variable is only created in the shell == False branch. The default shell=True path therefore ends with UnboundLocalError. Please return a value that is defined in both branches.

@sylvesterkaczmarek sylvesterkaczmarek left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One guard regression: (clear_date != None or unique_image != None) is always true with the default unique_image=False (and the CLI also passes "false"), so two-image mode can enter with clear_date=None and pass that into is_valid_date(). Could this require clear_date unless str2bool(unique_image) is actually true?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants