[GRASS-user] Importing DMSP-OLS in an Lat-Lon based Location

Nikos Alexandris nik at nikosalexandris.net
Sat Feb 14 03:27:26 PST 2015


Nikos Alexandris:

>> What is exactly wrong when importing imagery from
>> <http://ngdc.noaa.gov/eog/dmsp/downloadV4composites.html> in a GRASS
>> LL-based Location?

>> gdalinfo for one image reports:
>> Upper Left  (-180.0041667,  75.0041667) (180d 0'15.00"W, 75d 
>> 0'15.00"N)
>> Lower Left  (-180.0041667, -65.0041661) (180d 0'15.00"W, 65d 
>> 0'15.00"S)
>> Upper Right ( 180.0041652,  75.0041667) (180d 0'14.99"E, 75d 
>> 0'15.00"N)
>> Lower Right ( 180.0041652, -65.0041661) (180d 0'14.99"E, 65d 
>> 0'15.00"S)
>> Center      (  -0.0000007,   5.0000003) (  0d 0' 0.00"W,  5d 0' 
>> 0.00"N)

Even Rouault:

> The issue is that your image extends a bit beyond the dateline 
> meridian at the
> west and at the east, which cause coordinate wrap-up.
> You could probably pre-process the image with gdalwarp/gdal_translate 
> with
> something like:
> gdalwarp in.tif out.tif -te -180 -65.0041661 180 75.0041667

[..]

That seems to be enough.  Thank you so much Even.  Nikos


More information about the grass-user mailing list