Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
h5netcdfcompressor
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
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
Oriol.Tinto
h5netcdfcompressor
Commits
f7c65341
Commit
f7c65341
authored
2 years ago
by
Oriol Tintó
Browse files
Options
Downloads
Patches
Plain Diff
Update function name
parent
e0b74cae
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
README.md
+3
-1
3 additions, 1 deletion
README.md
h5netcdfcompressor/__init__.py
+1
-0
1 addition, 0 deletions
h5netcdfcompressor/__init__.py
h5netcdfcompressor/compressor.py
+1
-1
1 addition, 1 deletion
h5netcdfcompressor/compressor.py
with
5 additions
and
2 deletions
README.md
+
3
−
1
View file @
f7c65341
# Compressor that uses h5netcdf and hdf5plugin to compress files.
To use the compressor:
```
python
from
h5netcdfcompressor
import
transfer_file
transfer
_file
(
origin
,
destination
,
compression
)
compress
_file
(
origin
=
"
original.nc
"
,
destination
=
"
compressed.nc
"
,
compression
=
"
lossy,sz,rel,1e-6
"
)
```
This diff is collapsed.
Click to expand it.
h5netcdfcompressor/__init__.py
+
1
−
0
View file @
f7c65341
from
compressor
import
compress_file
This diff is collapsed.
Click to expand it.
h5netcdfcompressor/compressor.py
+
1
−
1
View file @
f7c65341
...
...
@@ -2,7 +2,7 @@ from pathlib import Path
from
typing
import
List
def
transfer
_file
(
origin
:
Path
,
def
compress
_file
(
origin
:
Path
,
destination
:
Path
,
compression
:
str
,
variables_to_keep
:
List
[
str
]
=
None
,
...
...
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