-
Notifications
You must be signed in to change notification settings - Fork 7
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
Projection issues for rc.4 and rc.5 releases #70
Comments
On the |
Great, thanks. I tested on rc.3 and it had the same 'metre' quirk, rolling back to 10.27 it generated them correctly. I believe the units in the Albers WKT are actually supposed to be 'metre', so it's bizarre that PROJ is finding issue with it. |
I created a new version that adds I also tested v0.10.28-rc.5 and only observed AlbersInfo/SHG grids being written with projection units as "Meter". |
I tried the latest version and actually wasn't able to get it working at all. Importer just creates a blank DSS and then after a while prints out |
Which DSS file version are you writing to? |
Whatever the default is, I'm just letting it create a new one (using Jython, it seems you need to create your own blank DSS when running the standalone GUI, while through Jython or the version bundled in HEC HMS I don't think you have that issue.) |
I saw the behavior where the importer failed to open the dss file. I was not that good at tracking down what exactly caused it, but I would see vortex is waiting for a file handle and got stuck. I was also asking vortex to create a new dss file. I got around the issue by initializing the dss file before I ran importer. When using the jython scripting, I usually add an extra step to the batch file to create the dss files using the DSS jython api. Batch fileecho "Creating blank DSS files..."
C:\jython2.7.2\bin\jython.exe -Djava.library.path="C:\Local_Software\HEC-DSSVue 3.2.3\lib" C:\workspace\Chinle\scripts\vortex\intialize_dss_v6.py
echo "Writing Grids to file..."
set "VORTEX_HOME=C:\Local_Software\vortex-0.10.28-rc.6"
set "PATH=%VORTEX_HOME%\bin;%VORTEX_HOME%\bin\gdal;%PATH%"
set "GDAL_DRIVER_PATH=%VORTEX_HOME%\bin\gdal\gdalplugins"
set "GDAL_DATA=%VORTEX_HOME%\bin\gdal\gdal-data"
set "PROJ_LIB=%VORTEX_HOME%\bin\gdal\projlib"
set "CLASSPATH=%VORTEX_HOME%\lib\*"
C:\jython2.7.2\bin\jython.exe -Djava.library.path=%VORTEX_HOME%\bin;%VORTEX_HOME%\bin\gdal C:\workspace\Chinle\scripts\vortex\import_metsim.py
cmd /k
intialize_dss_v6.pyimport sys
sys.path.append(r"C:\Local_Software\HEC-DSSVue 3.2.3\jar\sys\jythonUtils.jar")
sys.path.append(r"C:\Local_Software\HEC-DSSVue 3.2.3\jar\hec.jar")
sys.path.append(r"C:\Local_Software\HEC-DSSVue 3.2.3\jar\jython-standalone-2.7.0.jar")
sys.path.append(r"C:\Local_Software\HEC-DSSVue 3.2.3\jar\hec-dssvue-3.2.3.jar")
sys.path.append(r"C:\Local_Software\HEC-DSSVue 3.2.3\jar\rma.jar")
try:
from hec.heclib.dss import HecDss
from hec.io import TimeSeriesContainer
print 'Sucessfully found DSS API'
except:
print 'import from DSS failed'
import os
from glob import glob
files = ['Chinle_MetSim_GridMET_30Mins.dss']
for file in files:
root = r'C:\workspace\Chinle\output'
dss_file = root + os.sep + file
fid = HecDss.open(dss_file,6)
fid.close()
del fid |
There is a bug in the javaHeclib v7-HK dependency. When writing to DSS v7, the library enters multi-user access mode and gets bogged down to the point records are never written. I'm updating the dependency now. I'll comment here when a new build is ready. |
The library update is in v0.10.28-rc.7. With the library update to javaHeclib 7-IG you should be able to preform sequential write to DSS v7 as well as DSS v6 files. If no file exists, a DSS v7 file will be created by default. Please test in the latest version. |
So I'm getting a weird issue with v rc.4 where it's writing the horizontal units for Albers SHG as 'metre', as opposed to 'Meters', as previous versions have done.
The problem is, when using this precipitation DSS into HEC-RAS, it hits a runtime error from PROJ complaining about an invalid linear unit, as shown at the bottom of this issue. I'm not sure how PROJ has an issue with 'metre', but it causes this issue.
So I upgraded to the new v rc.5 to try again, and now the Importer example Jython script stopped working:
type object 'mil.army.usace.hec.vortex.geo.WktFactory' has no attribute 'shg'
This is the PROJ error when using the rc.4 'metre' DSS:
The text was updated successfully, but these errors were encountered: