Closed jbellino-usgs closed 8 years ago
I've seen this before on windows and I think its a problem with the anaconda install of pyproj. I had to install pyproj from the ioos channel: [https://github.com/jswhit/pyproj/issues/17]
Thanks for the tip. After installing pyproj from the ioos (conda install -c https://conda.anaconda.org/ioos pyproj
), the NetCDF export function works.
I'm getting an error that stems from Pyproj when trying to export anything (model, package, array) to NetCDF (and does not occur when exporting to shapefile).
When loading the model, a printout of
projstring
feeding into line 348 ofpyproj\__init__
shows an initialization value of "+units=m +init=epsg:4326
" and then the proj4 string defined in the DIS package: "+proj=aea +lat_1=29.5 +lat_2=45.5 +lat_0=23 +lon_0=-84 +x_0=0 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs
" (note: the units are changed from "ft" to "m", though the correct units are listed in the .nam file). Once theexport
function is called we get the same proj4 string as above and then a second call comes through with a value of "+units=m +init=epsg:4326
" (with a trailing whitespace). Removal of the whitespace does not fix the error.