-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make output_path essential in "snail process" features.csv
- add optional output_path_column to specify column name to use for output paths, relative to data directory - default to "output_path" - add quick examples to integration tests
- Loading branch information
1 parent
e0a1bd4
commit 5fec2f9
Showing
5 changed files
with
61 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
null |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
path,splits | ||
lines.geojson,lines_split.parquet | ||
points.geojson,points_split.parquet | ||
polygons.geojson,polygons_split.parquet |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
path | ||
lines.geojson | ||
points.geojson | ||
polygons.geojson |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,16 @@ | ||
# overlay all rasters with each features layer | ||
snail -vv process -fs features.csv -rs rasters.csv | ||
|
||
# split with different output formats | ||
snail -vv split -f lines.geojson -r inunriver_historical_WATCH_1980_rp01000.tif -c inunriver_historical_WATCH_1980_rp01000 -b 1 -a -o tmp.geojson | ||
snail -vv split -f lines.geojson -r inunriver_historical_WATCH_1980_rp01000.tif -c inunriver_historical_WATCH_1980_rp01000 -b 1 -a -o tmp.parquet | ||
|
||
# error missing columns | ||
snail -vv process -fs empty.txt -rs empty.txt | ||
snail -vv process -fs empty.txt -rs empty.txt -c other | ||
|
||
# error with missing "output_path" | ||
snail -vv process -fs features_error.csv -rs rasters.csv | ||
|
||
# success with "splits" column | ||
snail -vv process -fs features_alt_path.csv -rs rasters.csv -c splits |