[Thread Prev][Thread Next][Index]

sorting in a multi-dimensional dataset






I'm sorting along a dimension using the SORT* and SAMPLE* functions (in
this case in the K dimension).

However, I can only make it work if I pare down the region to a single
point in all the other dimension (I,J,L) using SET REGION or some other
equivalent code.
If I don't do this I get the

SAMPLE* only takes a 1D index

error.

Is there a way around this?

What I want is:

Original Data -> Sorted Data
dimensions I, J, L simply inherted through
dimension K contains sorted values

This is exactly what the SORT* function gives me for the indices, but the
SAMPLE* function can't seem to handle it.

Any suggestions to avoid having to loop through all the I,J,L combinations?

- Sim

-------------------------------------------------------------------------------------------------

Sim Larkin
Research Physical Climatologist, AirFIRE Team
USDA Forest Service Pacific Wildland Fire Sciences Laboratory
400 N. 34th St Suite#201, Seattle, WA 98103
Email: larkin@fs.fed.us
206.732.7849
-------------------------------------------------------------------------------------------------


[Thread Prev][Thread Next][Index]

Dept of Commerce / NOAA / OAR / PMEL / TMAP

Contact Us | Privacy Policy | Disclaimer | Accessibility Statement