[GRASS-user] Copy raster from xy location to latlong

Paulo Marcondes paulomarcondes at gmail.com
Wed Aug 6 17:01:27 EDT 2008

2008/8/6 William Hudspeth <bhudspeth at edac.unm.edu>:
> Thanks for responding.
> I think I was a little unclear in my original description. My
> xy-location raster is stored as pixel values (720 rows and 1440
> columns, with the origin  (0, 0) at the bottom left corner),
> such that an individual pixel might have a coordinate of 125, 256.
> I need to somehow "project" this xy location raster into a lat long location where

well, r.in.gdal might do the trick.
it can even create a new location with the parameters specified in the
HDF header.

try gdalinfo to see if there's any projection info, then r.in.gdal
in=HDF_file out=rastername location=HDF_location

Paulo Marcondes = PU1/PU2PIX
-22.915 -42.224 = GG86jc

More information about the grass-user mailing list