[GRASS-user] r.in.gdal global raster incorrect extents
Nikos Alexandris
nikos.alexandris at felis.uni-freiburg.de
Mon Oct 13 19:18:26 EDT 2008
On Mon, 2008-10-13 at 16:13 -0700, Jamie Adams wrote:
> Thanks for the suggestions. I opened the image up in python using
> gdal, looked at the geotransform and found that the image is
> ever-so-slightly shifted west (-180.00000000012497). Hence the
> negative W-E center. Maybe this is why GRASS thinks it has a 180E
> origin also, though I don't know.
>
> I checked the region - same problem - then set it manually and
> re-imported. Same results. In the end I was able to assign correct
> extents using r.region. Though the boundary isn't exactly at 180W, I
> think nine 0s after the decimal point is a bit much. :-)
>
> Thanks again.
>
> -Jamie
Jamie,
would you share some python command examples (using gdal)? I am learning
python stuff (although very slowly) and I would like to have some
examples as the one you did.
Thank you, Nikos
More information about the grass-user
mailing list