-
Notifications
You must be signed in to change notification settings - Fork 1
/
examples.sh
58 lines (46 loc) · 1.51 KB
/
examples.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# Designing example usage of `snail` command
snail -vv split \
-f network_shp/Supply\ network_link.SHP \
-r world-bank-climate-knowledge-portal/climatology-hd35-annual-mean_cmip6_annual_all-regridded-bct-historical-climatology_median_1995-2014.tif \
-a \
-o sample.gpkg
snail -vv split \
-f tests/integration/lines.geojson \
-r tests/integration/climatology-hd35-annual-mean.tif \
-a \
-o tmp.geojson
snail -vv split \
-f tests/integration/lines.geojson \
-r tests/integration/range.tif \
-a \
-o tmp.geojson
snail -vv split \
-f tests/integration/lines.geojson \
-t 0.0001 0 -1.341666 0 -0.0001 51.8083333 \
--width 10000 \
--height 10000 \
-o tmp.geojson
# how do we handle multiple bands?
# - default to all, add on columns
# - option to pick
# parquet support for input features, output file
# specify output column name
# --column -c
# default to filename/band number
snail -vv \
process \
-fs network.csv \
-rs details_fathom.csv \
-d .
snail -vv \
process \
--features network.csv \
--rasters details_heat.csv \
--directory .
# csv
# - `bands` column as "1,2,3" or "1" to pick from raster `band`
# - `bands` column is optional, if present and a value is not numeric > 0, error
# - `column` column for output labelling, as in splits --column option
# - `output_path` column - parquet or other geopandas.write_file-compatible path
# optional handling of out-of-raster splits
# assign nodata, warn or allow for index <0 >width/height