Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
libcdi
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mpim-sw
libcdi
Commits
c264fddf
Commit
c264fddf
authored
12 years ago
by
Uwe Schulzweida
Browse files
Options
Downloads
Patches
Plain Diff
app/cdi: added optional compression level -z zip[_1-9]
parent
8a30b28f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
ChangeLog
+4
-0
4 additions, 0 deletions
ChangeLog
app/cdi.c
+11
-7
11 additions, 7 deletions
app/cdi.c
with
15 additions
and
7 deletions
ChangeLog
+
4
−
0
View file @
c264fddf
...
...
@@ -2,6 +2,10 @@
* Version 1.5.9 released
2012-11-14 Uwe Schulzweida <Uwe.Schulzweida@zmaw.de>
* app/cdi: added optional compression level -z zip[_1-9]
2012-11-13 Uwe Schulzweida <Uwe.Schulzweida@zmaw.de>
* stream_cdf::setDimType: fill dims only if ndims > 1
...
...
This diff is collapsed.
Click to expand it.
app/cdi.c
+
11
−
7
View file @
c264fddf
...
...
@@ -111,13 +111,14 @@ void version(void)
1.4.2 22 Mar 2005 : change level from int to double
1.4.3 11 Apr 2005 : change date and time format to ISO
1.5.0 22 Nov 2005 : IEG support
1.5.1 21 Feb 2006 : add option -s for short info
1.6.0 1 Aug 2006 : add option -z szip for SZIP compression of GRIB records
1.5.1 21 Feb 2006 : add
ed
option -s for short info
1.6.0 1 Aug 2006 : add
ed
option -z szip for SZIP compression of GRIB records
1.6.1 27 Feb 2007 : short info with ltype for GENERIC zaxis
1.6.2 3 Jan 2008 : changes for CDI library version 1.1.0 (compress)
1.6.3 26 Mar 2008 : call streamDefTimestep also if ntsteps = 0 (buf fix)
1.7.0 11 Apr 2008 : add option -z zip for deflate compression of netCDF4 variables
1.7.1 1 Nov 2009 : add option -z jpeg for JPEG compression of GRIB2 records
1.7.0 11 Apr 2008 : added option -z zip for deflate compression of netCDF4 variables
1.7.1 1 Nov 2009 : added option -z jpeg for JPEG compression of GRIB2 records
1.7.2 14 Nov 2012 : added optional compression level -z zip[_1-9]
*/
}
...
...
@@ -144,7 +145,7 @@ void usage(void)
fprintf
(
stderr
,
" -V Print version number
\n
"
);
fprintf
(
stderr
,
" -z szip SZIP compression of GRIB1 records
\n
"
);
fprintf
(
stderr
,
" jpeg JPEG compression of GRIB2 records
\n
"
);
fprintf
(
stderr
,
" zip
Deflate compression of netCDF4 variables
\n
"
);
fprintf
(
stderr
,
" zip
[_1-9]
Deflate compression of netCDF4 variables
\n
"
);
fprintf
(
stderr
,
"
\n
"
);
fprintf
(
stderr
,
" Report bugs to <http://code.zmaw.de/projects/cdi>
\n
"
);
}
...
...
@@ -739,10 +740,13 @@ void defineCompress(const char *arg)
comptype
=
COMPRESS_GZIP
;
complevel
=
6
;
}
else
if
(
strncmp
(
arg
,
"zip"
,
len
)
==
0
)
else
if
(
strncmp
(
arg
,
"zip"
,
3
)
==
0
)
{
comptype
=
COMPRESS_ZIP
;
complevel
=
1
;
if
(
len
==
5
&&
arg
[
3
]
==
'_'
&&
isdigit
(
arg
[
4
])
)
complevel
=
atoi
(
&
arg
[
4
]);
else
complevel
=
1
;
}
else
fprintf
(
stderr
,
"%s compression unsupported!
\n
"
,
arg
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment