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

Home » Public Forums » archive » display GeoTIFF image automatically using cgGeoMap
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
display GeoTIFF image automatically using cgGeoMap [message #93698] Mon, 03 October 2016 12:10 Go to previous message
Libo Wang is currently offline  Libo Wang
Messages: 6
Registered: October 2009
Junior Member
Hi all,

I just found out that David has added some nice routines to display a GeoTIFF easily. So I thought I could just copy over his example lines at the end of this link and give a try: http://www.idlcoyote.com/map_tips/tiffoverlay.html,

filename = 'AF03sep15b.n16-VIg.tif'
cgDisplay, 500, 500, WID=5, Title='Outline cgMap Object', $
XPOS=50, YPOS=50
alberMap = cgGeoMap(filename, IMAGE=tiffImage, /OnImage)
scaled = BytScl(tiffImage, Top=253)+1
index = Where(scaled EQ 1)
scaled[index] = 0B
TVLCT, cgColor('ivory', /Triple), 0
cgLoadCT, 33, NColors=253, Bottom=1
cgImage, scaled, POSITION=pos, /KEEP_ASPECT


However,I got the following syntax errors when compile:
alberMap = cgGeoMap(filename, IMAGE=tiffImage, /OnImage)
^
% Syntax error.

This is probably quite obvious to you, but I have never used Object graphics in IDL before. Can somebody point out why I get the syntax error?

Thanks in advance!
Jenny
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: I would like to average the first n columns based on duplicate values of the n+1th column
Next Topic: IDL new graphics memory leak?

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

Current Time: Wed Oct 08 13:35:58 PDT 2025

Total time taken to generate the page: 0.00460 seconds