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
4ba36f19
Commit
4ba36f19
authored
Aug 06, 2015
by
Uwe Schulzweida
Browse files
added function cdf_put_att_float()
parent
2b37b2c4
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/cdf_int.c
View file @
4ba36f19
...
...
@@ -721,6 +721,20 @@ void cdf_put_att_int(int ncid, int varid, const char *name, nc_type xtype,
}
void
cdf_put_att_float
(
int
ncid
,
int
varid
,
const
char
*
name
,
nc_type
xtype
,
size_t
len
,
const
float
*
dp
)
{
int
status
;
status
=
nc_put_att_float
(
ncid
,
varid
,
name
,
xtype
,
len
,
dp
);
if
(
CDF_Debug
||
status
!=
NC_NOERR
)
Message
(
"ncid = %d varid = %d att = %s val = %g"
,
ncid
,
varid
,
name
,
*
dp
);
if
(
status
!=
NC_NOERR
)
Error
(
"%s"
,
nc_strerror
(
status
));
}
void
cdf_put_att_double
(
int
ncid
,
int
varid
,
const
char
*
name
,
nc_type
xtype
,
size_t
len
,
const
double
*
dp
)
{
...
...
src/cdf_int.h
View file @
4ba36f19
...
...
@@ -68,6 +68,7 @@ void cdf_put_vara_float(int ncid, int varid, const size_t start[], const size_t
void
cdf_put_att_text
(
int
ncid
,
int
varid
,
const
char
*
name
,
size_t
len
,
const
char
*
tp
);
void
cdf_put_att_int
(
int
ncid
,
int
varid
,
const
char
*
name
,
nc_type
xtype
,
size_t
len
,
const
int
*
ip
);
void
cdf_put_att_float
(
int
ncid
,
int
varid
,
const
char
*
name
,
nc_type
xtype
,
size_t
len
,
const
float
*
dp
);
void
cdf_put_att_double
(
int
ncid
,
int
varid
,
const
char
*
name
,
nc_type
xtype
,
size_t
len
,
const
double
*
dp
);
void
cdf_get_att_string
(
int
ncid
,
int
varid
,
const
char
*
name
,
char
**
tp
);
...
...
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