-
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
Problem in projection of Grid DSS file #25
Comments
You are right. utils.py was missing SHG_WKT value. I have added statement to import this value. You may copy util.py from repository to your install location. I will update the wheel files later. |
Thank you! Now it runs without an error but when I use DSSVue to visualize it, I see the record is written but it doesn't open it (doesn't show the plot or grid info)! However, when I use the "specified" as the "grid_type", I can see the grid plot and and grid info! Is the detailed info CRS for "SHG_WKT" is defined somewhere in the scripts? I only could find this definition in the "SHG_WKT = SHG_SRC_DEFINITION" in the "constants.pyx" file but I think the following info should be defined somewhere, am I correct or I am missing something? |
You can find the value of SHG_SRC_DEFINITION in the header file. Which version of HEC-DSSVue are you using? |
Thank you! I am using Version 3.2.3! Not sure, why the DSSvue doesn't show the recorded, although it is written to the file. |
Can you post pathname for the grid record? It may have incorrect D- and E- parts. |
I notice something. I installed the pydsstools through the wheels and now when I checked, I see the "external" folder doesn't exist in the src folder! I couldn't install the tool from source code, so I used the wheels! Can I just copy the external folder in my install location? and here is the pathname: |
The install location is not supposed to have the external folder. The external folder is used while building the library from source. The purpose of the wheel files is to bypass the "build from source" or compilation step. Can you remove the dates in the pathname and see if DSSVue shows the grid? |
SHG is an standard grid system for United States. Are you sure your xmin and ymax values are consistent with SHG grid? |
Has this been resolved? I am having the same or similar issue. I am unable to get anything other than the 'specified' grid type to work. Using the 'specified' grid type allows me to view the grid in HEC-DSSVue but gives me issues when reading the resulting grid in HEC-HMS. If I try 'shg' or 'albers' as the grid type the dss file is populated with records but I am unable to view them. |
I am trying to create Spatial Grid DSS and the put_grid function works just fine when I use "specified" as grid type. But if want to create the dss grid in SHG CRS, I get the following error:
grid_info['grid_crs'] = SHG_WKT
NameError: name 'SHG_WKT' is not defined
This error is related to from related to utils.py (line 192-195). It seems the SHG_WKT is variable but no where is defined. Does anyone know who should I resolve the issue?
Thank you!
The text was updated successfully, but these errors were encountered: