Re: plotting points

From: Dennis Shea <shea_at_nyahnyahspammersnyahnyah>
Date: Sun, 23 Nov 2008 13:55:34 -0700

Really, most of the following was constructed by looking
at assorted examples on the Application page.

load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"
begin
;************************************************
; open file and read in data
;************************************************
   data = asciiread("loc",-1,"float")
   lat = data(...)
   lon = data(...)
;************************************************
; create plot
;************************************************
   wks = gsn_open_wks("ps" ,"jwsmith") ; open a ps file

   res = True ; plot mods desired
   res_at_gsnDraw = False ; do not advance the frame
   res_at_mpMinLatF = -20 ; range to zoom in on
   res_at_mpMaxLatF = 20.
   res_at_mpMinLonF = -20.
   res_at_mpMaxLonF = 20.
   plot = gsn_csm_map_ce(wks,res) ; draw global map

   polyres = True
   polyres_at_gsMarkerIndex = 16 ; polymarker
   polyres_at_gsMarkerSizeF = 5. ; polymarker size

   gsn_polymarker(wks,plot,lon,lat,polyres)
   frame(wks)
end

jwsmith_at_ucar.edu wrote:
> To whom this may concern:
>
> does anyone know a good ncl script for plotting data points (i.e.
> lightning strikes).
>
> ----------------------------------------------------------------
> This message was sent using IMP, the Internet Messaging Program.
>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Sun Nov 23 2008 - 13:55:34 MST

This archive was generated by hypermail 2.2.0 : Tue Nov 25 2008 - 10:18:44 MST