Re: Want to calculate d/dy

From: Dennis Shea <shea_at_nyahnyahspammersnyahnyah>
Date: Tue May 22 2012 - 18:13:23 MDT

Did you look at the example? It has everything you need.

If T is the "term" then

  T_grad_lon = T ; create arrays to hold output,
                          ; same size and type as input
  T_grad_lat = T
                          ; this procedure will overwrite
                          ; values in T_grad_lon and T_grad_lat

   gradsg (T, T_grad_lon, T_grad_lat)

   T_grad_lon@long_name = "longitudinal gradient (derivative)"
   T_grad_lat@long_name = "latitudinal gradient (derivative)"
   T_grad_lat@units = "K/m"
   T_grad_lon@units = "K/m"
   printVarSummary(T_grad_lat)

   T_grad_lat is the d/dy

On 5/22/12 5:14 PM, Soumik Basu wrote:
> Hi,
>
> I have CAM ouput in T85 resolution. I want to calculate d/dy of a term.
> I looked at a function called "gradsg" but I couldn't understand if I
> can use it. Is there any other way in NCL for doing that?
>
> Thanks,
> Soumik
>
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Tue May 22 18:13:32 2012

This archive was generated by hypermail 2.1.8 : Fri May 25 2012 - 08:35:50 MDT