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

Home » Public Forums » archive » Grid lines misaligned when using CONTOUR and MAP_SET
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
Grid lines misaligned when using CONTOUR and MAP_SET [message #83504] Thu, 07 March 2013 14:23
Matt Francis is currently offline  Matt Francis
Messages: 94
Registered: May 2010
Member
I want to do something pretty simple, which is to create a map with continents and overlay contours. The bare bones of the key part of the code looks like this:

position = [pos_xmin,pos_ymin,pos_xmax,pos_ymax]
Contour,data,lons,lats, /Fill, Levels=contourLevels, c_colors=contourColours,position=position
Map_set,0,180,/continents,/cyl,/grid,/NoErase,position=posit ion

It looks like map_set (or actually map_grid) is making grid lines within the region specified by position, but is leaving room for some non-existant annotation and therefore becomes misaligned with respect to the co-ordiantes established by CONTOUR.

How can this be done correctly? Should I be using MAP_PROJ_INIT?
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: grid lines misalinged when using CONTOUR in conjunction with MAP_SET
Next Topic: Re: Need Math Instruction

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

Current Time: Wed Oct 08 15:06:01 PDT 2025

Total time taken to generate the page: 0.00550 seconds