add clip-2009.awk
This commit is contained in:
@@ -39,8 +39,7 @@ all.xyz: $(XYZ)
|
||||
.INTERMEDIATE: $(XYZ)
|
||||
%.xyz: %.zip
|
||||
unzip -qq -c $< $@ | \
|
||||
sed -e 's/^ \+//' -e 's/ \+/,/g' | \
|
||||
./clip.awk $(addprefix -v ,$(BOUNDS)) | \
|
||||
./clip-2009.awk $(addprefix -v ,$(BOUNDS)) | \
|
||||
$(SORT) > $@
|
||||
|
||||
db/.ready: managedb
|
||||
|
||||
7
contours/clip-2009.awk
Executable file
7
contours/clip-2009.awk
Executable file
@@ -0,0 +1,7 @@
|
||||
#!/usr/bin/awk -f
|
||||
|
||||
# this file works with SEZP from circa 2009, where x coordinate (the 6-digit one)
|
||||
# is first, and the field separator is ' ' or more spaces.
|
||||
$1 > xmin && $1 < xmax && $2 > ymin && $2 < ymax {
|
||||
print $1 "," $2 "," $3
|
||||
}
|
||||
@@ -1,4 +1,7 @@
|
||||
#!/usr/bin/awk -f
|
||||
#
|
||||
# this file works with SEZP circa ~2017 where y coordinate (the 7-digit one) is
|
||||
# first, and the field separator is ','
|
||||
BEGIN {
|
||||
FS = ","
|
||||
}
|
||||
Reference in New Issue
Block a user