download_data.py

Download MASTER FireSense 2023 L1B data from NASA Earthdata using the earthaccess library.

Requires a free NASA Earthdata account.

download_data.py - Download MASTER FireSense 2023 data from NASA Earthdata.

Downloads the MASTER Level 1B HDF4 files used in this project from the ORNL DAAC archive. Requires a free NASA Earthdata account.

Dataset: MASTER: FireSense, western US, October 2023 DOI: https://doi.org/10.3334/ORNLDAAC/2330

First-time setup:
  1. Create a free account at https://urs.earthdata.nasa.gov/

  2. pip install earthaccess

  3. python download_data.py

The script will prompt for your Earthdata credentials on first run and cache them in ~/.netrc for future use.

Usage:

python download_data.py # download all 4 flights (83 files, ~9 GB) python download_data.py –flight 04 # download only flight 24-801-04 python download_data.py –list # list available files without downloading

download_data.search_flight_files(flight_id)[source]

Search for MASTER L1B HDF files for a specific flight.

download_data.list_files(flights_to_list)[source]

List available files for the specified flights.

download_data.download_files(flights_to_download)[source]

Download HDF files for the specified flights.

download_data.main()[source]