[ncl-talk] missing values in multidimensional array

Marston Johnston shejo284 at gmail.com
Wed May 17 11:50:27 MDT 2017


Hi Nisha,

 

It depends on what you mean by missing values. For example ncl “mask” can set a range or specific values to _FillValue and then NCl will ignore these values.

E.g: 

 

a3d_FillValue = default_fillvalue("float")

a3d = mask(a3d,a3d.eq.missing_value,False) or a3d = mask(a3d,a3d.lt.value,False)

printVarInfo(a3d,”a3d”) should give you the max and min excluding _FillValues.

 

This will mask out the 3d array for the range or value you dictate. 

You can also use NCL where to do what you want.

 

Hope this helps,

/M

 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Marston S. Johnston, PhD

Department of Earth Sciences

University of Gothenburg, Sweden

Email: marston.johnston at gu.se

SkypeID: marston.johnston 

Phone: +46-31-7864901 

Only the fruitful thing is true!

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

 

 

From: <ncl-talk-bounces at ucar.edu> on behalf of Manisha Ganeshan <manisha.ganeshan86 at gmail.com>
Date: Wednesday, 17 May 2017 at 19:32
To: NCL-talk <ncl-talk at ucar.edu>
Subject: [ncl-talk] missing values in multidimensional array

 

Hello NCLers,

 

Is there a function to find the missing values across a single dimension in a 3D array? I mean without going through a double do loop.


Regards,

Nisha
 

-- 

Dr. Manisha Ganeshan

Universities Space Research Association

Maryland, U.S.A.

_______________________________________________ ncl-talk mailing list ncl-talk at ucar.edu List instructions, subscriber options, unsubscribe: http://mailman.ucar.edu/mailman/listinfo/ncl-talk 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20170517/038677fc/attachment.html 


More information about the ncl-talk mailing list