From 2a3794b87f3e680516bed66e8a9201c683dad9e4 Mon Sep 17 00:00:00 2001 From: devsjc <47188100+devsjc@users.noreply.github.com> Date: Fri, 6 Dec 2024 10:08:55 +0000 Subject: [PATCH] style(ceda-global): Asset description from docstring --- local_archives/nwp/ceda/ceda_global.py | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/local_archives/nwp/ceda/ceda_global.py b/local_archives/nwp/ceda/ceda_global.py index e93b539..c541418 100644 --- a/local_archives/nwp/ceda/ceda_global.py +++ b/local_archives/nwp/ceda/ceda_global.py @@ -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 @@ -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"),