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

Version of gridded data #160

Closed
vcloarec opened this issue Nov 13, 2022 · 4 comments
Closed

Version of gridded data #160

vcloarec opened this issue Nov 13, 2022 · 4 comments

Comments

@vcloarec
Copy link
Contributor

Hi,
I am playing a bit with gridded data in DSS files. I am trying to access to some gridded data, but I am stuck at the level of gridStruct->_structVersion that has to be equal to VERSION_100 to be able to be read, see here:

if (gridStruct->_structVersion == VERSION_100) {

I am wondering what is defining this version records in HEC world.

Thanks.

@vcloarec
Copy link
Contributor Author

I am trying to access to file : https://github.com/HydrologicEngineeringCenter/dss-test-data/blob/ed944e53f66bf68c5977195a71ff2502faa9c05f/grid/v7snow_with_date.dss
But with tihs file, gridStruct->_structVersion == 300

@vcloarec
Copy link
Contributor Author

OK, got it, I've seen how to handle this here: https://github.com/HydrologicEngineeringCenter/hec-dss/tree/master/heclib/grid
But does the code present in the "grid" part is exposed somewhere in this library or other one ?

@ktarbet
Copy link
Contributor

ktarbet commented Nov 14, 2022

That directory hec-dss/heclib/grid is for read only support for DSS version 6 grids. DSS 6 will be deprecated in the future.

Here is an example program that creates DSS 7 grids from a tiff file.
https://github.com/HydrologicEngineeringCenter/tiffdss

Here are some notes about DSS6 and DSS7.
gyanz/pydsstools#36

@vcloarec
Copy link
Contributor Author

@ktarbet , thanks a lot! It helps me a lot to write a valid DSS grid.

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