Skip to content
GitLab
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
6e4ed966
Commit
6e4ed966
authored
Aug 15, 2016
by
Uwe Schulzweida
Browse files
Renamed netCDF attribute grid_type to CDI_grid_type.
parent
08c157f7
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/cdf_write.c
View file @
6e4ed966
...
...
@@ -619,7 +619,7 @@ int cdfDefVar(stream_t *streamptr, int varID)
{
size_t
len
=
strlen
(
gridNamePtr
(
gridtype
));
if
(
len
>
0
)
cdf_put_att_text
(
fileID
,
ncvarid
,
"grid_type"
,
len
,
gridNamePtr
(
gridtype
));
cdf_put_att_text
(
fileID
,
ncvarid
,
"
CDI_
grid_type"
,
len
,
gridNamePtr
(
gridtype
));
}
char
gmapvarname
[
CDI_MAX_NAME
];
gmapvarname
[
0
]
=
0
;
...
...
src/stream_cdf_i.c
View file @
6e4ed966
...
...
@@ -1226,7 +1226,7 @@ void cdf_scan_var_attr(int nvars, ncvar_t *ncvars, ncdim_t *ncdims, int timedimi
if
(
memcmp
(
attstring
,
"Triangular"
,
attlen
)
==
0
)
ncvars
[
ncvarid
].
gridtype
=
GRID_SPECTRAL
;
}
else
if
(
strcmp
(
attname
,
"grid_type"
)
==
0
&&
xtypeIsText
(
atttype
)
)
else
if
(
(
strcmp
(
attname
,
"grid_type"
)
==
0
||
strcmp
(
attname
,
"CDI_grid_type"
)
==
0
)
&&
xtypeIsText
(
atttype
)
)
{
cdfGetAttText
(
ncid
,
ncvarid
,
attname
,
attstringlen
,
attstring
);
str_tolower
(
attstring
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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