Skip to content

Commit

Permalink
More updates to configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobbieker committed Sep 12, 2023
1 parent 1de22f0 commit 8da467b
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions sat/jobs.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,17 @@

base_path = "/mnt/storage_c/IODC/"


config = EumetsatConfig(api_key=EnvVar("EUMETSAT_API_KEY"),
api_secret=EnvVar("EUMETSAT_API_SECRET"),
data_dir=base_path,
start_date="2017-02-01",
end_date=pd.Timestamp().utcnow().strftime('%Y-%m-%d'))

asset_jobs = []
asset_job = define_asset_job(f"download_iodc_raw_files", AssetSelection.assets(download_eumetsat_iodc_data),
config={
'ops': {"download_eumetsat_iodc_data": {"config": EumetsatConfig(api_key=EnvVar("EUMETSAT_API_KEY"),
api_secret=EnvVar("EUMETSAT_API_SECRET"),
data_dir=base_path,
start_date="2017-02-01",
end_date=str(pd.Timestamp().utcnow())).to_fields_dict()},},})
'ops': {"download_eumetsat_iodc_data": {
"config": {"api_key": config.api_key, "api_secret": config.api_secret, "data_dir": config.data_dir,
"start_date": config.start_date, "end_date": config.end_date}}, }, })

asset_jobs.append(asset_job)

0 comments on commit 8da467b

Please sign in to comment.