Re: removing missing value data

From: Dennis Shea <shea_at_nyahnyahspammersnyahnyah>
Date: Thu, 06 Mar 2008 00:26:17 -0700

Not enough information. Also ... do you want ascii
as output .... NCL will automatically plot the
data or perform calculations ... ignoring missing values [_FillValue]

Do you have an array x(lat,lon)
    (a) Is the grid rectilinear? ... lat[*], lon[*]
or
    (b) Is the grid curvilinear? lat[*][*], lon[*][*]

Is the data in the form of a triplet? x[*], lat[*], lon[*]

---------------
If it is a triplet and x@_FillValue = -9999

     iGood = ind(.not.ismissing(x))

     X = x(iGood)
     LAT = lat(iGood)
     LON = lon(iGood)

Curvilinear?

     x1d = ndtooned( x )
     lat1d = ndtooned( lat )
     lon1d = ndtooned( lon )
     iGood = ind(.not.ismissing(x))

     X = x1d(iGood)
     LAT = lat1d(iGood)
     LON = lon1d(iGood)
 Of course, the latter means you no longer have a grid.

Roberta Perkins wrote:
> Hello,
>
> I have an hdf data file with coordinates lon and lat and a value for each. Some
> of the data is missing and is named -9999. I want to be able to get rid of the
> coordinates that contain the missing data so I only have the data that is
> valid. I was looking at the missing data section and using delete and ismissing
> but i'm not sure that is a method for actually deleting missing values. Any
> helpo would be appreciated.
>
> Roberta
>
> _______________________________________________
> ncl-talk mailing list
> ncl-talk_at_ucar.edu
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>

_______________________________________________
ncl-talk mailing list
ncl-talk_at_ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Thu Mar 06 2008 - 00:26:17 MST

This archive was generated by hypermail 2.2.0 : Thu Mar 13 2008 - 17:22:55 MDT