comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: image interplate and overlay lat/lon?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: image interplate and overlay lat/lon? [message #81176 is a reply to message #81175] Wed, 22 August 2012 09:49 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
go cats writes:

> My goal is to take an image(s) and overlay geographic lat/lon information onto the image. I have lat/lon information of four boundaries and tried to create a regular grid using them.
>
> I?ve used David?s code to generate a regular lat/lon grid, and tried to interpolate image with gridded lat/lon data.
>
> However, outImage looks blank and only geographin lat/lon data are shown with 0 image pixel values. I am working on 8-bit tif images.
>
> Would anybody give me some tips how to make this work or what I did wrong?

After doing a bit of research, I guess this is the right way
to create a GeoTiff grid with an equal-area cylindrical (called
other names!) projection. Although, I really don't know what
"Raster Pixel is Point" means. It seems to me a raster pixel
describes an area.

Anyway, I don't see any reason for Interpolating the input
image. Presumably your grid *describes* the input image.
If you really want to make it another size, I would use
Congrid. That has the advantage of doing the interpolation
correctly and in a way I don't have to worry about it. :-)

As far as not seeing anything, is this because you haven't
scaled the data, or because you tried to interpolate byte
data, or ... God only knows what.

I would *guess* your image might be upside down. When I
work with images and GeoTiff files, I always reverse the
Y direction when I read from the Tiff file, and reverse
it again when I write it.

Write_Tiff, Reverse(outimage,2), GEOTIFF=geoTag

Cheers,

David


--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: For loop avoidance - getting indices of real space
Next Topic: A simple DLM question

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sat Oct 11 08:49:38 PDT 2025

Total time taken to generate the page: 1.04026 seconds