HydrologicEngineeringCenter / HydrologicEngineeringCenter/Vortex
geo not recognized
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 37
- Forks
- 7
- PR merge metrics
- No merged PRs in 30d
Description
I am trying to automate importing of *.nc files. I've taken the script and batch samples here and modified them to work with Jython-Standalone and to work with the vortex installation included in HEC-HMS as follows:
SET "VORTEX_HOME=C:\Program Files\HEC\HEC-HMS\4.10"
SET "PATH=%VORTEX_HOME%\bin;%VORTEX_HOME%\bin\gdal;%PATH%"
SET "PROJ_LIB=%VORTEX_HOME%\bin\gdal\projlib"
SET "GDAL_DATA=%VORTEX_HOME%\bin\gdal\gdal-data"
SET "CLASSPATH=%VORTEX_HOME%\lib\*"
"%VORTEX_HOME%\jre\bin\java.exe" -jar C:\Users\...\jython-standalone-2.7.3.jar C:\Users\...\GRID_Importer\met_data_import.py
and the script met_data_import.py
import sys
sys.path.insert(0, 'C:/Program Files/HEC/HEC-HMS/4.10/lib/vortex-0.10.30.jar')
print sys.path
from mil.army.usace.hec.vortex.io import BatchImporter
from mil.army.usace.hec.vortex.geo import WktFactory
....
....
....
The first import on BatchImporter works just fine.
The problem is that ...geo... is not being recognized and I get a vanilla error message as follows:
File "C:\Users\...\GRID_Importer\met_data_import.py", line 16, in <module>
from mil.army.usace.hec.vortex.geo import WktFactory
ImportError: No module named geo
I have also tried importing other classes e.g. BatchSanitzer and it also works.
Any ideas on what might be the problem?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by rerunning the Jython command with met_data_import.py and comparing the working BatchImporter import with the failing WktFactory import from vortex-0.10.30.jar. Inspect the jar's mil/army/usace/hec/vortex/geo package and verify whether WktFactory is available to the same runtime; done means the geo import works or the missing-class cause is documented.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, python
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100