Re: warning:gradsf: 203 2-dimensional input array(s) contained missing values

From: Dennis Shea <shea_at_nyahnyahspammersnyahnyah>
Date: Sat Aug 13 2011 - 13:16:14 MDT

http://www.ncl.ucar.edu/Document/Functions/Built-in/center_finite_diff_n.shtml

example 6 shows dT/dx ... you can write dT/dy

This does assume a rectilinear grid

Good luck

On 8/13/11 10:41 AM, wei huang wrote:
> Hi,
>
> I’m interested to calculating the gradient and when I used the function
> gradsf, I got the error:
>
> warning:gradsf: 203 2-dimensional input array(s) contained missing
> values. No interpolation performed on these arrays.
>
> Could anyone know how to handle this error or any other NCL function is
> available, which allow the missing value for calculating gradient,
> please your guidance will be appreciated.
>
> Thanks and regards,
>
> wei
>
> -----------------------
>
> dthdP0 = dthdP(time|:,lev|:,lat|:,lon|:)
>
> printVarSummary(dthdP0)
>
> ;exit
>
> dwdx = w
>
> dwdy = w
>
> gradsf(w,dwdx,dwdy)
>
> dthdx = th
>
> dthdy = th
>
> gradsf(th,dthdx,dthdy)
>
> vort = dudP0
>
> vort = dudP0-dwdx
>
> printVarSummary(vort)
>
> *******************************
>
> Variable: dthdP0
>
> Type: float
>
> Total Size: 127307700 bytes
>
> 31826925 values
>
> Number of Dimensions: 4
>
> Dimensions and sizes:[time | 31] x [lev | 39] x [lat | 195] x [lon | 135]
>
> Coordinates:
>
> lev: [ 0..38]
>
> Number Of Attributes: 1
>
> _FillValue :-999
>
> warning:gradsf: 203 2-dimensional input array(s) contained missing
> values. No interpolation performed on these arrays
>
> Variable: vort
>
> Type: float
>
> Total Size: 127307700 bytes
>
> 31826925 values
>
> Number of Dimensions: 4
>
> Dimensions and sizes:[time | 31] x [lev | 39] x [lat | 195] x [lon | 135]
>
> Coordinates:
>
> lev: [ 0..38]
>
>
>
> _______________________________________________
> 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 Aug 13 13:16:23 2011

This archive was generated by hypermail 2.1.8 : Thu Aug 25 2011 - 09:54:48 MDT