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

importer interpolating with input grids no data value #16

Open
danhamill opened this issue Sep 22, 2020 · 4 comments
Open

importer interpolating with input grids no data value #16

danhamill opened this issue Sep 22, 2020 · 4 comments

Comments

@danhamill
Copy link
Collaborator

When I run importer to clip and resample a daily UA grid to the Truckee Watershed, its interpolating with the input grids nodata value in the lake Tahoe region.

Input grid: 2020_03_22.zip

clipping shape: TruckeeBasinShapefile.zip

Result:
image

@tombrauer
Copy link
Collaborator

Long term solution: I should probably give the user more control over specifying no data values for source data. Short term solution: you can use the sanitizer utility to clean up values above or below a threshold. I would try running the sanitizer on the input grids. When you filter values below a threshold, try leaving the replacement value blank. This should replace values with NaN which is what the importer uses for no data.

@danhamill
Copy link
Collaborator Author

I will give it a try. That sounds like a reasonable workaround. Thanks!

@danhamill
Copy link
Collaborator Author

danhamill commented Jun 8, 2022

Just tested on v0.10.28-rc.6 and the dss records are not tracking no-data during import.

image

image

Wasn't this added in v0.10.28-rc.4?

@tombrauer
Copy link
Collaborator

@danhamill please test v0.10.28-rc.9 I added no data handling to the NetcdfDataReader class.

I'm not sure when the max/min/mean was added to the GridInfo. For all I know it's been there all along, but I haven't paid very close attention. I did just update some DSS dependencies so it could have been a part of that, or it could be a new version of HEC-DSSVue.

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

No branches or pull requests

2 participants