draw lines through tracking dot

Charles Seman Charles.Seman at NOAA.GOV
Fri Jan 11 17:39:17 EST 2008


Daniel,

Don't know if this has been resolved?

Instead of:

 draw line 'x1' 'y1' 'x2' 'y2

try:

 draw line 'x0' 'y0' 'x1' 'y1


Hope this helps,
Chuck

Daniel Fritz wrote:
> Hello everyone,
>     can anyone help me with this script? This script
> gives a nice picture of the hurricane track of
> FLOYD1999....It displays the tracking dots
> nicely...but how do you show the LINES going through
> the tracking dot?????  This is what I am having
> problem with...here is the script
>
> filnam='/home2/fritz/script/Floyd.dat'
>
> 'draw map'
>
> while (1)
> res = read(filnam)
> rc = sublin(res,1)
>
> if (rc > 0)
> * Check if there is problem reading
> if (rc = 2)
> say 'EOF - Finished reading 'filnam
> res = close(filnam)
> break
> else
> say rc ' Error while reading 'filnam
> res = close(filnam)
> break
> endif
> endif
>
> * No problems
> * Step 1 - read in the position
>
> datum = sublin(res,2)
> datetime = subwrd(datum,3)
> longitude = subwrd(datum,1)
> latitude = subwrd(datum,2)
> say longitude' 'latitude
> say datetime
>
> * Step 2 - convert lat/lon to page position
> 'd ugrd10m.1;vgrd10m.1;mag(ugrd10m.1,vgrd10m.1)'
> 'q w2xy 'longitude' 'latitude
> x0 = subwrd(result,3)
> y0 = subwrd(result,6)
> say x0' 'y0
>
>
> * Step 3 - plot the position on the page
> ' draw mark 2 'x0' 'y0' 0.1'
> ' draw mark 2 'x1' 'y1' 0.1'
> ' draw line 'x1' 'y1' 'x2' 'y2
> endwhile
>
> DOES ANYONE HAVE ANY SUGGESTION? :):):):):):)
>
>
>
>> Dear Kumar
>>
>> I too wish you a very happy and prosperous new year
>> 2008.
>>
>> best regards
>> Gnanaseelan
>>
>> On 12/30/07, Lakshmee Kumar T <laksau at yahoo.com>
>> wrote:
>>
>>> Dear Sir,
>>>
>>> Wish you a happy and prosperous new year 2008
>>>
>>> with regards,
>>>
>>> Lakshmi Kumar, TV.
>>> Research Scholar
>>> Dept of Meteorology & Oceanography
>>> Andhra University
>>> Visakhapatnam - 530003
>>> AP, INDIA.
>>>
>>>
>>>
>>>
>>> *Robert Burgman <rburgman at RSMAS.MIAMI.EDU>* wrote:
>>>
>>> Are you looking for the spatial correlation? If
>>>
>> the two .nc files use the
>>
>>> same grid then simply use the scorr() function.
>>> If not you need to put them on a common grid .
>>> The user defined function regrid2() is helpful for
>>>
>> this.
>>
>>> This function was written by Mike Fiorino and can
>>>
>> be found on the web.
>>
>>> Using the regrid2 function you define new
>>>
>> variables.
>>
>>> set lat -90 90
>>> set lon 0 359
>>> define newvar1=regrid2(origvar1,2.5,2.5) for a 2.5
>>>
>> x 2.5 grid
>>
>>> define newvar2=regrid2(origvar2,2.5,2.5)    same
>>>
>> grid!
>>
>>> now you can find the spatial correlation of the
>>>
>> two newly define variable
>>
>>> since they are on a common grid.
>>> d
>>>
>> scorr(newvar1,newvar2,lon=-0,lon=359,lat=-90,lat=90)
>>
>>>  On Mar 19, 2007, at 5:51 AM, Lakshmee Kumar T
>>>
>> wrote:
>>
>>>  Dear Sir,
>>>
>>>     I have two nc files. I need to do correlation
>>>
>> for the two nc files for
>>
>>> a set of time interval. Please help me in this
>>>
>> regard,
>>
>>> Thank You
>>>
>>>
>>> ***************************
>>>
>>> TV.Lakshmi Kumar
>>> Research Scholar
>>> Dept of Meteorology & Oceanography
>>> Andhra University
>>> Visakhapatnam - 530003
>>> India.
>>> ------------------------------
>>> Finding fabulous fares is fun.
>>> Let Yahoo! FareChase search your favorite travel
>>>
> sites<http://farechase.yahoo.com/promo-generic-14795097;_ylc=X3oDMTFtNW45amVpBF9TAzk3NDA3NTg5BF9zAzI3MTk0ODEEcG9zAzEEc2VjA21haWx0YWdsaW5lBHNsawNxMS0wNw-->to
>
>> find flight and hotel bargains.
>>
>>>
>>>
>> ----------------------------------------------------
>>
>>> Dr. Robert Burgman
>>> Division of Meteorology and Physical Oceanography
>>> Rosenstiel School of Marine and Atmospheric
>>>
>> Science
>>
>>> University of Miami MPO, MSC 237
>>> 4600 Rickenbacker Causeway
>>> Miami, FL 33149
>>>
>>> Tel:        (305) 421-4272
>>> Fax:       (305) 421-4696
>>> Email:    rburgman at rsmas.miami.edu
>>>
>>>
>> ---------------------------------------------------
>>
>>>
>>>
>>>
>>>
>>> ***************************
>>>
>>> TV.Lakshmi Kumar
>>> Research Scholar
>>> Dept of Meteorology & Oceanography
>>> Andhra University
>>> Visakhapatnam - 530003
>>> India.
>>>
>>> ------------------------------
>>> Looking for last minute shopping deals? Find them
>>>
>> fast with Yahoo!
>>
>>
> Search.<http://us.rd.yahoo.com/evt=51734/*http://tools.search.yahoo.com/newsearch/category.php?category=shopping>
>
>
>
>
>       ____________________________________________________________________________________
> Never miss a thing.  Make Yahoo your home page.
> http://www.yahoo.com/r/hs
>

--

Please note that Charles.Seman at noaa.gov should be considered my NOAA
email address, not cjs at gfdl.noaa.gov.

********************************************************************
 Charles Seman                                Charles.Seman at noaa.gov
 U.S. Department of Commerce / NOAA / OAR
 Geophysical Fluid Dynamics Laboratory         voice: (609) 452-6547
 201 Forrestal Road                              fax: (609) 987-5063
 Princeton, NJ  08540-6649            http://www.gfdl.noaa.gov/~cjs/
********************************************************************

"The contents of this message are mine personally and do not reflect
any position of the Government or NOAA."



More information about the gradsusr mailing list