Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mpim-sw
libcdi
Commits
5a9e834c
Commit
5a9e834c
authored
Nov 07, 2018
by
Uwe Schulzweida
Browse files
NetCDF attribute standard_name: leave unchanged.
parent
fcdf7f55
Changes
2
Show whitespace changes
Inline
Side-by-side
ChangeLog
View file @
5a9e834c
...
...
@@ -6,6 +6,7 @@
2018-11-07 Uwe Schulzweida
* NetCDF attribute axis: leave unchanged
* NetCDF attribute standard_name: leave unchanged
2018-10-31 Uwe Schulzweida
...
...
src/stream_cdf_i.c
View file @
5a9e834c
...
...
@@ -1210,10 +1210,6 @@ void cdfScanVarAttr(int nvars, ncvar_t *ncvars, int ndims, ncdim_t *ncdims, int
{
memcpy
(
ncvars
[
ncvarid
].
longname
,
attstring
,
attstringsize
);
}
else
if
(
isText
&&
strcmp
(
attname
,
"standard_name"
)
==
0
)
{
memcpy
(
ncvars
[
ncvarid
].
stdname
,
attstring
,
attstringsize
);
}
else
if
(
isText
&&
strcmp
(
attname
,
"units"
)
==
0
)
{
memcpy
(
ncvars
[
ncvarid
].
units
,
attstring
,
attstringsize
);
...
...
@@ -1633,12 +1629,15 @@ void cdfVerifyVarAttr(int nvars, ncvar_t *ncvars, int ndims, ncdim_t *ncdims)
cdfGetAttText
(
ncid
,
ncvarid
,
attname
,
sizeof
(
attstring
),
attstring
);
attstringsize
=
strlen
(
attstring
)
+
1
;
if
(
attstringsize
>
CDI_MAX_NAME
)
attstringsize
=
CDI_MAX_NAME
;
}
if
(
isText
&&
strcmp
(
attname
,
"axis"
)
==
0
)
if
(
strcmp
(
attname
,
"axis"
)
==
0
)
{
strToLower
(
attstring
);
cdfScanAttrAxis
(
ncvars
,
ncdims
,
ncvarid
,
attstring
,
nvdims
,
dimidsp
);
cdfScanAttrAxis
(
ncvars
,
ncdims
,
ncvarid
,
strToLower
(
attstring
),
nvdims
,
dimidsp
);
}
else
if
(
strcmp
(
attname
,
"standard_name"
)
==
0
)
{
memcpy
(
ncvars
[
ncvarid
].
stdname
,
attstring
,
attstringsize
);
}
}
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment