From 4d738fb3c20e036ec2be3e4b659bc2b7db947711 Mon Sep 17 00:00:00 2001 From: Matthew Griffith <93525584+mjg41@users.noreply.github.com> Date: Fri, 15 Nov 2024 10:28:51 +0000 Subject: [PATCH] ECC-1928: GRIB2 DestinE: Solution for switch of paramId for 100m and 200m wind components on height levels (#269) ECC-1928: First prototype which seems to work. Need to write a test and check against existing data --- .../destinegen1/destineOriginConcept.def | 10 ++++++++++ .../destinegen1/gridSpecificationConcept.def | 13 +++++++++++++ definitions/grib2/section.4.def | 2 ++ 3 files changed, 25 insertions(+) create mode 100644 definitions/grib2/localConcepts/destinegen1/destineOriginConcept.def create mode 100644 definitions/grib2/localConcepts/destinegen1/gridSpecificationConcept.def diff --git a/definitions/grib2/localConcepts/destinegen1/destineOriginConcept.def b/definitions/grib2/localConcepts/destinegen1/destineOriginConcept.def new file mode 100644 index 000000000..aabe1dca6 --- /dev/null +++ b/definitions/grib2/localConcepts/destinegen1/destineOriginConcept.def @@ -0,0 +1,10 @@ +# Concept destineOrigin +"DWD" = { centre=98; subCentre=78; } +"Meteo-France" = { centre=98; subCentre=84; } +"Meteo-France" = { centre=98; subCentre=85; } +"MPI-M" = { centre=98; subCentre=252; } +"AWI" = { centre=98; subCentre=253; } +"BSC" = { centre=98; subCentre=1000; } +"CSC" = { centre=98; subCentre=1001; } +"DKRZ" = { centre=98; subCentre=1002; } +"Climate DT consortium (CSC,AWI,BSC,MPI-M)" = { centre=98; subCentre=1003; } diff --git a/definitions/grib2/localConcepts/destinegen1/gridSpecificationConcept.def b/definitions/grib2/localConcepts/destinegen1/gridSpecificationConcept.def new file mode 100644 index 000000000..1ae35446d --- /dev/null +++ b/definitions/grib2/localConcepts/destinegen1/gridSpecificationConcept.def @@ -0,0 +1,13 @@ +# Concept gridSpecification +'H16' = {numberOfDataPoints=3072; gridDefinitionTemplateNumber=150; Nside=16;} +'H32' = {numberOfDataPoints=12288; gridDefinitionTemplateNumber=150; Nside=32;} +'H64' = {numberOfDataPoints=49152; gridDefinitionTemplateNumber=150; Nside=64;} +'H128' = {numberOfDataPoints=196608; gridDefinitionTemplateNumber=150; Nside=128;} +'H256' = {numberOfDataPoints=786432; gridDefinitionTemplateNumber=150; Nside=256;} +'H512' = {numberOfDataPoints=3145728; gridDefinitionTemplateNumber=150; Nside=512;} +'H1024' = {numberOfDataPoints=12582912; gridDefinitionTemplateNumber=150; Nside=1024;} +'O1280' = {numberOfDataPoints=6599680; gridDefinitionTemplateNumber=40; Nj=2560;} +'O2560' = {numberOfDataPoints=26306560; gridDefinitionTemplateNumber=40; Nj=5120;} +'O8000' = {numberOfDataPoints=256288000; gridDefinitionTemplateNumber=40; Nj=16000;} +'F90' = {numberOfDataPoints=65160; gridDefinitionTemplateNumber=0; Ni=360; Nj=181; } +'F360' = {numberOfDataPoints=1038240; gridDefinitionTemplateNumber=0; Ni=1440; Nj=721; } diff --git a/definitions/grib2/section.4.def b/definitions/grib2/section.4.def index 3ccdde8c2..96bd22720 100644 --- a/definitions/grib2/section.4.def +++ b/definitions/grib2/section.4.def @@ -39,6 +39,8 @@ concept datasetForLocal(unknown) { "uerra" = {productionStatusOfProcessedData=11;} "destine" = {productionStatusOfProcessedData=12;} # Destination Earth "destine" = {productionStatusOfProcessedData=13;} + "destinegen1" = {productionStatusOfProcessedData=12;generation=1;} # DestinE ClimateDT Generation 1 + "destinegen1" = {productionStatusOfProcessedData=13;generation=1;} "era" = {marsClass="e2";} "era" = {marsClass="e4";} "era" = {marsClass="ea";}