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

Home » Public Forums » archive » contour plots on map with Coyote Graphics System in postscript
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: contour plots on map with Coyote Graphics System in postscript [message #81636 is a reply to message #81595] Thu, 04 October 2012 15:33 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
sasha.mozgova@gmail.com writes:

> Do you by any chance see what am I doing wrong?

I would do it like this:

PS_START, filename = work_path+'profiles_correlation_on_map.ps', $
/LANDSCAPE, /EUROPEAN

levels = cgConLevels(Float(data), NLevels=nlevels+1, $
MinValue=Floor(Min(data)), STEP=step, Factor=1)
LoadCT, 0
cgLoadCT, 2, /Reverse, /Brewer, NColors=nlevels-1, Bottom=1
TVLCT, cgColor('white', /Triple), nlevels

map = Obj_New('cgMap', 'Equirectangular', Ellipsoid=19, $
XRange=xrange, YRange=yrange, /LatLon_Ranges, $
CENTER_LON=center_lon, $
Position=[0.1, 0.1, 0.9, 0.8], $
Limit=[Min(lat), Min(lon), Max(lat), Max(lon)])
map -> Draw

cgContour, data, lon, lat, /Cell_Fill, /Overplot, /Outline, $
C_Colors=Indgen(nlevels)+1, Levels=levels, $
Map=map, OutColor='White'

cgMap_Grid, Map=map, /Box
cgMap_Continents, Map=map, Color='tomato'
cgColorbar, Range=[Min(levels), Max(levels)-step], OOB_High=nlevels, $
NColors=nlevels-1, Bottom=1, /Discrete, $
Title='Temperature $\deg$') + 'K', $
Position=[0.1, 0.91, 0.9, 0.95]

PS_END


Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thue. ("Perhaps thos speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: using a custom build script (IDL 8.2)?
Next Topic: Re: Scale many regions in one image without using xroi

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

Current Time: Wed Oct 08 18:14:00 PDT 2025

Total time taken to generate the page: 0.00403 seconds