Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
palewire committed Jul 25, 2023
1 parent 0677113 commit 53f96e3
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion nasa_wildfires/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ def get_modis(
Defaults to the world in a recent 24-hour period.
Args:
region: The region to download. Defaults to "global".
time_range: The time range to download. Defaults to "24h".
verbose: Print verbose output. Defaults to False.
Returns GeoJSON.
"""
name = REGION_DICT[region]
Expand All @@ -35,6 +40,11 @@ def get_viirs_suomi(
Defaults to the world in a recent 24-hour period.
Args:
region: The region to download. Defaults to "global".
time_range: The time range to download. Defaults to "24h".
verbose: Print verbose output. Defaults to False.
Returns GeoJSON.
"""
name = REGION_DICT[region]
Expand All @@ -60,7 +70,14 @@ def get_viirs_noaa(

@retry((AssertionError), delay=4, tries=3, backoff=2, jitter=1)
def _get_features(csv_path: str, verbose: bool = False) -> list[geojson.Feature]:
"""Download CSV hotspots CSVs from NASA and reformat as GeoJSON."""
"""Download CSV hotspots CSVs from NASA and reformat as GeoJSON.
Args:
csv_path: The path to the CSV file to download.
verbose: Print verbose output. Defaults to False.
Returns GeoJSON.
"""
domain_list = [
"firms.modaps.eosdis.nasa.gov",
"firms2.modaps.eosdis.nasa.gov",
Expand Down

0 comments on commit 53f96e3

Please sign in to comment.