Skip to content

Commit

Permalink
Update cams_eu.py
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobbieker authored Oct 26, 2023
1 parent 041a274 commit fd2b64b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nwp/assets/cams/cams_eu.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
'00:00',
]

VARIALES = [
VARIABLES = [
'alder_pollen', 'ammonia', 'birch_pollen',
'carbon_monoxide', 'dust', 'grass_pollen',
'nitrogen_dioxide', 'nitrogen_monoxide', 'non_methane_vocs',
Expand Down Expand Up @@ -103,7 +103,7 @@ def fetch_cams_eu_forecast_for_day(context: dagster.OpExecutionContext, config:


# Validate that all files were downloaded
for var in VARIALES:
for var in VARIABLES:
fname: str = f'{config.raw_dir}/{date.strftime("%Y%m%d")}{it[:2]}_{var}.nc'
if not os.path.isfile(fname):
raise FileNotFoundError(f"File {fname} was not downloaded.")

0 comments on commit fd2b64b

Please sign in to comment.