Skip to content

Accept empty watermaskfile and canopycoverfile in reconstructSWE - #7

Open
leonzcode wants to merge 1 commit into
edwardbair:masterfrom
leonzcode:fix-reconstructswe-empty-validators
Open

Accept empty watermaskfile and canopycoverfile in reconstructSWE#7
leonzcode wants to merge 1 commit into
edwardbair:masterfrom
leonzcode:fix-reconstructswe-empty-validators

Conversation

@leonzcode

Copy link
Copy Markdown
Contributor

The optional watermaskfile and canopycoverfile parameters default to [], but their validators only accept char. The WUS entry function passes [] when neither file is used, so the WY2025 Stage 2 run stopped during argument parsing.

This lets those two parameters accept empty values as intended. Real filenames behave as before.

Both parameters default to [], but their validators required ischar, so
explicitly passing the empty default errored. The WUS entry functions
forward these arguments as [] when no files are supplied. Empty now
validates and keeps its existing meaning: no canopy file (cc=zeros) and
a water mask derived from the fSCA no-data cells. No behavior change
when real filenames are passed.
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.

1 participant