Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix permute of 4D data (mainly MMS FPI cdf files)
After a alot of testing, I am convinced that the previous permute() introduced back in commit fec5c15 is incorrect for files created according to the most recent instructions from NASA SPDF (comments in spdfcdfwrite.m). As such the MMS FPI files have previously been permuted incorrectly in irfu-matlab for 4D data variables. With this commit we will still permute() to ensure that the time dependency is the first column, files are written with time dependency as last column, but we will not permute() other columns unless they are created according to the old style (Cluster, etc). This will better ensure that the "Depend_i" variables correctly correspond to the data in dataobj. A longer and more detailed overview of some of the tests performed for this change can be viewed here: https://docs.google.com/spreadsheets/d/1L58nLwy1Mwl9y4OATjkgjb58p6dCiNFerEx2cVbsB0M/edit#gid=0 Also see messages of the previous commits 3b09811 and a01031a
- Loading branch information