[GRASS-dev] netcdf import has flipped image (North is
SouthandEast is West)
Chemin, Yann (IWMI)
Y.Chemin at cgiar.org
Wed Jun 1 04:29:45 EDT 2011
Same result with gdal_translate
Version: WinGRASS latest TRUNK SVN
gdal_translate version packaged with WinGRASS is GDAL 1.8.0, released
2011/01/12
From: grass-dev-bounces at lists.osgeo.org
[mailto:grass-dev-bounces at lists.osgeo.org] On Behalf Of Chemin, Yann
(IWMI)
Sent: Wednesday, June 01, 2011 1:51 PM
To: grass-dev at lists.osgeo.org
Subject: RE: [GRASS-dev] netcdf import has flipped image (North is
SouthandEast is West)
Sorry was testing on gdal_translate too...
GRASS script here.
-----------------------
#Northward wind netcdf files
for file in *vas*nc
do
r.in.gdal -o input="NETCDF:"$file":northward_wind"
output=$(echo $file | sed 's/\.nc//g')_northwardwind --overwrite
done
From: grass-dev-bounces at lists.osgeo.org
[mailto:grass-dev-bounces at lists.osgeo.org] On Behalf Of Chemin, Yann
(IWMI)
Sent: Wednesday, June 01, 2011 1:48 PM
To: grass-dev at lists.osgeo.org
Subject: [GRASS-dev] netcdf import has flipped image (North is South
andEast is West)
>From IPCC website:
http://www.ipcc-data.org/cgi-bin/downl/ar4_nc/vas/CNCM3_SRA1B_vas_c30b.t
ar
#Northward wind netcdf files
for file in *vas*nc
do gdal_translate -of ENVI "NETCDF:"$file":northward_wind" ENVI/$(echo
$file | sed 's/\.nc//g')_northwardwind
done
Result is a flipped image (North is South and East is West)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/grass-dev/attachments/20110601/196c635c/attachment.html
More information about the grass-dev
mailing list