-
Notifications
You must be signed in to change notification settings - Fork 37
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
Records in DSS file written to SHG/Albers is corrupt #34
Comments
@openSourcerer9000 Based on #31, HEC-HMS does not support HEC-DSS 7 format. |
Ouch
So pydsstools and HMS are just not compatible? Is there a legacy pydsstools version which will write these to a DSS-6? Or is there some way to convert a grid in DSS 7 to DSS 6? I think beyond that, there is still something going on with this Albers projection, as DSSVue isn't able to read the grids either, yet their pathnames still show up in the list. |
I have not had any success converting grids in a version 7 dss file to version 6. I would suggest using the HEC utility vortex for your HMS grid processing needs. I believe the vortex tools come with HMS versions >= 4.9. |
@openSourcerer9000 from the errors I'd say you should check if the filepath parts are all correct, especially if using 'time' grids. What I don't get is why would you use the 'time' grid version for parameters? One error message is The error As mentioned above, HEC vortex is a solid solution to get your data from different raster file formats into dss files. The only thing they sadly don't support right now is Geotiff raster stacks. From them I also know, that HEC-DSS 7 format should work with HEC-HMS, so the error has to come from something else. Also have you checked if all georeferenced data is using the the reference system and projection? I still hope to find a solution to write valid grids with with pydsstools, as I like it's functionality especially when it comes to large data sets. |
I have contacted HEC to resolve this issue. I will provide an update about my findings. Thanks everybody for your feedback. |
Can anybody provide me grid data (created using Vortex or another software) that works in HEC-HMS? |
So I'm trying to write a DSS file in SHG. The data is in EPSG:5070 with 20m cell size, snapped to the SHG grid (all x and y values are multiples of 20). This is what I'm putting into my grid info:
When I use 'grid_type':'specified', it produces a valid DSS, but HMS complains that my gridded deficit and constant loss params are bad, which I am assuming is due to the projection. When I try to specify 'albers' or 'shg', I can view the record names in DSSVue, but when I try to plot or tabulate nothing comes up. In the HMS DSS viewer it pops up an error 'there is no record' when I try to select the visible pathnames.
I'm thinking it may be something to do with this operation in
grid_accessors.py
, I'm not sure:I was able to add the same grids through vortex (and run the HMS method successfully), so I read those into pydsstools and their grid_type was actually 'albers-time'. Trying 'albers-time' in my own results in this error:
py 3.9
pydsstools 2.2
The text was updated successfully, but these errors were encountered: