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

Home » Public Forums » archive » Need GOES Image Expert
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: Need GOES Image Expert [message #59412 is a reply to message #59294] Tue, 18 March 2008 13:39 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Kenneth P. Bowman writes:

> There goes my chance for fame. :-(

Well, hang on. There's still trouble in River City,
and it rhymes with "p", and it stands for "projection".

I got a little too excited before. :-)

It's pretty good. Not bad. But not bang on right, either.

If I open a GeoTIFF file like this AVHRR file here:

http://www.dfanning.com/map_tips/tiffoverlay.html

Then I can find the UV bounding box by using the tie-points,
the scales, and the size of the image:

s = Size(image, /Dimensions)
xscale = geotag.ModelPixelScaleTag[0]
yscale = geotag.ModelPixelScaleTag[1]
tp = geotag.ModelTiePointTag[3:4]

xOrigin = tp[0]
yOrigin = tp[1] - (yscale * s[1])
xEnd = xOrigin + (xscale * s[0])
uv_box = [xOrigin, yOrigin, xEnd, yEnd]

This assumes that the image is "squared-up" with the UV
coordinate system.

Unfortunately, my image is NOT "squared-up" with the UV
coordinate system. It is tilted a little bit. Here are
the four corners of my warped image in UV space, after
I warped the lat and lon arrays and converted the corner
points to UV space. (Starts in lower-left and goes clockwise.)

-2361218.9 -1869566.0
-2373277.4 1841973.4
2360269.4 1842014.4
2348276.6 -1869524.8

Thus, when I try to treat it as if it were the AVHRR image
above, I *almost* get it right, but not quite. I think I need
some way to "square up" this image with the UV coordinate system.
Unfortunately, it is not a simple rotation, because the image
itself is not a rectangle in this warped space. It's a
squarish blob. :-(

I'm looking for drugs or ideas, either one will do.

Cheers,

David


--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: concatenate arrays of different sizes
Next Topic: Re: Locked-up workbench: ctrl-C doesnt work

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

Current Time: Sun Nov 30 08:24:01 PST 2025

Total time taken to generate the page: 0.87742 seconds