[ncl-talk] sort by attribute

Jing Sun icerulean at 163.com
Sat Oct 19 11:34:44 MDT 2019


Dear NCL users,


is that possible to sort the array by one of the attribute? 
For example, I want the variable evlr show in descending order of the attribute eigv_length.


Variable: evlr
Type: float
Total Size: 1600 bytes
            400 values
Number of Dimensions: 1
Dimensions and sizes: [10]
Coordinates: 
Number Of Attributes: 5
  eigright :<ARRAY of 100 elements>
  eigleft :<ARRAY of 100 elements>
  eigi :( 0.1857084, -0.1857084,  0, 0.2888337, -0.2888337,  0, 0.1147234, -0.1147234,  0,  0 )
  eigr :( 0.8869482, 0.8869482, 0.9359075, 0.6810071, 0.6810071, -0.06872535, 0.0454572, 0.0454572, 0.192471, 0.6176199 )
  eigv_length :( 0.9061815, 0.9061815, 0.9359075, 0.7397267, 0.7397267, 0.06872535, 0.123401, 0.123401, 0.192471, 0.6176199 )


 Thanks for your help in advance.


Best regards,
Jing
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20191020/c7802f8f/attachment.html>


More information about the ncl-talk mailing list