This issue is present in SOdevel 1ea1d71 thomas-nilsson-irfu (2019-09-06 13:15:26 +0200) Merge remote-tracking branch 'origin/devel' into SOdevel
Step 2: Describe your environment
MATLAB R2016a
Ubuntu 18.04.3 LTS
Step 3: Describe the problem
Using irfu-matlab's dataobj to read CDF file. The meaning of zVar indices in dataobj variables, *.data..data, change depending on whether the zVar has 1 or many CDF records.
Expected behavior
Consistent meaning of array indices regardless of the number of CDF records. No special case for 1 CDF record.
Actual behavior
1 CDF records: All variable indices represent the non-record dimensions.
>=2 CDF records: The first index represents the CDF record.
Step 1: Latest code?
This issue is present in SOdevel 1ea1d71 thomas-nilsson-irfu (2019-09-06 13:15:26 +0200) Merge remote-tracking branch 'origin/devel' into SOdevel
Step 2: Describe your environment
MATLAB R2016a Ubuntu 18.04.3 LTS
Step 3: Describe the problem
Using irfu-matlab's dataobj to read CDF file. The meaning of zVar indices in dataobj variables, *.data..data, change depending on whether the zVar has 1 or many CDF records.
Expected behavior
Consistent meaning of array indices regardless of the number of CDF records. No special case for 1 CDF record.
Actual behavior
1 CDF records: All variable indices represent the non-record dimensions. >=2 CDF records: The first index represents the CDF record.
Examples
1 CDF record: size(Do.data.BIAS_CURRENT_OFFSET.data) == [3 1] size(Do.data.TRANSFER_FUNCTION_COEFFS.data) == [ 4 2 8] 2 CDF records: size(Do.data.BIAS_CURRENT_OFFSET.data) == [2 3] size(Do.data.TRANSFER_FUNCTION_COEFFS.data) == [2 4 2 8]
NOTE: Related to issue #41?