[Gdal-dev] gdalwarp and lcc irregularly spaced grids

Frank Warmerdam warmerdam at pobox.com
Mon Oct 16 23:16:13 EDT 2006


Stanley Glidden wrote:
> 
> Hi,
> 
> Can Gdal re-project irregular lambert conformal grids stored as NetCDF 
> files?
> 
> 
> If possible I would like to use gdalwarp to project the NCEP North 
> American Regional Reanalysis NetCDF files to Geographic.
> 
> This is what I tried:
> 
> gdalwarp -s_srs '+proj=lcc +ellps=WGS84 +lat_1=50dN +lon_0=107dW 
> +x_0=5632642.22547 +y_0=4612545.65137 +k_0=0.99995696 +units=m +no_defs' 
> -t_srs '+proj=longlat +ellps=GRS80 +datum=wgs84 +no_defs' 
> NETCDF:"air.197901.nc":air test.tif
> 
> This is the error I get:
> 
> ERROR 1: Unable to compute a transformation between pixel/line
> and georeferenced coordinates. There is no affine transformation and no 
> GCPs
> 
> Is there missing required information in the NetCDF files, or is the 
> problem simply that they are irregularly spaced grids?

Stanley,

This means that GDAL does not recognise any georeferencing information
in the NetCDF file.  If it has an "irregular grid" it is unlikely that
anything can be accomplished with GDAL.

Best regards,
-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | President OSGeo, http://osgeo.org




More information about the Gdal-dev mailing list