Re: Problem in selecting latitude....

From: Dennis Shea <shea_at_nyahnyahspammersnyahnyah>
Date: Tue, 29 Sep 2009 06:29:37 -0600

The {...} is used for "coordinate subscripting".
It selects values within and includinding the
specified values. It doe *not* perform interpolation.

Use linint2_Wrap to perform the interpolation to the desired grid.

Good luck

Sabeerali(sebi) wrote:
> Hello all,
>
> I am having the variable 'prec' dimensioned time=366 lat=180 and
> lon=360 .Latitude starts from 89.5N to 89.5 S and Longitude starts from
> 0.5 to 359.5. I want to take my variable 'prec' from 20S to 45N... I
> tried by using the following line..
> tes=prec(0,{-20:45.0},:).
> When I do this I am getting latitude starts from -19.5 and ends in
> 44.5. I want it to starts from -20. and ends in 45...
>
> Any help would be appreciated...Thanks in advance
>
> Variable: tes
> Type: float
> Total Size: 93600 bytes
> 23400 values
> Number of Dimensions: 2
> Dimensions and sizes: [lat | 65] x [lon | 360]
> Coordinates:
> lat: [-19.5..44.5]
> lon: [0.5..359.5]
> Number Of Attributes: 6
> year_day : 1
> smoothing : None
> information : Raw daily averages across all years
> long_name : Daily Climatology
> _FillValue : 2e+20
> missing_value : 2e+20
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> 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 Tue Sep 29 2009 - 06:29:37 MDT

This archive was generated by hypermail 2.2.0 : Tue Sep 29 2009 - 10:11:39 MDT