Skip to content

Commit faf3afa

Browse files
widens compression options
1 parent 50e1db9 commit faf3afa

File tree

6 files changed

+15
-13
lines changed

6 files changed

+15
-13
lines changed

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,11 @@ Options:
7070
resolution. Default (1) applies no
7171
upscaling. The resampling method controls
7272
interpolation. [default: 1]
73-
-c, --compression [snappy|gzip|zstd]
74-
Name of the compression to use when writing
75-
to Parquet. [default: snappy]
73+
-c, --compression TEXT Compression method to use for the output
74+
Parquet files. Options include 'snappy',
75+
'gzip', 'brotli', 'lz4', 'zstd', etc. Use
76+
'none' for no compression. [default:
77+
snappy]
7678
-t, --threads INTEGER Number of threads to use when running in
7779
parallel. The default is determined based
7880
dynamically as the total number of available

raster2dggs/geohash.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,8 @@ def _geohash_parent_groupby(
117117
"-c",
118118
"--compression",
119119
default=const.DEFAULTS["compression"],
120-
type=click.Choice(["snappy", "gzip", "zstd"]),
121-
help="Name of the compression to use when writing to Parquet.",
120+
type=str,
121+
help="Compression method to use for the output Parquet files. Options include 'snappy', 'gzip', 'brotli', 'lz4', 'zstd', etc. Use 'none' for no compression.",
122122
)
123123
@click.option(
124124
"-t",

raster2dggs/h3.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,8 @@ def _h3_parent_groupby(
104104
"-c",
105105
"--compression",
106106
default=const.DEFAULTS["compression"],
107-
type=click.Choice(["snappy", "gzip", "zstd"]),
108-
help="Name of the compression to use when writing to Parquet.",
107+
type=str,
108+
help="Compression method to use for the output Parquet files. Options include 'snappy', 'gzip', 'brotli', 'lz4', 'zstd', etc. Use 'none' for no compression.",
109109
)
110110
@click.option(
111111
"-t",

raster2dggs/maidenhead.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,8 @@ def _maidenhead_parent_groupby(
110110
"-c",
111111
"--compression",
112112
default=const.DEFAULTS["compression"],
113-
type=click.Choice(["snappy", "gzip", "zstd"]),
114-
help="Name of the compression to use when writing to Parquet.",
113+
type=str,
114+
help="Compression method to use for the output Parquet files. Options include 'snappy', 'gzip', 'brotli', 'lz4', 'zstd', etc. Use 'none' for no compression.",
115115
)
116116
@click.option(
117117
"-t",

raster2dggs/rHP.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,8 @@ def _rhp_parent_groupby(
106106
"-c",
107107
"--compression",
108108
default=const.DEFAULTS["compression"],
109-
type=click.Choice(["snappy", "gzip", "zstd"]),
110-
help="Name of the compression to use when writing to Parquet.",
109+
type=str,
110+
help="Compression method to use for the output Parquet files. Options include 'snappy', 'gzip', 'brotli', 'lz4', 'zstd', etc. Use 'none' for no compression.",
111111
)
112112
@click.option(
113113
"-t",

raster2dggs/s2.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,8 @@ def _s2_parent_groupby(
108108
"-c",
109109
"--compression",
110110
default=const.DEFAULTS["compression"],
111-
type=click.Choice(["snappy", "gzip", "zstd"]),
112-
help="Name of the compression to use when writing to Parquet.",
111+
type=str,
112+
help="Compression method to use for the output Parquet files. Options include 'snappy', 'gzip', 'brotli', 'lz4', 'zstd', etc. Use 'none' for no compression.",
113113
)
114114
@click.option(
115115
"-t",

0 commit comments

Comments
 (0)