use underscores in names to make it importable
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
# Coastline processing tools
|
||||
|
||||
- [extract-polygons-from-sms-map.py](extract-polygons-from-sms-map.py): Extract polygons from an SMS map file.
|
||||
- [take-subset.py](take-subset.py): If you want to extract a subset from a huge Polygon.txt for debugging.
|
||||
- [extract_sms_polygons.py](extract_sms_polygons.py): Extract polygons from an SMS map file.
|
||||
- [take_subset.py](take_subset.py): If you want to extract a subset from a huge Polygon.txt for debugging.
|
||||
|
||||
@@ -4,7 +4,7 @@ Extract polygons from SMS map file.
|
||||
Run this script with --help to see available options and an example.
|
||||
|
||||
Example:
|
||||
$ python extract-polygons-from-sms-map.py --input data/ModelCoast.map --output Polygon.txt
|
||||
$ python extract_sms_polygons.py --input data/ModelCoast.map --output Polygon.txt
|
||||
"""
|
||||
|
||||
import argparse
|
||||
@@ -62,7 +62,7 @@ def write_polygons(polygons, file_name):
|
||||
def parse_arguments():
|
||||
parser = argparse.ArgumentParser(
|
||||
description="Extract polygons from SMS map file.",
|
||||
epilog="Example: $ python extract-polygons-from-sms-map.py --input data/ModelCoast.map --output Polygon.txt",
|
||||
epilog="Example: $ python extract_sms_polygons.py --input data/ModelCoast.map --output Polygon.txt",
|
||||
)
|
||||
|
||||
parser.add_argument("--input", required=True, help="Path to SMS map file (input)")
|
||||
@@ -2,7 +2,7 @@
|
||||
Extract subset from huge Polygon.txt for debugging.
|
||||
|
||||
Example:
|
||||
$ python take-subset.py --input Norgeskyst.txt --output smaller.txt --start 10000 --end 15000 --prune 10",
|
||||
$ python take_subset.py --input Norgeskyst.txt --output smaller.txt --start 10000 --end 15000 --prune 10",
|
||||
"""
|
||||
|
||||
import argparse
|
||||
@@ -11,7 +11,7 @@ import argparse
|
||||
def parse_arguments():
|
||||
parser = argparse.ArgumentParser(
|
||||
description="Extract subset from huge Polygon.txt for debugging.",
|
||||
epilog="Example: $ python take-subset.py --input Norgeskyst.txt --output smaller.txt --start 10000 --end 15000 --prune 10",
|
||||
epilog="Example: $ python take_subset.py --input Norgeskyst.txt --output smaller.txt --start 10000 --end 15000 --prune 10",
|
||||
)
|
||||
|
||||
parser.add_argument(
|
||||
Reference in New Issue
Block a user