[gdal-dev] onestep vs twostep reproject and change format

Terry Rankine terry.rankine at csiro.au
Mon Jan 28 18:33:37 PST 2013


Hi Guys

I have an ERS (ermapper) dataset I want to reproject into wsg84 and then
change the file format to netcdf4. I am using GDAL 1.9.2 linked against
netcdf 4.1.3

I get different results using the following.

One step:
* gdalwarp /projects/r17/GA/GSQ_P1247tmig.ers -s_srs "+proj=latlong
+datum=GDA94" -t_srs "+proj=latlong +datum=WGS84" -r cubic -of NETCDF  
-overwrite -co "FORMAT=NC4" -co "COMPRESS=DEFLATE" -co "ZLEVEL=9" -dstnodata
-99999 onestep.nc4

Two step
* gdalwarp -of ERS -s_srs "+proj=latlong +datum=GDA94" -t_srs "+proj=latlong
+datum=WGS84" -r cubic /projects/r17/GA/GSQ_P1247tmig.ers reproj.ers
-dstnodata -99999
* gdal_translate -of netCDF -co "FORMAT=NC4" -co "COMPRESS=DEFLATE" -co
"ZLEVEL=9" -stats reproj.ers reproj.nc4

In fact - the onestep destroys part of my data.
OneStep output
<http://osgeo-org.1560.n6.nabble.com/file/n5030451/onestep.nc4> 

two step output:
<http://osgeo-org.1560.n6.nabble.com/file/n5030451/reproj.nc4> 

Can someone let me know what I am doing wrong? or why it is being chopped
off?

Regards,
Terry



--
View this message in context: http://osgeo-org.1560.n6.nabble.com/onestep-vs-twostep-reproject-and-change-format-tp5030451.html
Sent from the GDAL - Dev mailing list archive at Nabble.com.


More information about the gdal-dev mailing list