aisdb.webdata.shore_dist module
Collect shore/port distances at given coordinates using NASA and Global
Fishing Watch raster files.
A (free) login is required to download Global Fishing Watch rasters,
so these files must be manually downloaded and extracted into data_dir
.
Raster data can be downloaded from:
https://oceancolor.gsfc.nasa.gov/docs/distfromcoast/GMT_intermediate_coast_distance_01d.zip
https://globalfishingwatch.org/data-download/datasets/public-distance-from-shore-v1
https://globalfishingwatch.org/data-download/datasets/public-distance-from-port-v1
once downloaded, place the unzipped geotiff files in data_dir
- class aisdb.webdata.shore_dist.PortDist(imgpath)[source]
Bases:
RasterFile
- class aisdb.webdata.shore_dist.ShoreDist(data_dir, tif_filename='GMT_intermediate_coast_distance_01d.tif')[source]
Bases:
RasterFile
- data_url = 'https://oceancolor.gsfc.nasa.gov/docs/distfromcoast/GMT_intermediate_coast_distance_01d.zip'