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
cdo
Commits
bafaf21f
Commit
bafaf21f
authored
Nov 09, 2017
by
Uwe Schulzweida
Browse files
Added ccsds compression.
parent
c62d2f9c
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/cdo.cc
View file @
bafaf21f
...
...
@@ -302,6 +302,7 @@ void cdo_usage(void)
fprintf
(
stderr
,
" -W Print extra warning messages
\n
"
);
fprintf
(
stderr
,
" -z szip SZIP compression of GRIB1 records
\n
"
);
fprintf
(
stderr
,
" jpeg JPEG compression of GRIB2 records
\n
"
);
fprintf
(
stderr
,
" ccsds CCSDS compression of GRIB2 records
\n
"
);
fprintf
(
stderr
,
" zip[_1-9] Deflate compression of NetCDF4 variables
\n
"
);
#ifdef HIRLAM_EXTENSIONS
fprintf
(
stderr
,
" --Dkext <debLev> Setting debugLevel for extensions
\n
"
);
...
...
@@ -599,9 +600,7 @@ void setDefaultFileType(const char *filetypestr, int labort)
{
if
(
*
ftstr
==
'_'
)
{
ftstr
++
;
setDefaultDataType
(
ftstr
);
setDefaultDataType
(
++
ftstr
);
}
else
{
...
...
@@ -659,6 +658,11 @@ void defineCompress(const char *arg)
cdoCompType
=
CDI_COMPRESS_SZIP
;
cdoCompLevel
=
0
;
}
else
if
(
strncmp
(
arg
,
"ccsds"
,
len
)
==
0
)
{
cdoCompType
=
CDI_COMPRESS_SZIP
;
cdoCompLevel
=
0
;
}
else
if
(
strncmp
(
arg
,
"jpeg"
,
len
)
==
0
)
{
cdoCompType
=
CDI_COMPRESS_JPEG
;
...
...
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