Re: Display and Navigate Image in IDL 8.2 [message #81318 is a reply to message #81315] |
Fri, 07 September 2012 02:40   |
Klemen
Messages: 80 Registered: July 2009
|
Member |
|
|
David, I have jsut upgraded to IDL 8.2 so I can test it...
The code is, I think, ok (I haven't so much experience with Image). The only problem is your definition of you georeference. I think that your ranges are defined for a usual Mercator projection with origin in 0N, 0E. But you have moved your origin to 105.1W, 40.6N. This point should have in map coordinates values 0, 0. This means that below defined range is false:
XRange: [-11711131.0, -11688226.0] (meters)
YRange: [4914254.0, 4937159.5] (meters)
You could redefine your range as:
n = 600
res = 38.1757
x = findgen(n)* res - n*res*0.5
y = reverse(x)
xrange = [min(x), max(x)]
yrange = [min(y), max(y)]
Well, then I get at least something, I am not sure if this is exactlly what you are looking for, but right mouse click gives me at least the proper longitude when I scroll over the image.
Cheers, Klemen
|
|
|