[ncl-talk] Easier, more elegant way to do: ncl where() and keepMetaData?
Carl Schreck
cjschrec at ncsu.edu
Tue Jun 23 06:58:45 MDT 2015
You should be able to simply do:
sediProbab = where(landAreaFrV .lt. 0.5, sediProbab at _FillValue, sediProbab)
sediProbab's metadata will be unchanged.
Carl
On Tue, Jun 23, 2015 at 7:14 AM, Erik J. Schaffernicht <
eschaffe at uni-koeln.de> wrote:
> Is there an easier/shorter way(?) than the following to keep the metaData:
>
> (sediProbab is a matrix with metaData)
>
> w2=sediProbab
> w2=where(landAreaFrV .lt. 0.5, w2 at _FillValue, w2)
> copy_VarMeta(sediProbab,w2)
> sediProbab=w2
>
>
>
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at ucar.edu
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
>
--
<http://www.cicsnc.org/>
<http://www.researcherid.com/rid/B-8711-2011>
* Cyclone <http://www.cyclonecenter.org/>*Center.org
<http://www.cyclonecenter.org/> *Carl J. Schreck III, PhD*
*Research Associate*
Cooperative Institute for Climate and Satellites NC (CICS-NC)
<http://www.cicsnc.org/> /
North Carolina Institute for Climate Studies (NCICS)
<http://www.cicsnc.org/>
North Carolina State University <http://ncsu.edu/>
NOAA National Centers for Environmental Information (NCEI)
<http://ncei.noaa.gov/>
151 Patton Ave, Asheville, NC 28801
e: cjschrec at ncsu.edu
o: +1 828 257 3140
Publications
<http://scholar.google.com/citations?hl=en&user=th8ONEcAAAAJ&view_op=list_works&sortby=pubdate>
monitor.cicsnc.org/mjo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20150623/d5d557a3/attachment.html
More information about the ncl-talk
mailing list