[ncl-talk] question about sorting
Damjan Jelić
damjan.jelic at fmf.uni-lj.si
Thu Sep 14 06:20:12 MDT 2017
Dear NCL support,
i have perhaps a bit silly question but i stuck up and have to ask:
suppose i have 2D array like:
2015 1 1
2016 2 1
1981 1 2
1982 1 0
1981 0 2
how can i sort it out in a way that first column is from 1981-2016 but
rows stay attached to the year so on the end it looks like this:
1981 1 2
1981 0 2
1982 1 0
2015 1 1
2016 2 1
the order within same year (1981) is not relevant.
Is there some NCL function for that and how to use it correctly?
Kindly,
Damjan
More information about the ncl-talk
mailing list