From 90bb03b1547f6f3ec0ac7dd0bc502cb467b0a625 Mon Sep 17 00:00:00 2001 From: JoshLovesFun Date: Tue, 10 Dec 2024 11:27:08 -0500 Subject: [PATCH 1/6] Add new "Vtable.ERA5" template --- ungrib/Variable_Tables/Vtable.ERA5 | 42 ++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 ungrib/Variable_Tables/Vtable.ERA5 diff --git a/ungrib/Variable_Tables/Vtable.ERA5 b/ungrib/Variable_Tables/Vtable.ERA5 new file mode 100644 index 00000000..f621b748 --- /dev/null +++ b/ungrib/Variable_Tables/Vtable.ERA5 @@ -0,0 +1,42 @@ +GRIB1| Level| From | To | metgrid | metgrid | metgrid |GRIB2|GRIB2|GRIB2|GRIB2| +Param| Type |Level1|Level2| Name | Units | Description |Discp|Catgy|Param|Level| +-----+------+------+------+----------+----------+------------------------------------------+-----------------------+ + 129 | 100 | * | | GEOPT | m2 s-2 | | 0 | 0 | | 100 | + 156 | 100 | * | | HGT | m | Height | 0 | 3 | 5 | 100 | + 130 | 100 | * | | TT | K | Temperature | 0 | 0 | 0 | 100 | + 131 | 100 | * | | UU | m s-1 | U | 0 | 2 | 2 | 100 | + 132 | 100 | * | | VV | m s-1 | V | 0 | 2 | 3 | 100 | + 157 | 100 | * | | RH | % | Relative Humidity | 0 | 1 | 1 | 100 | + 165 | 1 | 0 | | UU | m s-1 | U At 10 m | 0 | 2 | 2 | 103 | + 166 | 1 | 0 | | VV | m s-1 | V At 10 m | 0 | 2 | 3 | 103 | + 167 | 1 | 0 | | TT | K | Temperature At 2 m | 0 | 0 | 0 | 103 | + 168 | 1 | 0 | | DEWPT | K | | 0 | 0 | 6 | 103 | + | 1 | 0 | | RH | % | Relative Humidity At 2 m | 0 | 0 | | 103 | + 172 | 1 | 0 | | LANDSEA | 0/1 Flag | Land/Sea flag | 2 | 0 | 0 | 1 | + 129 | 1 | 0 | | SOILGEO | m2 s-2 | | 0 | 0 | | 103 | + 156 | 1 | 0 | | SOILHGT | m | Terrain field of source analysis | 0 | 0 | | 106 | + 134 | 1 | 0 | | PSFC | Pa | Surface Pressure | 0 | 3 | 0 | 1 | + 151 | 1 | 0 | | PMSL | Pa | Sea-level Pressure | 0 | 3 | 0 | 101 | + 235 | 1 | 0 | | SKINTEMP | K | Sea-Surface Temperature | 0 | 3 | | 101 | + 31 | 1 | 0 | | SEAICE | 0/1 Flag | Sea-Ice-Flag | 0 | 3 | | 101 | + 34 | 1 | 0 | | SST | K | Sea-Surface Temperature | 0 | 3 | | 101 | + 141 | 1 | 0 | | SNOW_EC | m | | 0 | 3 | | 101 | + | 1 | 0 | | SNOW | kg m-2 |Water Equivalent of Accumulated Snow Depth| 0 | 3 | | 101 | + 139 | 112 | 0 | 7 | ST000007 | K | T of 0-7 cm ground layer | 2 | 0 | 2 | 106 | + 170 | 112 | 7 | 28 | ST007028 | K | T of 7-28 cm ground layer | 192 | 128 | 170 | 106 | + 183 | 112 | 28 | 100 | ST028100 | K | T of 28-100 cm ground layer | 192 | 128 | 183 | 106 | + 236 | 112 | 100 | 255 | ST100289 | K | T of 100-289 cm ground layer | 192 | 128 | 236 | 106 | + 39 | 112 | 0 | 7 | SM000007 | fraction | Soil moisture of 0-7 cm ground layer | 192 | 128 | 39 | 106 | + 40 | 112 | 7 | 28 | SM007028 | fraction | Soil moisture of 7-28 cm ground layer | 192 | 128 | 40 | 106 | + 41 | 112 | 28 | 100 | SM028100 | fraction | Soil moisture of 28-100 cm ground layer | 192 | 128 | 41 | 106 | + 42 | 112 | 100 | 255 | SM100289 | fraction | Soil moisture of 100-289 cm ground layer | 192 | 128 | 42 | 106 | +-----+------+------+------+----------+----------+------------------------------------------+-----+-----+-----+-----+ +# +# Grib codes are from Table 128 +# http://old.ecmwf.int/publications/manuals/d/gribapi/param/filter=grib1/order=paramId/order_type=asc/p=1/table=128/ +# +# snow depth is converted to the proper units in rrpr.F +# +# Tested on NCAR/RDA ds113.0 dataset. http://rda.ucar.edu/datasets/ds113.0/ +# Note that for ds113.0 there is one surface data file per day and 4 pressure-level files per day. + From c9ff9af133e8caaed09b5e3e6bdfe641f32d0cf5 Mon Sep 17 00:00:00 2001 From: JoshLovesFun Date: Fri, 20 Dec 2024 14:16:29 -0500 Subject: [PATCH 2/6] Insignificant updates to Vtable --- ungrib/Variable_Tables/Vtable.ERA5 | 115 +++++++++++++++++++---------- 1 file changed, 78 insertions(+), 37 deletions(-) diff --git a/ungrib/Variable_Tables/Vtable.ERA5 b/ungrib/Variable_Tables/Vtable.ERA5 index f621b748..a0fc4990 100644 --- a/ungrib/Variable_Tables/Vtable.ERA5 +++ b/ungrib/Variable_Tables/Vtable.ERA5 @@ -1,42 +1,83 @@ GRIB1| Level| From | To | metgrid | metgrid | metgrid |GRIB2|GRIB2|GRIB2|GRIB2| Param| Type |Level1|Level2| Name | Units | Description |Discp|Catgy|Param|Level| ------+------+------+------+----------+----------+------------------------------------------+-----------------------+ - 129 | 100 | * | | GEOPT | m2 s-2 | | 0 | 0 | | 100 | - 156 | 100 | * | | HGT | m | Height | 0 | 3 | 5 | 100 | - 130 | 100 | * | | TT | K | Temperature | 0 | 0 | 0 | 100 | - 131 | 100 | * | | UU | m s-1 | U | 0 | 2 | 2 | 100 | - 132 | 100 | * | | VV | m s-1 | V | 0 | 2 | 3 | 100 | - 157 | 100 | * | | RH | % | Relative Humidity | 0 | 1 | 1 | 100 | - 165 | 1 | 0 | | UU | m s-1 | U At 10 m | 0 | 2 | 2 | 103 | - 166 | 1 | 0 | | VV | m s-1 | V At 10 m | 0 | 2 | 3 | 103 | - 167 | 1 | 0 | | TT | K | Temperature At 2 m | 0 | 0 | 0 | 103 | - 168 | 1 | 0 | | DEWPT | K | | 0 | 0 | 6 | 103 | - | 1 | 0 | | RH | % | Relative Humidity At 2 m | 0 | 0 | | 103 | - 172 | 1 | 0 | | LANDSEA | 0/1 Flag | Land/Sea flag | 2 | 0 | 0 | 1 | - 129 | 1 | 0 | | SOILGEO | m2 s-2 | | 0 | 0 | | 103 | - 156 | 1 | 0 | | SOILHGT | m | Terrain field of source analysis | 0 | 0 | | 106 | - 134 | 1 | 0 | | PSFC | Pa | Surface Pressure | 0 | 3 | 0 | 1 | - 151 | 1 | 0 | | PMSL | Pa | Sea-level Pressure | 0 | 3 | 0 | 101 | - 235 | 1 | 0 | | SKINTEMP | K | Sea-Surface Temperature | 0 | 3 | | 101 | - 31 | 1 | 0 | | SEAICE | 0/1 Flag | Sea-Ice-Flag | 0 | 3 | | 101 | - 34 | 1 | 0 | | SST | K | Sea-Surface Temperature | 0 | 3 | | 101 | - 141 | 1 | 0 | | SNOW_EC | m | | 0 | 3 | | 101 | - | 1 | 0 | | SNOW | kg m-2 |Water Equivalent of Accumulated Snow Depth| 0 | 3 | | 101 | - 139 | 112 | 0 | 7 | ST000007 | K | T of 0-7 cm ground layer | 2 | 0 | 2 | 106 | - 170 | 112 | 7 | 28 | ST007028 | K | T of 7-28 cm ground layer | 192 | 128 | 170 | 106 | - 183 | 112 | 28 | 100 | ST028100 | K | T of 28-100 cm ground layer | 192 | 128 | 183 | 106 | - 236 | 112 | 100 | 255 | ST100289 | K | T of 100-289 cm ground layer | 192 | 128 | 236 | 106 | - 39 | 112 | 0 | 7 | SM000007 | fraction | Soil moisture of 0-7 cm ground layer | 192 | 128 | 39 | 106 | - 40 | 112 | 7 | 28 | SM007028 | fraction | Soil moisture of 7-28 cm ground layer | 192 | 128 | 40 | 106 | - 41 | 112 | 28 | 100 | SM028100 | fraction | Soil moisture of 28-100 cm ground layer | 192 | 128 | 41 | 106 | - 42 | 112 | 100 | 255 | SM100289 | fraction | Soil moisture of 100-289 cm ground layer | 192 | 128 | 42 | 106 | -----+------+------+------+----------+----------+------------------------------------------+-----+-----+-----+-----+ + 129 | 100 | * | | GEOPT | m2 s-2 | | 0 | 3 | 4 | 100 | + 156 | 100 | * | | HGT | m | Geopotential Height | 0 | 3 | 5 | 100 | + 130 | 100 | * | | TT | K | Temperature | 0 | 0 | 0 | 100 | + 131 | 100 | * | | UU | m s-1 | U | 0 | 2 | 2 | 100 | + 132 | 100 | * | | VV | m s-1 | V | 0 | 2 | 3 | 100 | + 157 | 100 | * | | RH | % | Relative Humidity | 0 | 1 | 1 | 100 | + 165 | 1 | 0 | | UU | m s-1 | U At 10 m | 0 | 2 | 2 | 103 | + 166 | 1 | 0 | | VV | m s-1 | V At 10 m | 0 | 2 | 3 | 103 | + 167 | 1 | 0 | | TT | K | Temperature At 2 m | 0 | 0 | 0 | 103 | + 168 | 1 | 0 | | DEWPT | K | | 0 | 0 | 6 | 103 | + | 1 | 0 | | RH | % | Relative Humidity At 2 m | 0 | 1 | 1 | 103 | + 172 | 1 | 0 | | LANDSEA | 0/1 Flag | Land/Sea Flag | 2 | 0 | 0 | 1 | + 129 | 1 | 0 | | SOILGEO | m2 s-2 | | 0 | 3 | 4 | 100 | + 156 | 1 | 0 | | SOILHGT | m | Geopotential Height - Surface | 0 | 3 | 5 | 100 | + 134 | 1 | 0 | | PSFC | Pa | Surface Pressure | 0 | 3 | 0 | 1 | + 151 | 1 | 0 | | PMSL | Pa | Sea-Level Pressure | 0 | 3 | 0 | 101 | + 235 | 1 | 0 | | SKINTEMP | K | Earth-Surface Temperature | 0 | 0 | 17 | 1 | + 31 | 1 | 0 | | SEAICE | 0/1 Flag | Sea-Ice-Flag | 10 | 2 | 0 | 1 | + 34 | 1 | 0 | | SST | K | Sea-Surface Temperature | 10 | 3 | 0 | 1 | + 141 | 1 | 0 | | SNOW_EC | m | | 0 | 1 | 254 | 101 | + | 1 | 0 | | SNOW | kg m-2 | Water Equivalent of Snow Depth | | | | | + 139 | 112 | 0 | 7 | ST000007 | K | T of 0-7 cm ground layer | 192 | 128 | 139 | 106 | + 170 | 112 | 7 | 28 | ST007028 | K | T of 7-28 cm ground layer | 192 | 128 | 170 | 106 | + 183 | 112 | 28 | 100 | ST028100 | K | T of 28-100 cm ground layer | 192 | 128 | 183 | 106 | + 236 | 112 | 100 | 255 | ST100289 | K | T of 100-289 cm ground layer | 192 | 128 | 236 | 106 | + 39 | 112 | 0 | 7 | SM000007 | fraction | Soil moisture of 0-7 cm ground layer | 192 | 128 | 39 | 106 | + 40 | 112 | 7 | 28 | SM007028 | fraction | Soil moisture of 7-28 cm ground layer | 192 | 128 | 40 | 106 | + 41 | 112 | 28 | 100 | SM028100 | fraction | Soil moisture of 28-100 cm ground layer | 192 | 128 | 41 | 106 | + 42 | 112 | 100 | 255 | SM100289 | fraction | Soil moisture of 100-289 cm ground layer | 192 | 128 | 42 | 106 | +-----+------+------+------+----------+----------+------------------------------------------+-----+-----+-----+-----+ +# +# This Vtable is designed to be used with the ERA5 data provided on single levels and pressure levels by the +# Climate Data Store (CDS) at the following 2 links: +# Single Level Data: https://cds.climate.copernicus.eu/datasets/reanalysis-era5-single-levels?tab=overview +# Pressure Level Data: https://cds.climate.copernicus.eu/datasets/reanalysis-era5-pressure-levels?tab=overview +# +# Grib codes are from ECMWF Parameter Database: https://codes.ecmwf.int/grib/param-db/ +# Note that some of the above parameters do not have a description written in the "metgrid Description" column +# because we do not want to write these fields to the intermediate files. +# +# In rrpr.F: +# "HGT" is calculated from "GEOPT" +# "SOILHGT" is calculated from "SOILGEO" +# "RH" (at 2 m) is calculated from "DEWPT" +# "SNOW" is calculated from "SNOW_EC" +# +# ERA5 is based on 4D-Var data assimilation using Cycle 41r2 of the Integrated Forecasting System (IFS), +# which was operational at ECMWF in 2016. +# +# The names of all the parameters listed in the table above (that need to be downloaded from the CDS) have the +# following human readable names associated with their ID (first column) in the CDS: # -# Grib codes are from Table 128 -# http://old.ecmwf.int/publications/manuals/d/gribapi/param/filter=grib1/order=paramId/order_type=asc/p=1/table=128/ -# -# snow depth is converted to the proper units in rrpr.F +# Pressure Levels: +# 129 = Geopotential +# 130 = Temperature +# 131 = U-component of wind +# 132 = V-component of wind +# 157 = Relative humidity # -# Tested on NCAR/RDA ds113.0 dataset. http://rda.ucar.edu/datasets/ds113.0/ -# Note that for ds113.0 there is one surface data file per day and 4 pressure-level files per day. - +# Single Levels: +# 165 = 10m u-component of wind +# 166 = 10m v-component of wind +# 167 = 2m temperature +# 168 = 2m dewpoint temperature +# 172 = Land-sea mask +# 129 = Geopotential +# 134 = Surface pressure +# 151 = Mean sea level pressure +# 235 = Skin temperature +# 31 = Sea-ice cover +# 34 = Sea surface temperature +# 141 = Snow depth +# 139 = Soil temperature level 1 +# 170 = Soil temperature level 2 +# 183 = Soil temperature level 3 +# 236 = Soil temperature level 4 +# 39 = Volumetric soil water layer 1 +# 40 = Volumetric soil water layer 2 +# 41 = Volumetric soil water layer 3 +# 42 = Volumetric soil water layer 4 \ No newline at end of file From d3bdfcf87c274bf1760c490fda8e8c5083aaa05b Mon Sep 17 00:00:00 2001 From: JoshLovesFun Date: Fri, 20 Dec 2024 14:32:08 -0500 Subject: [PATCH 3/6] Add ERA5 to README --- ungrib/Variable_Tables/README | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ungrib/Variable_Tables/README b/ungrib/Variable_Tables/README index feb1e3e6..441dcdfd 100644 --- a/ungrib/Variable_Tables/README +++ b/ungrib/Variable_Tables/README @@ -21,6 +21,8 @@ Vtable.ECMWF_sigma ECMWF sigma-level output Vtable.ERA-interim.ml ERA interim model level Vtable.ERA-interim.pl ERA interim pressure level output +Vtable.ERA5 ERA5 single level and pressure level data from the Climate Data Store + Vtable.GFDL Grib 1 legacy Vtable for NOAA GFDL Vtable.GFS NCEP Global Forecast System (can also be used for GDAS, FNL, AVN files) Vtable.GFSENS NCEP GFS ensemble files (GEFS) From 854739366e06a5c0e18d042b4623c322622c9136 Mon Sep 17 00:00:00 2001 From: JoshLovesFun Date: Mon, 23 Dec 2024 13:55:21 -0500 Subject: [PATCH 4/6] Renamed "Vtable.ERA5" to "Vtable.ERA5.pl" for clarification --- ungrib/Variable_Tables/{Vtable.ERA5 => Vtable.ERA5.pl} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename ungrib/Variable_Tables/{Vtable.ERA5 => Vtable.ERA5.pl} (100%) diff --git a/ungrib/Variable_Tables/Vtable.ERA5 b/ungrib/Variable_Tables/Vtable.ERA5.pl similarity index 100% rename from ungrib/Variable_Tables/Vtable.ERA5 rename to ungrib/Variable_Tables/Vtable.ERA5.pl From 3bac47caa8547999a9231753f4f94e5fe15cc2e5 Mon Sep 17 00:00:00 2001 From: JoshLovesFun Date: Mon, 23 Dec 2024 13:59:45 -0500 Subject: [PATCH 5/6] Updated README for clarification on ERA5 pressure level Vtable --- ungrib/Variable_Tables/README | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ungrib/Variable_Tables/README b/ungrib/Variable_Tables/README index 441dcdfd..efdb48a0 100644 --- a/ungrib/Variable_Tables/README +++ b/ungrib/Variable_Tables/README @@ -21,7 +21,7 @@ Vtable.ECMWF_sigma ECMWF sigma-level output Vtable.ERA-interim.ml ERA interim model level Vtable.ERA-interim.pl ERA interim pressure level output -Vtable.ERA5 ERA5 single level and pressure level data from the Climate Data Store +Vtable.ERA5.pl ERA5 single level and pressure level data from the Climate Data Store Vtable.GFDL Grib 1 legacy Vtable for NOAA GFDL Vtable.GFS NCEP Global Forecast System (can also be used for GDAS, FNL, AVN files) From cee808c3fe2bf06ea8405a88030f7d46c9f922dc Mon Sep 17 00:00:00 2001 From: JoshLovesFun Date: Mon, 5 May 2025 15:51:43 -0400 Subject: [PATCH 6/6] Add EOL character to the end of the file --- ungrib/Variable_Tables/Vtable.ERA5.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ungrib/Variable_Tables/Vtable.ERA5.pl b/ungrib/Variable_Tables/Vtable.ERA5.pl index a0fc4990..0c67d4c5 100644 --- a/ungrib/Variable_Tables/Vtable.ERA5.pl +++ b/ungrib/Variable_Tables/Vtable.ERA5.pl @@ -80,4 +80,4 @@ # 39 = Volumetric soil water layer 1 # 40 = Volumetric soil water layer 2 # 41 = Volumetric soil water layer 3 -# 42 = Volumetric soil water layer 4 \ No newline at end of file +# 42 = Volumetric soil water layer 4