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
9a13992e
Commit
9a13992e
authored
Dec 01, 2009
by
Uwe Schulzweida
Browse files
No commit message
No commit message
parent
becfa6ed
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/stream_cdf.c
View file @
9a13992e
...
...
@@ -2306,7 +2306,9 @@ void cdfDefZaxis(int streamID, int zaxisID)
cdf_put_att_text
(
fileID
,
ncvarid
,
"long_name"
,
len
,
longname
);
if
(
(
len
=
strlen
(
units
))
)
cdf_put_att_text
(
fileID
,
ncvarid
,
"units"
,
len
,
units
);
cdf_put_att_text
(
fileID
,
ncvarid
,
"axis"
,
1
,
"z"
);
cdf_enddef
(
fileID
);
streamptr
->
ncmode
=
2
;
...
...
@@ -4416,6 +4418,12 @@ void scanVarAttributes(int fileID, int nvars, NCVAR *ncvars, NCDIM *ncdims,
{
ncvars
[
ncvarid
].
zdim
=
dimidsp
[
attlen
];
cdfSetDim
(
ncvars
,
ncvarid
,
attlen
,
Z_AXIS
);
if
(
ncvars
[
ncvarid
].
ndims
==
1
)
{
cdfSetVar
(
ncvars
,
ncvarid
,
FALSE
);
ncdims
[
ncvars
[
ncvarid
].
dimids
[
0
]].
dimtype
=
Z_AXIS
;
}
}
else
if
(
tolower
((
int
)
attstring
[
attlen
])
==
'y'
)
{
...
...
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