hydroframe / Subsetting

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

SubsetMask fails to identify bounding box on mask with all 0's and 1's #17

Closed arezaii closed 3 years ago

arezaii commented 3 years ago

The SubsetMask class will fail to identify a bounding box if the mask is just 0's and 1's with no bounding box value defined.

Instead of crashing, the class should treat these masks as having all no_data values and identify the bounding box by the 1 values in the mask.