Skip to content

Long variable names not retrieved #10

Description

@ggalibert

Because a NetCDF variable name ends up in the struct name itself:

dataset.variables.TEMP=
dimensions: {'TIME'}
data: [16699x1 double]
data_CORR: [16699x1 double]
standard_name: 'sea_water_temperature'
long_name: 'sea_water_temperature'
units: 'Celsius'
...

in this case TEMP is the variable name, this strategy doesn't support NetCDF variable names that are longer than 63 characters in Matlab (Matlab limit for variable names) and triggers an warning saying that the actual name has been truncated.

Instead, use the following strategy:

dataset.variables{1}=
name: 'TEMP'
dimensions: {'TIME'}
data: [16699x1 double]
data_CORR: [16699x1 double]
standard_name: 'sea_water_temperature'
long_name: 'sea_water_temperature'
units: 'Celsius'
...

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions