Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado
Re: Printinf Latitudes & Longitudes in a MAP using IDL
IDEAL wrote: > Hello , > > Trying to use IDL to grid data to a MAP. I need some help on > displaying latitudes and longitudes in a MAP using IDL. > > I have the data to be shown on the map in img3 variable > > and here is the code I am using for showing the data in a MAP > > latmin = 15 > latmax = 60 > lonmin = -140 > lonmax = -50 > > MAP_SET, /cylindrical,LIMIT=[latmin, lonmin, latmax, lonmax] > img3 = MAP_IMAGE(img1,Startx,Starty, COMPRESS=1,LATMIN=latmin, > LONMIN=lonmin,LATMAX=latmax, LONMAX=lonmax) > > ;Display the warped image on the map at the proper position: > tvscl,img3 ,Startx,Starty > > ; Draw continent outlines: > MAP_GRID, /BOXAXES,latdel=10, londel=10, latlab=-139, lonlab = > 15,/LABEL,/HORIZON > > ; Draw gridlines over the map and image: > MAP_CONTINENTS, /coasts, /countries > > I get the latitudes and longitudes values along the inside border of > the bounding box created by MAP_SET. How can I show the values of the > latitudes and longitudes outside the bounding box created by MAP_SET > > Thank You > Hi, I think you have omitted the underscore in the BOX_AXES keyword. The BOXAXES keyword, which doesn't exist is quietly ignored since the MAP_GRID routine accepts _EXTRA keywords. This has always been a sore spot for me... note that MAP_GRID accepts the keyword NO_GRID but FLTARR accepts the keyword NOZERO. Bah! Cheers, Ben PS And don't get Andrew Cool started on the keyword COLO(U)R!
Ben Tupper wrote: > IDEAL wrote: >> Hello , >> >> Trying to use IDL to grid data to a MAP. I need some help on >> displaying latitudes and longitudes in a MAP using IDL. >> >> I have the data to be shown on the map in img3 variable >> >> and here is the code I am using for showing the data in a MAP >> >> latmin = 15 >> latmax = 60 >> lonmin = -140 >> lonmax = -50 >> >> MAP_SET, /cylindrical,LIMIT=[latmin, lonmin, latmax, lonmax] >> img3 = MAP_IMAGE(img1,Startx,Starty, COMPRESS=1,LATMIN=latmin, >> LONMIN=lonmin,LATMAX=latmax, LONMAX=lonmax) >> >> ;Display the warped image on the map at the proper position: >> tvscl,img3 ,Startx,Starty >> >> ; Draw continent outlines: >> MAP_GRID, /BOXAXES,latdel=10, londel=10, latlab=-139, lonlab = >> 15,/LABEL,/HORIZON >> >> ; Draw gridlines over the map and image: >> MAP_CONTINENTS, /coasts, /countries >> >> I get the latitudes and longitudes values along the inside border of >> the bounding box created by MAP_SET. How can I show the values of the >> latitudes and longitudes outside the bounding box created by MAP_SET >> >> Thank You >> > Hi, > > I think you have omitted the underscore in the BOX_AXES keyword. The > BOXAXES keyword, which doesn't exist is quietly ignored since the > MAP_GRID routine accepts _EXTRA keywords. This has always been a sore > spot for me... note that MAP_GRID accepts the keyword NO_GRID but FLTARR > accepts the keyword NOZERO. Bah! > > Cheers, > Ben > > PS And don't get Andrew Cool started on the keyword COLO(U)R! Sir, You defame me most unjustly! :-( After 14 years with IDL, I can speak Yank with the best of them. Y'all have a Nice Day now. Andrew
andrew.cool@dsto.defence.gov.au wrote: > Ben Tupper wrote: > >> >> PS And don't get Andrew Cool started on the keyword COLO(U)R! > > > Sir, > > You defame me most unjustly! :-( > > After 14 years with IDL, I can speak Yank with the best of them. > > Y'all have a Nice Day now. > > Andrew > Hey, hey hey - just a minute, bub. Are you saying the IDL docs are written in English? Well I'll be danged. Who woulda guessed? Ben