Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dataobj zVar dimensions different for zVars with one or many CDF records #50

Open
ErikPGJ opened this issue Sep 6, 2019 · 0 comments
Open

Comments

@ErikPGJ
Copy link
Member

ErikPGJ commented Sep 6, 2019

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant