• IDL graphics function mapping issues

    From smkatipan@gmail.com@21:1/5 to All on Thu Jan 28 10:33:52 2016
    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?

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)