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

Home » Public Forums » archive » Map_set - reg
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
Map_set - reg [message #79280] Wed, 15 February 2012 21:20 Go to next message
shambhu is currently offline  shambhu
Messages: 41
Registered: December 2011
Member
Hi all,

I am having a data for lat lon 11.56,79.53. I am trying to plot them
over a continents. But i am not sure whether the following plot is
right. So please help me on this. The code of snippet is as follows:


MAP_SET, /CYLINDRICAL, 11.56, 79.53, /GRID, /CONTINENTS, $
TITLE = 'Plot on continents'
OPLOT, DATA.FIELD14, DATA.FIELD15

and the data which am plotting as goes follows:

field14 field15
3.127 198
2.506 248.8
2.431 228.5
2.661 239.3
2.722 233.7
2.801 214.7
3.369 208.8
2.503 227.9
3.08 222
2.81 220
2.558 242.4
2.718 245.7
2.948 256.6
2.856 211.4
3.392 194.5
3.553 177.5
3.609 218.3
3.243 222.5
2.833 204.6
1.871 177.8
2.318 235
2.733 192.2
1.968 222.9
1.922 165.7
2.015 303.4
3.616 190.6
3.3 199
2.846 177.7
2.975 194.8
2.84 159.4
2.921 101.6
1.962 287
2.68 347.2
2.15 342
2.721 78.55
2.832 145.8
3.397 175
3.194 153.2
2.821 318.1
3.144 42.41
3.669 179.7
3.457 138.1
3.152 57.82
3.101 5.994
3.55 356.4
2.966 335.4
3.746 319.2
3.017 356.7
3.303 3.897
3.25 14.28
4.243 11.58
3.188 11.8
3.063 1.098
2.463 10.04
2.643 346.6
3.812 38.26
2.944 357.1
4.054 11.27
4.158 2.803
3.348 28.2
2.683 355.6
3.72 354.2
4.334 5.541
4.004 24.66
3.496 7.18
3.884 11.81
5.227 359.1
4.468 357.2
3.542 350.8
3.64 350.1
5.145 360
4.725 358.4
5.028 2.572
4.916 2.356
5.36 7.501
4.602 359.2
5.465 39.1
6.508 90.8
2.733 26.06
3.335 36.06
3.938 2.498
3.667 23.79
2.854 48.41
2.391 69.37
1.958 156.3
2.252 122.9
3.585 34.55
3.69 6.733
4.689 3.45
3.551 347.6
4.016 13.34
4.02 18.62
4.23 20.08
4.419 14.48
4.803 10.58
4.286 4.931
3.703 353.2
4.703 9.58
4.977 3.588
4.962 354.5
5.272 0.859
4.971 359.8
4.739 2.919
4.715 359.6
Re: Map_set - reg [message #79360 is a reply to message #79280] Fri, 24 February 2012 05:18 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
shambhu writes:

> Hi, am facing some error "% Attempt to call undefined procedure/
> function: 'CGSNAPSHOT'" and trying to solve this...
> Mean time i wan to call compiled files in a main file. Whenever i
> start my IDL machine and if i run my program, without compiling
> circle, the code percent25=circle(0,0,.25*dmax) shows error "% Attempt
> to call undefined procedure/function: 'circle'". So i called that in
> my main file using ".compile circleidle" and it works. But i feel its
> not the proper way to use. Is there any other way to do this...?

The first problem with cgSnapshot is because you either
haven't installed the complete Coyote Library, or you
haven't put the Library on your IDL path correctly. Here
is an article that describes how to do so:

http://www.idlcoyote.com/code_tips/installcoyote.php

The second problem is due to the fact that you named the
file incorrectly, so it can't be found automatically when
it is needed. You can correct that problem by reading this
article:

http://www.idlcoyote.com/tips/namefiles.html

You may be interested in reading about the 10 most common
IDL programming errors, too:

http://www.idlcoyote.com/code_tips/mostcommon.html

Cheers,

David



--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
Re: Map_set - reg [message #79362 is a reply to message #79280] Fri, 24 February 2012 02:38 Go to previous message
shambhu is currently offline  shambhu
Messages: 41
Registered: December 2011
Member
By using FORWARD_FUNCTION i am calling a function/procedure.
Re: Map_set - reg [message #84657 is a reply to message #79280] Fri, 17 February 2012 01:09 Go to previous message
shambhu is currently offline  shambhu
Messages: 41
Registered: December 2011
Member
Hi everyone,

As i mentioned in my earlier mail, i tried to plot using POLAR option.
But its not coming in proper direction and its very difficult to
analyse the value and direction. Can any one help me on this...?

PLOT, data.field14,data.field15, SUBTITLE='Polar Plot', psym=7,
XSTY=4, YSTY=4, /POLAR
AXIS, 0, 0, XAX=0
AXIS, 0, 0, yAX=0

and the data which am plotting as goes follows:

> field14 field15
> 3.127   198
> 2.506   248.8
> 2.431   228.5
> 2.661   239.3
> 2.722   233.7
> 2.801   214.7
> 3.369   208.8
> 2.503   227.9
> 3.08    222
> 2.81    220
> 2.558   242.4
> 2.718   245.7
> 2.948   256.6
> 2.856   211.4
> 3.392   194.5
> 3.553   177.5
> 3.609   218.3
> 3.243   222.5
> 2.833   204.6
> 1.871   177.8
> 2.318   235
> 2.733   192.2
> 1.968   222.9
> 1.922   165.7
> 2.015   303.4
> 3.616   190.6
> 3.3     199
> 2.846   177.7
> 2.975   194.8
> 2.84    159.4
> 2.921   101.6
> 1.962   287
> 2.68    347.2
> 2.15    342
> 2.721   78.55
> 2.832   145.8
> 3.397   175
> 3.194   153.2
> 2.821   318.1
> 3.144   42.41
> 3.669   179.7
> 3.457   138.1
> 3.152   57.82
> 3.101   5.994
> 3.55    356.4
> 2.966   335.4
> 3.746   319.2
> 3.017   356.7
> 3.303   3.897
> 3.25    14.28
> 4.243   11.58
> 3.188   11.8
> 3.063   1.098
> 2.463   10.04
> 2.643   346.6
> 3.812   38.26
> 2.944   357.1
> 4.054   11.27
> 4.158   2.803
> 3.348   28.2
> 2.683   355.6
> 3.72    354.2
> 4.334   5.541
> 4.004   24.66
> 3.496   7.18
> 3.884   11.81
> 5.227   359.1
> 4.468   357.2
> 3.542   350.8
> 3.64    350.1
> 5.145   360
> 4.725   358.4
> 5.028   2.572
> 4.916   2.356
> 5.36    7.501
> 4.602   359.2
> 5.465   39.1
> 6.508   90.8
> 2.733   26.06
> 3.335   36.06
> 3.938   2.498
> 3.667   23.79
> 2.854   48.41
> 2.391   69.37
> 1.958   156.3
> 2.252   122.9
> 3.585   34.55
> 3.69    6.733
> 4.689   3.45
> 3.551   347.6
> 4.016   13.34
> 4.02    18.62
> 4.23    20.08
> 4.419   14.48
> 4.803   10.58
> 4.286   4.931
> 3.703   353.2
> 4.703   9.58
> 4.977   3.588
> 4.962   354.5
> 5.272   0.859
> 4.971   359.8
> 4.739   2.919
> 4.715   359.6
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Map_set - reg
Next Topic: Re: GRIB Webinar

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

Current Time: Wed Oct 08 11:40:40 PDT 2025

Total time taken to generate the page: 0.00734 seconds