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

Home » Public Forums » archive » IDL new graphics mapping issue
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
IDL new graphics mapping issue [message #92637] Thu, 28 January 2016 11:59
smkatipan is currently offline  smkatipan
Messages: 1
Registered: January 2016
Junior Member
Hello,

I am having trouble getting a contour plot and map to overlap

These are the variables I have:

IMG INT = Array[360,180]
LAT1 DOUBLE = -90.000000
LAT2 DOUBLE = 90.000000
LON1 DOUBLE = 0.0000000
LON2 DOUBLE = 359.50000
RLAT DOUBLE = Array[180]
RLON DOUBLE = Array{360]

The code I use:

m = MAP('Cylindrical', LIMIT=[lat1,lon1,lat2,lon2])
c = MAPCONTINENTS(/CONTINENTS)
tpw = CONTOUR(img,rlon,rlat,OVERPLOT=m)

The problem is, the map with continents comes out just fine but when contour plot is overlaid, the entire plot doesn't stretch from one side of the map to the other. Instead, it appears as though the entire plot is compacted in the very center of the map. I'm not sure how to go about fixing this. Is it a scaling issue? Is it because rlon goes from 0 to 360 whereas rlat starts at -90 and goes to 90?
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: DIST Function - 3D
Next Topic: Mac OSX Capitan and IDL

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

Current Time: Wed Oct 08 09:14:10 PDT 2025

Total time taken to generate the page: 0.00424 seconds