Skip to content

Commit

Permalink
style(ceda-global): Asset description from docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
devsjc committed Dec 6, 2024
1 parent f9fd5f4 commit 2a3794b
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions local_archives/nwp/ceda/ceda_global.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
"""Zarr archive of NWP data from the Met Office's Global model.
The MetOffice runs it's Unified Model (UM) in two configurations: Global, and UK.
This asset contains data from the global configuration covering the whole globe.
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 docker image
(https://github.com/openclimatefix/nwp-consumer)
"""

import datetime as dt
import os
from typing import Any
Expand All @@ -12,15 +23,7 @@

@dg.asset(
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). ",
"This asset is updated monthly, and surfaced as a Zarr Directory Store ",
"for each month. It is downloaded using the nwp-consumer ",
"docker image, currently from the 'major-refactor' branch ",
"(https://github.com/openclimatefix/nwp-consumer). ",
)),
description=__doc__,
key_prefix=["nwp", "ceda", "global"],
metadata={
"archive_folder": dg.MetadataValue.text(f"{ZARR_FOLDER}/nwp/ceda/global"),
Expand Down

0 comments on commit 2a3794b

Please sign in to comment.