Hi Dave,
See example 13 at:
http://www.ncl.ucar.edu/Applications/panel.shtml#ex13
This isn't NARR data, but it shows how to overlay contours and vectors
on a map.
For NARR data, since you have 2D lat/lon, this example would
additionally need the special "lon2d" and "lat2d" attributes attached to
the data, OR, you would need to know the exact map projection that
your data is on, and set the special "tfDoNDCOverlay" resource
to True. See the NARR examples for how to use this special resource:
http://www.ncl.ucar.edu/Applications/narr.shtml
Meanwhile, if you don't have the exact map projection, and you want to
use the 2D lat/lon coords: assumed that the data in the panel 13
example had 2D lat/lon coordinates called "lat" and "lon" on the file.
Then, we would do something like this:
a = addfile("uv300.nc","r")
u = a->U(1,:,:)
v = a->V(1,:,:)
speed = sqrt(u^2+v^2)
u_at_lat2d = a->lat
u_at_lon2d = a->lon
v_at_lat2d = u_at_lat2d
v_at_lon2d = u_at_lon2d
speed_at_lat2d = u_at_lat2d
speed_at_lon2d = u_at_lon2d
Everything else would be the same.
For the vector plot, if you want wind barbs, set:
vcres_at_vcGlpyhStyle = "WindBarb"
--Mary
On Mar 17, 2009, at 8:45 PM, David Small wrote:
> Hello everyone,
>
> The NARR dataset uses 2 dimensional latitude and longitude. Is it
> possible to lay several sets of contours over top of one another,
> possibly with vector winds? If so, can someone tell me how to do
> it?
>
> Thank you very much.
>
> Dave
>
> --
> David Small
> Graduate Research Assistant
> Department of Atmospheric and Oceanic Sciences
> McGill University
> Montreal, Quebec, Canada
>
> _______________________________________________
> 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 Wed Mar 18 2009 - 09:36:44 MDT
This archive was generated by hypermail 2.2.0 : Wed Mar 18 2009 - 14:50:21 MDT