Re: Is there any way to automatically "crop" an array?

From: Dennis Shea <shea_at_nyahnyahspammersnyahnyah>
Date: Fri Jun 25 2010 - 15:21:17 MDT

The trimming would lead to a "ragged array".
NCL does not support this type of structure.

===

FYI only:

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

Say: x(lat,lon)

Then: x1d = grid2triple (lon,lat,x) ; x1d(3,ld)

The x1d will contain only the non-missing values of the array.

===
Have a nice weekend!
D

On 06/25/2010 03:09 PM, Bridget Thrasher wrote:
> Say I've got a 2-D array (lat/lon) that has a blob of data in the middle
> surrounded by missing values. Is there an NCL function that will
> automatically crop or trim that array to the edges of the data, thereby
> getting rid of the surrounding cells of missing data? Just curious since
> I don't see anything in the function list that appears to do this.
>
> -Bridget
>
> --
> Bridget Thrasher, PhD
> Postdoctoral Researcher
> Climate Central
> www.climatecentral.org <http://www.climatecentral.org>
>
>
>
>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk

-- 
======================================================
Dennis J. Shea                  tel: 303-497-1361    |
P.O. Box 3000                   fax: 303-497-1333    |
Climate Analysis Section                             |
Climate & Global Dynamics Div.                       |
National Center for Atmospheric Research             |
Boulder, CO  80307                                   |
USA                        email: shea 'at' ucar.edu |
======================================================
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Fri Jun 25 15:21:22 2010

This archive was generated by hypermail 2.1.8 : Fri Jul 02 2010 - 07:45:13 MDT