[ncl-talk] ind_resolve

Vanúcia Schumacher vanucia-schumacher at hotmail.com
Thu Aug 1 09:10:18 MDT 2019


Hi users,

I am trying to implement a routine using ind_resolve, and would like to associate another variable by taking the values only in the ranks of these previously calculated indexes. Any ideas on how to do it?

... var [48]

index  = ind_resolve(ind(.not.ismissing(var)),dsizes_a) ---> Works
ivalid  := ind(.not.ismissing(var))   ; extract only the non-missing values.
xvalid  := var(ivalid)

Variable: index
Type: integer
Total Size: 100 bytes
            25 values
Number of Dimensions: 2
Dimensions and sizes: [25] x [1]
Coordinates:
Number Of Attributes: 1
  _FillValue : -2147483647


new_var = data     [48]
new_var = data(index)  ---> How could it work?

Thanks

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20190801/338e504f/attachment.html>


More information about the ncl-talk mailing list