-
Notifications
You must be signed in to change notification settings - Fork 181
update era5/ifs soil field processing #266
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
jimbresch
wants to merge
3
commits into
wrf-model:develop
Choose a base branch
from
jimbresch:ec_soil
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+148
−7
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,55 @@ | ||
| 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 | | ||
| 0 | 1 | 0 | 7 | ST000007 | K | T of 0-7 cm ground layer | 2 | 3 | 18 | 151 | | ||
| 1 | 2 | 7 | 28 | ST007028 | K | T of 7-28 cm ground layer | 2 | 3 | 18 | 151 | | ||
| 2 | 3 | 28 | 100 | ST028100 | K | T of 28-100 cm ground layer | 2 | 3 | 18 | 151 | | ||
| 3 | 4 | 100 | 289 | ST100289 | K | T of 100-289 cm ground layer | 2 | 3 | 18 | 151 | | ||
| 0 | 1 | 0 | 7 | SM000007 | fraction | Soil moisture of 0-7 cm ground layer | 2 | 0 | 25 | 151 | | ||
| 1 | 2 | 7 | 28 | SM007028 | fraction | Soil moisture of 7-28 cm ground layer | 2 | 0 | 25 | 151 | | ||
| 2 | 3 | 28 | 100 | SM028100 | fraction | Soil moisture of 28-100 cm ground layer | 2 | 0 | 25 | 151 | | ||
| 3 | 4 | 100 | 289 | SM100289 | fraction | Soil moisture of 100-289 cm ground layer | 2 | 0 | 25 | 151 | | ||
| -----+------+------+------+----------+----------+------------------------------------------+-----+-----+-----+-----+ | ||
| # | ||
| # Vtable for the ECMWF IFS output that can be found at: | ||
| # https://data.ecmwf.int/forecasts/ccyymmdd/12z/ifs/0p25/oper/ | ||
| # | ||
| # output includes 13 p-levels (mandatory levels only). 0 to 360-h every 6-h | ||
| # | ||
| # This Vtable will work with IFS output from before November 2024 (soil level code 106) | ||
| # and after Nov 2024 (soil level code 151). If more IFS soil levels are added in the future | ||
| # they can be decoded by modifying the Vtable soil fields. Column 1 is the start | ||
| # level number, column 2 is the end level number. Columns 3 and 4 contain the | ||
| # depth of those levels in cm. | ||
| # | ||
| # This Vtable has not been tested on any other EC output. | ||
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,39 @@ | ||
| #!/bin/csh | ||
| # | ||
| # A simple uncompress script for NCAR's derecho to convert | ||
| # files that use ccsds compression to a standard grib2 which | ||
| # can be processed by ungrib. Uses grib_set from eccodes. | ||
| # | ||
| # | ||
| set echo | ||
|
|
||
| module load ncarenv/23.09 intel/2024.2.1 | ||
| module load eccodes/2.36.0 | ||
|
|
||
| set workdir = ./ | ||
| cd $workdir | ||
|
|
||
| # Create a file list of the downloaded ifs files | ||
|
|
||
| set files = `ls -l 20*oper-fc.grib2 | awk '{print $9}' ` | ||
|
|
||
| foreach f ( $files ) | ||
| # file names are of the following form 20241012000000-0h-oper-fc.grib2 | ||
| set fname = `echo $f | cut -c1-10` | ||
| set h = `echo $f | cut -c19-19` | ||
| if ( `echo $f | cut -c19-19` == 'h' ) then | ||
| set fhr = `echo $f | cut -c16-18` | ||
| else if ( `echo $f | cut -c18-18` == 'h' ) then | ||
| set fhr = '0'`echo $f | cut -c16-17` | ||
| else | ||
| set fhr = '00'`echo $f | cut -c16-16` | ||
| endif | ||
| set newname = 'ifs.'${fname}.f${fhr}.grib2 | ||
|
|
||
| cp ${f} ${fname}_ccsds.grb2 # work on a copy | ||
|
|
||
| grib_set -r -w packingType=grid_ccsds -s packingType=grid_simple ${fname}_ccsds.grb2 ${newname} | ||
|
|
||
| if ( $status == 0 ) /bin/rm ${fname}_ccsds.grb2 # if successful delete the compressed file copy | ||
|
|
||
| end |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Correct line 20 to the follow:
235 | 1 | 0 | | SKINTEMP | K | Skin Temperature | 0 | 0 | 17 | 1 |
The WRF runs successfully.