[GRASSLIST:6957] Re: Lat long; illegal latitude

Martin Wegmann wegmann at biozentrum.uni-wuerzburg.de
Tue May 31 05:14:53 EDT 2005


On Wednesday 25 May 2005 10:38, Markus Neteler wrote:
> Unfortunately the problem is still open (I ran into it recently again
> with global MODIS data). The only way I found so far (without hacking
> GRASS) was to make the map smaller with gdal_translate. Of course
> not the preferred way...

I made the map smaller, but the problem remains. How small does it have to be?

[...]
> > r.in.gdal input=/mnt/hdg1/ndvi_mask.img output=test -o -e
> > Over-riding projection check.
> > Proceeding with import...
> > WARNING: G_set_window(): Illegal latitude for North
> >
> > Using GRASS 6.1 cvs minutes ago.
>
> Please post the coordinates section of
>
>  gdalinfo /mnt/hdg1/ndvi_mask.img

gdalinfo /mnt/hdg1/africa_mask.img
Driver: HFA/Erdas Imagine Images (.img)
Size is 3308, 2303
Coordinate System is:
PROJCS["Lambert Azimuthal Equal-area",
    GEOGCS["Sphere of Radius 6370997m",
        DATUM["Sphere of Radius 6370997m",
            SPHEROID["Sphere of Radius 6370997m",6370997,0],
            TOWGS84[0,0,0,0,0,0,0]],
        PRIMEM["Greenwich",0],
        UNIT["degree",0.0174532925199433]],
    PROJECTION["Lambert_Azimuthal_Equal_Area"],
    PARAMETER["latitude_of_center",0],
    PARAMETER["longitude_of_center",20],
    PARAMETER["false_easting",0],
    PARAMETER["false_northing",0],
    UNIT["meters",1]]
Origin = (-3995068.181818,1875795.454545)
Pixel Size = (1000.00000000,-1000.00000000)
Corner Coordinates:
Upper Left  (-3995068.182, 1875795.455) ( 17d44'19.50"W, 16d 2'0.95"N)
Lower Left  (-3995068.182, -427204.545) ( 16d36'16.52"W,  3d38'54.28"S)
Upper Right ( -687068.182, 1875795.455) ( 13d36'30.94"E, 16d54'18.15"N)
Lower Right ( -687068.182, -427204.545) ( 13d48'27.40"E,  3d50'13.41"S)
Center      (-2341068.182,  724295.455) (  1d16'34.00"W,  6d24'19.75"N)
Band 1 Block=64x64 Type=Byte, ColorInterp=Palette
  Min=0.000 Max=1.000
  Overviews: 827x576, 414x288, 207x144, 104x72, 52x36
Metadata:
  STATISTICS_MINIMUM=0
  STATISTICS_MAXIMUM=1
  STATISTICS_MEAN=0.57226930752748
  STATISTICS_MEDIAN=1
  STATISTICS_MODE=1
  STATISTICS_STDDEV=0.49474961275331
  STATISTICS_HISTONUMBINS=2
  STATISTICS_HISTOMIN=0
  STATISTICS_HISTOMAX=1
  LAYER_TYPE=thematic
  STATISTICS_HISTOBINVALUES=3258591|4359733|
  Color Table (RGB with 2 entries)
    0: 255,255,255,255
    1: 210,210,210,0




More information about the grass-user mailing list