Skip to content

Commit

Permalink
Merge pull request #137 from openclimatefix/no-satellite-download
Browse files Browse the repository at this point in the history
No satellite download
  • Loading branch information
peterdudfield authored Oct 14, 2024
2 parents 1eaed47 + 65762c0 commit 8193cd3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pvnet_app/data/satellite.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ def download_all_sat_data() -> bool:

# Set variable to track whether the satellite download is successful
sat_available = False
if "SATELLITE_ZARR_PATH" not in os.environ:
logger.info("SATELLITE_ZARR_PATH has not be set. "
"No satellite data will be downloaded.")
return False

# download 5 minute satellite data
sat_5_dl_path = os.environ["SATELLITE_ZARR_PATH"]
Expand Down

0 comments on commit 8193cd3

Please sign in to comment.