hydroframe / Subsetting

Subsetting inputs for ParFlow to run in sub-continental watershed
2 stars 3 forks source link

Correct fix for unit tests #34

Closed vineetbansal closed 3 years ago

vineetbansal commented 3 years ago

Take 2 on the fixing the code to satisfy the unit tests.

Of course we want to zero out values that don't match our desired mask values, but only in the case when we were explicit about the mask_value to begin with. When mask_value=None (the default case now), we don't do any processing, which should keep the unit tests happy, while not causing the domain to blow up in size because it finds +ve values outside the desired domain (which it never clips out).