Skip to content

Commit

Permalink
fix(sat-etl): Change mount path to try to prevent Errno19 errs (#132)
Browse files Browse the repository at this point in the history
  • Loading branch information
devsjc authored Sep 17, 2024
1 parent 17187c9 commit b2b0397
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
9 changes: 5 additions & 4 deletions local_archives/nwp/ceda/ceda_global.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,12 @@
name="zarr_archive",
description="".join((
"Zarr archive of NWP data from the Met Office's Global model. ",
"Sourced via FTP from CEDA: ",
"https://catalogue.ceda.ac.uk/uuid/86df725b793b4b4cb0ca0646686bd783/\n",
"Sourced via FTP from CEDA ",
"(https://catalogue.ceda.ac.uk/uuid/86df725b793b4b4cb0ca0646686bd783)",
"This asset is updated monthly, and surfaced as a Zarr Directory Store ",
"for each month. It is downloaded using the nwp-consumer: ",
"https://github.com/openclimatefix/nwp-consumer",
"for each month. It is downloaded using the nwp-consumer ",
"docker image, currently from the 'major-refactor' branch ",
"(https://github.com/openclimatefix/nwp-consumer). ",
)),
key_prefix=["nwp", "ceda", "global"],
metadata={
Expand Down
12 changes: 7 additions & 5 deletions local_archives/sat/eumetsat/eumetsat_iodc.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@
name="zarr_archive",
description="".join((
"Zarr archive of satellite data from EUMETSAT's IODC satellite.",
"Sourced via EUMDAC from EUMETSAT: ",
"https://navigator.eumetsat.int/product/EO:EUM:DAT:MSG:OCA-IODC\n",
"Sourced via EUMDAC from EUMETSAT ",
"(https://navigator.eumetsat.int/product/EO:EUM:DAT:MSG:OCA-IODC). ",
"This asset is updated monthly, and surfaced as a Zarr Directory Store ",
"for each month. It is downloaded using the sat container: ",
"https://github.com/openclimatefix/dagster-dags",
"for each month. It is downloaded using the sat container ",
"(https://github.com/openclimatefix/dagster-dags/pkgs/container/sat-etl).",
)),
key_prefix=["sat", "eumetsat", "iodc"],
metadata={
Expand Down Expand Up @@ -51,14 +51,16 @@ def iodc_monthly(
"iodc",
"-m",
it.strftime("%Y-%m"),
"--path",
f"{ZARR_FOLDER}/sat/eumetsat/india",
"--rm",
],
env={
"EUMETSAT_CONSUMER_KEY": os.environ["EUMETSAT_CONSUMER_KEY"],
"EUMETSAT_CONSUMER_SECRET": os.environ["EUMETSAT_CONSUMER_SECRET"],
},
container_kwargs={
"volumes": [f"{ZARR_FOLDER}/sat/eumetsat/india:/mnt/disks/sat"],
"volumes": [f"{ZARR_FOLDER}/sat/eumetsat/india:{ZARR_FOLDER}/sat/eumetsat/india"],
},
context=context,
).get_results()
Expand Down

0 comments on commit b2b0397

Please sign in to comment.