Re: Need help with map projection conversion in IDL or ENVI [message #88052 is a reply to message #88051] |
Fri, 14 March 2014 19:00   |
Paul Levine
Messages: 29 Registered: February 2008
|
Junior Member |
|
|
On 2014-03-15 01:06:42 +0000, zcwjtt@gmail.com said:
> I've been fighting with this problem for days and have finally given
> up on solving it myself. I hope that someone with more experience
> manipulating maps in IDL/ENVI can offer me some advice and guidance.
>
> I have a geostationary satellite image file (actually many such files)
> that is written as an hdf. The data in the file only have latitude and
> longitude values corresponding to the pixels in the image in the file,
> but without projection parameters.
>
> I guess it is the "Satellite" projection, since the ranges of latitudes
> and longitudes covers a sphere.
>
> I would like to read partial data and change them to another projection
> type, such as Mercator.
> But I don't have any good idea where to start with.
>
> Any suggestions would be most welcome.
Based on what you said, I'm guessing the data are in an equirectangular
projection https://en.wikipedia.org/wiki/Equirectangular_projection
When selecting projections in ENVI, it is called "Geographic Lat/Lon".
The only catch is, ENVI can only handle it if the latitude and
longitudes between projections are equal (e.g., 1 degree by 1 degree).
You need to know the latitude and longitude of any single pixel (what
ENVI calls the "tie point") as well as where that single pixel is in
the image. Usually, the bottom left pixel is used, so the image
coordinates of the tie point are (1,1).
In IDL, you would need to create latitude and longitude vectors, which
you can then use in e.g. the image or countour function along with
"grid_units = 2"
If you could provide more details, in particular, the latitude and
longitude values that are delivered in the hdf file, I or others may be
able to provide more specific instructions
|
|
|