Skip to content

Commit

Permalink
clarifying comments
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewPlayer3 committed Feb 29, 2024
1 parent d762ba9 commit ed5f543
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 14 deletions.
8 changes: 4 additions & 4 deletions src/asf_tools/watermasking/fill_missing_tiles.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ def main():
)

parser.add_argument('--fill-value', help='The value to fill the data array with.', default=0)
parser.add_argument('--lat-begin', help='The minimum latitude of the dataset.', default=-85)
parser.add_argument('--lat-end', help='The maximum latitude of the dataset.', default=85)
parser.add_argument('--lon-begin', help='The minimum longitude of the dataset.', default=-180)
parser.add_argument('--lon-end', help='The maximum longitude of the dataset.', default=180)
parser.add_argument('--lat-begin', help='The minimum latitude of the dataset in EPSG:4326.', default=-85)
parser.add_argument('--lat-end', help='The maximum latitude of the dataset in EPSG:4326.', default=85)
parser.add_argument('--lon-begin', help='The minimum longitude of the dataset in EPSG:4326.', default=-180)
parser.add_argument('--lon-end', help='The maximum longitude of the dataset in EPSG:4326.', default=180)
parser.add_argument('--tile-width', help='The desired width of the tile in degrees.', default=5)
parser.add_argument('--tile-height', help='The desired height of the tile in degrees.', default=5)

Expand Down
12 changes: 6 additions & 6 deletions src/asf_tools/watermasking/generate_osm_tiles.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
INTERIOR_TILE_DIR = 'interior_tiles/'
OCEAN_TILE_DIR = 'ocean_tiles/'
FINISHED_TILE_DIR = 'tiles/'
GDAL_OPTIONS = ['COMPRESS=LZW', 'TILED=YES', 'NUM_THREADS=all_cpus']
GDAL_OPTIONS = ['COMPRESS=LZW', 'NUM_THREADS=all_cpus']


def process_pbf(planet_file: str, output_file: str):
Expand Down Expand Up @@ -64,7 +64,7 @@ def process_ocean_tiles(ocean_polygons_path, lat, lon, tile_width_deg, tile_heig

gdal.Rasterize(
tile_tif,
clipped_polygons_path,
ocean_polygons_path,
xRes=pixel_size_x,
yRes=pixel_size_y,
burnValues=1,
Expand Down Expand Up @@ -193,10 +193,10 @@ def main():

parser.add_argument('--planet-file-path', help='The path to the global planet.pbf file.')
parser.add_argument('--ocean-polygons-path', help='The path to the global OSM ocean polygons.')
parser.add_argument('--lat-begin', help='The minimum latitude of the dataset.', default=-85)
parser.add_argument('--lat-end', help='The maximum latitude of the dataset.', default=85)
parser.add_argument('--lon-begin', help='The minimum longitude of the dataset.', default=-180)
parser.add_argument('--lon-end', help='The maximum longitude of the dataset.', default=180)
parser.add_argument('--lat-begin', help='The minimum latitude of the dataset in EPSG:4326.', default=-85)
parser.add_argument('--lat-end', help='The maximum latitude of the dataset in EPSG:4326.', default=85)
parser.add_argument('--lon-begin', help='The minimum longitude of the dataset in EPSG:4326.', default=-180)
parser.add_argument('--lon-end', help='The maximum longitude of the dataset in EPSG:4326.', default=180)
parser.add_argument('--tile-width', help='The desired width of the tile in degrees.', default=5)
parser.add_argument('--tile-height', help='The desired height of the tile in degrees.', default=5)

Expand Down
8 changes: 4 additions & 4 deletions src/asf_tools/watermasking/generate_worldcover_tiles.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,10 +231,10 @@ def main():
)

parser.add_argument('--worldcover-tiles-dir', help='The path to the directory containing the worldcover tifs.')
parser.add_argument('--lat-begin', help='The minimum latitude of the dataset.', default=-85, required=True)
parser.add_argument('--lat-end', help='The maximum latitude of the dataset.', default=85)
parser.add_argument('--lon-begin', help='The minimum longitude of the dataset.', default=-180)
parser.add_argument('--lon-end', help='The maximum longitude of the dataset.', default=180)
parser.add_argument('--lat-begin', help='The minimum latitude of the dataset in EPSG:4326.', default=-85, required=True)
parser.add_argument('--lat-end', help='The maximum latitude of the dataset in EPSG:4326.', default=85)
parser.add_argument('--lon-begin', help='The minimum longitude of the dataset in EPSG:4326.', default=-180)
parser.add_argument('--lon-end', help='The maximum longitude of the dataset in EPSG:4326.', default=180)
parser.add_argument('--tile-width', help='The desired width of the tile in degrees.', default=5)
parser.add_argument('--tile-height', help='The desired height of the tile in degrees.', default=5)

Expand Down

0 comments on commit ed5f543

Please sign in to comment.