Re: accessing IDL internal (aka "built-in") routines [message #87383 is a reply to message #87382] |
Thu, 30 January 2014 04:32   |
Haje Korth
Messages: 651 Registered: May 1997
|
Senior Member |
|
|
Tom,
I am glad you found a solution. Thank you for sharing it with us.
Good luck,
Haje
On Thursday, January 30, 2014 1:08:50 AM UTC-5, mookie...@gmail.com wrote:
> Hi Everyone,
>
>
>
> Thanks Haje, Luke, and Mike for posting on this topic. The solution we came up with turns out to be quite simple. We installed GDAL and access 'gdalwarp' using 'spawn' from GDL, thus bypassing the need to use IDL internal routines for re-projecting altogether. For example from the GDL prompt to re-project a MODIS image from geographic projection (Lat/Lons) to GDA94 MGA Zone 55 (i.e., ~ UTM 55S):
>
>
>
> GDL> infn = '/tmp/MOD09GA.hdf'
>
> GDL> outfn = '/tmp/MOD09GA_MGA55.tif'
>
> GDL> EPSG='EPSG:28355'
>
> GDL> spawn, 'gdalwarp -t_srs '+ EPSG + ' '+infn + ' ' + outfn
>
>
>
> Cheers,
>
> Tom
|
|
|