Fwd: Plotting CBOFS Data with NCL

From: Brandon Capasso <sblueknigt_at_nyahnyahspammersnyahnyah>
Date: Sat Jun 23 2012 - 11:26:20 MDT

---------- Forwarded message ----------
From: Brandon Capasso <sblueknigt@gmail.com>
Date: Fri, Jun 22, 2012 at 5:56 PM
Subject: Re: Plotting CBOFS Data with NCL
To: David Brown <dbrown@ucar.edu>

Thank you very much for your quick reply and guidance here. This is exactly
what I was trying to acheive, and I can follow along with what you did in
the script. Much appreciated!

Regards,

Brandon

On Fri, Jun 22, 2012 at 8:01 PM, David Brown <dbrown@ucar.edu> wrote:

> Hi Brandon,
> I am attaching a revised version of your script that properly projects
> your data onto a map and orients the data correctly. There is still
> "blotchiness" at the edges, but I am sure that is a result of the way the
> model produced the data. I put a second frame that cleans it up a bit by
> turning values of "speed" that equal 0 into missing values.
>
> The staggered u and v grids are also a result of the model. Technically
> you would need to interpolate the u data values to the v grid or vice
> versa, but since the grid is pretty high resolution, it would probably not
> make a visible difference for plotting purposes.
>
> Things to notice: I substituted gsn_csm_contour_map for your call to
> gsn_csm_contour. All the map resources are set for the map plot and not for
> the vector plot which is overlaid on the map.
> Hope this helps get you on your way.
> -dave
>
>
> On Jun 22, 2012, at 7:43 AM, Brandon Capasso wrote:
>
> Greetings,
>
> I have little knowledge of NCL, but I just started learning earlier this
> week due to limitations in grads. I've been trying to plot CBOFS data
> which is netcdf and on an *orthogonal curvilinear grid*, but I can't
> retain the correct shape of the grid when plotting (see attached script and
> resulting plot).
>
> the variables im trying to plot with contours and vectors are* u and v*components of current, and are 2 dimensional arrays with dimensions
> *eta_u, xi_u* and *eta_v, xi_v* respectively. the variables *lat_u,
> lon_u, lat_v, lon_v* are also available and are in 2 dimensions.
>
> u and v have slightly different dimensions for some reason; u is 291 x 330
> and the v is 290 x 331, which is why im forcing them to conform in the
> first few lines of the script.
>
> I understand that the script is a mess; trial and error is part of the
> learning process. Mainly, I just want to know the best approach at plotting
> the data without it being distorted...you may notice in the attached image
> that the entrance to the chesapeake is facing north/south...when in reality
> it faces east! I'm clearly missing something here.
>
> Also, I tried using rcm2rgrid but the image comes out much more distorted
> and unrecognizable with blotches and horizontal/vertical lines.
>
> Any insight or guidance in the right direction would be greatly
> appreciated here!
>
> Regards,
>
> Brandon Capasso
>
> <fields.jpg><plot_vectors>_______________________________________________
>
> 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 Sat Jun 23 11:26:28 2012

This archive was generated by hypermail 2.1.8 : Mon Jun 25 2012 - 09:57:23 MDT