You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
help="Upscaling factor, used to upsample input data on the fly; useful when the raster resolution is lower than the target DGGS resolution. Default (1) applies no upscaling. The resampling method controls interpolation.",
44
+
help=const.OPTION_HELP['upscale'],
38
45
)
39
46
@click.option(
40
47
"-c",
41
48
"--compression",
42
49
default=const.DEFAULTS["compression"],
43
50
type=str,
44
-
help="Compression method to use for the output Parquet files. Options include 'snappy', 'gzip', 'brotli', 'lz4', 'zstd', etc. Use 'none' for no compression.",
45
-
)
51
+
help=const.OPTION_HELP['compression'],)
46
52
@click.option(
47
53
"-t",
48
54
"--threads",
49
55
default=const.DEFAULTS["threads"],
50
-
help="Number of threads to use when running in parallel. The default is determined based dynamically as the total number of available cores, minus one.",
help="Numpy aggregate function to apply when aggregating cell values after DGGS indexing, in case of multiple pixels mapping to the same DGGS cell.",
65
+
help=const.OPTION_HELP['aggfunc'],
60
66
)
61
67
@click.option(
62
68
"-d",
63
69
"--decimals",
64
70
default=const.DEFAULTS["decimals"],
65
71
type=int,
66
-
help="Number of decimal places to round values when aggregating. Use 0 for integer output.",
67
-
)
72
+
help=const.OPTION_HELP['decimals'],)
68
73
@click.option("-o", "--overwrite", is_flag=True)
69
74
@click.option(
70
75
"--warp_mem_limit",
71
76
default=const.DEFAULTS["warp_mem_limit"],
72
77
type=int,
73
-
help="Input raster may be warped to EPSG:4326 if it is not already in this CRS. This setting specifies the warp operation's memory limit in MB.",
78
+
help=const.OPTION_HELP['warp_mem_limit'],
74
79
)
75
80
@click.option(
76
81
"--resampling",
77
82
default=const.DEFAULTS["resampling"],
78
83
type=click.Choice(Resampling._member_names_),
79
-
help="Input raster may be warped to EPSG:4326 if it is not already in this CRS. Or, if the upscale parameter is greater than 1, there is a need to resample. This setting specifies this resampling algorithm.",
84
+
help=const.OPTION_HELP['resampling'],
80
85
)
81
86
@click.option(
82
87
"-co",
83
88
"--compact",
84
89
is_flag=True,
85
-
help="Compact the cells up to the parent resolution. Compaction is not applied for cells without identical values across all bands.",
90
+
help=const.OPTION_HELP['compact'],
86
91
)
87
92
@click.option(
88
93
"--tempdir",
89
94
default=const.DEFAULTS["tempdir"],
90
95
type=click.Path(),
91
-
help="Temporary data is created during the execution of this program. This parameter allows you to control where this data will be written.",
'resolution': lambdadggs: f"{dggs} resolution to index",
54
+
'parent_res': lambdadggs, default: f"{dggs} parent resolution to index and aggregate to. Defaults to {default}",
55
+
'band': "Band(s) to include in the output. Can specify multiple, e.g. `-b 1 -b 2 -b 4` for bands 1, 2, and 4 (all unspecified bands are ignored). If unused, all bands are included in the output (this is the default behaviour). Bands can be specified as numeric indices (1-based indexing) or string band labels (if present in the input), e.g. -b B02 -b B07 -b B12.",
56
+
'upscale': "Upscaling factor, used to upsample input data on the fly; useful when the raster resolution is lower than the target DGGS resolution. Default (1) applies no upscaling. The resampling method controls interpolation.",
57
+
'compression': "Compression method to use for the output Parquet files. Options include 'snappy', 'gzip', 'brotli', 'lz4', 'zstd', etc. Use 'none' for no compression.",
58
+
'threads': "Number of threads to use when running in parallel. The default is determined based dynamically as the total number of available cores, minus one.",
59
+
'aggfunc': "Numpy aggregate function to apply when aggregating cell values after DGGS indexing, in case of multiple pixels mapping to the same DGGS cell.",
60
+
'decimals': "Number of decimal places to round values when aggregating. Use 0 for integer output.",
61
+
'warp_mem_limit': "Input raster may be warped to EPSG:4326 if it is not already in this CRS. This setting specifies the warp operation's memory limit in MB.",
62
+
'resampling': "Input raster may be warped to EPSG:4326 if it is not already in this CRS. Or, if the upscale parameter is greater than 1, there is a need to resample. This setting specifies this resampling algorithm.",
63
+
'compact': "Compact the cells up to the parent resolution. Compaction is not applied for cells without identical values across all bands.",
64
+
'tempdir': "Temporary data is created during the execution of this program. This parameter allows you to control where this data will be written."
0 commit comments