Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mpim-sw
libcdi
Commits
852b96e2
Commit
852b96e2
authored
Aug 17, 2015
by
Uwe Schulzweida
Browse files
cdf_def_zaxis_hybrid_cf: add psname to formula_terms
parent
df6f6cdb
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/stream_cdf.c
View file @
852b96e2
...
...
@@ -2520,13 +2520,12 @@ void cdf_def_zaxis_hybrid_echam(stream_t *streamptr, int type, int ncvarid, int
static
void
cdf_def_zaxis_hybrid_cf
(
stream_t
*
streamptr
,
int
type
,
int
ncvarid
,
int
zaxisID
,
int
zaxisindex
,
int
xtype
,
size_t
dimlen
,
int
*
dimID
,
char
*
axisname
)
{
char
tmpname
[
CDI_MAX_NAME
];
int
fileID
=
streamptr
->
fileID
;
char
psname
[
CDI_MAX_NAME
];
psname
[
0
]
=
0
;
zaxisInqPsName
(
zaxisID
,
psname
);
if
(
psname
[
0
]
==
0
)
strcpy
(
psname
,
"ps"
);
int
fileID
=
streamptr
->
fileID
;
if
(
streamptr
->
ncmode
==
2
)
cdf_redef
(
fileID
);
strcpy
(
axisname
,
"lev"
);
...
...
@@ -2534,6 +2533,7 @@ void cdf_def_zaxis_hybrid_cf(stream_t *streamptr, int type, int ncvarid, int zax
cdf_def_dim
(
fileID
,
axisname
,
dimlen
,
dimID
);
cdf_def_var
(
fileID
,
axisname
,
(
nc_type
)
xtype
,
1
,
dimID
,
&
ncvarid
);
char
tmpname
[
CDI_MAX_NAME
];
strcpy
(
tmpname
,
"atmosphere_hybrid_sigma_pressure_coordinate"
);
cdf_put_att_text
(
fileID
,
ncvarid
,
"standard_name"
,
strlen
(
tmpname
),
tmpname
);
...
...
Write
Preview
Markdown
is supported
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