Re: Mulitple tracks

From: Dennis Shea <shea_at_nyahnyahspammersnyahnyah>
Date: Fri Nov 27 2009 - 13:10:43 MST

See "systemfunc"
http://www.ncl.ucar.edu/Document/Functions/Built-in/systemfunc.shtml

[1] {Unzip/Untar} the 2007-wp-full.tar.gz file

[2]
   diri = "./"
   fils = systemfunc ("cd " + diri + " ; ls bwp012007.txt*")
   nfil = dimsizes(fils)

[3]
   Move the work station outside the doo loop [4]
   Create a single workstation

    colors_8 = .....
    wks = gsn_open_wks("pdf",WP2007)
    gsn_define_colormap(wks,colors_8)
    res = True
    res@gsnDraw = False ; so we can add poly stuff
    res@gsnFrame = False ; do not advance frame
    res@gsnMaximize = True
                         :

[4]
   do nf=0,nfil-1 ; loop over each file
      data = asciiread(diri+fils(nf), -1,"string")
            :
      delete(data) ; delete all arrays that may change size
      delete(year)
            :
   end do

   frame(wks) ; must be after the doo loop

===========================
===
If you are new to NCL I suggest you read the mini-language manual.
Later, if interested in the graphics, the min-graphics manual.

http://www.ncl.ucar.edu/Document/Manuals/

They are pdf. They do have color so if you have a color
printer, I suggest using it.

Good luck

Li Richard wrote:
> Hi everyone,
> Thanks a lot, Dennis. Your code greatly help me. I want to further know
> how can I extend the code to produce multiple tracks on a single
> plot(For example, plotting all the typhoon tracks of 2007 on a single
> plot). How can I read in several data file at one time?Thank you.
> Best regards,
> richard
>
>
> \
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Fri Nov 27 13:11:28 2009

This archive was generated by hypermail 2.1.8 : Sun Nov 29 2009 - 20:52:58 MST