NOAA-EMC / global-workflow

Global Superstructure/Workflow supporting the Global Forecast System (GFS)
https://global-workflow.readthedocs.io/en/latest
GNU Lesser General Public License v3.0
75 stars 168 forks source link

Upload grib2 template for gfs-utils/ush/nc2grb scripts #2040

Closed GwenChen-NOAA closed 7 months ago

GwenChen-NOAA commented 11 months ago

Target fix directory

NEW

Type of change

Any workflow changes needed?

No change needed

Related issues

https://github.com/NOAA-EMC/gfs-utils/pull/32

Pickup location

/lfs/h2/emc/vpppg/noscrub/Lichuan.Chen/nc2grb/template.global.0p25.gb2 /lfs/h2/emc/vpppg/noscrub/Lichuan.Chen/nc2grb/template.global.0p5.gb2 /lfs/h2/emc/vpppg/noscrub/Lichuan.Chen/nc2grb/template.global.1p0.gb2 /lfs/h2/emc/vpppg/noscrub/Lichuan.Chen/nc2grb/template.global.5p0.gb2

The instruction to create a template (such as above) is at: https://www.cpc.ncep.noaa.gov/products/wesley/wgrib2/netcdf_2_grib_ostia.html

Or use wgrib2 -new_grid option to regrid a template. For example:

wgrib2 template.global.0p25.gb2 -set_grib_type same -new_grid_winds earth \ -new_grid latlon 0:720:0.5 -90:361:0.5 template.global.0p5.gb2

Size

2.6 MB

aerorahul commented 11 months ago

@GwenChen-NOAA I updated the issue to document instructions to create the template file being added in this PR. For explictness, can you provide exactly what you ran to create this 0p25 global template? The instructions on the wgrib2 site point to some aec file and I am not sure where that is.

GwenChen-NOAA commented 11 months ago

@aerorahul, I asked Wesley the same question when I first read the instructions. He said the gep19.aec file is a random GRIB2 file. You can use any GRIB2 file. Since I already have a GRIB2 template file, you can use it to create a new template file of a new grid using wgrib2 -new_grid option. I used the following commands to create two new templates for 0.5 and 1.0 degree latlon grid, assuming that they have the same starting point (0, -90) as the 0.25 degree netCDF files from ocnicepost:

wgrib2 template.global.0p25.gb2 -set_grib_type same -new_grid_winds earth \ -new_grid latlon 0:720:0.5 -90:361:0.5 template.global.0p5.gb2

wgrib2 template.global.0p25.gb2 -set_grib_type same -new_grid_winds earth \ -new_grid latlon 0:360:1 -90:181:1 template.global.1p0.gb2

You can upload all 3 templates together. Let me know if more clarifications are needed. Thanks!

WalterKolczynski-NOAA commented 11 months ago

Since these are only 2.6 MB, should these just be parm files instead?

aerorahul commented 11 months ago

@WalterKolczynski-NOAA they are binary files. They should not be in the repository.

KateFriedman-NOAA commented 7 months ago

The template files have been added to the fix/mom6/20231219 set and synced to supported platforms:

[role.glopara@hfe02 fix]$ pwd
/scratch1/NCEPDEV/global/glopara/fix
[role.glopara@hfe02 fix]$ ll mom6/20231219/post/template.global.*
-rw-r--r-- 1 role.glopara global 2076659 Oct 10 20:23 mom6/20231219/post/template.global.0p25.gb2
-rw-r--r-- 1 role.glopara global  520019 Nov  7 16:45 mom6/20231219/post/template.global.0p50.gb2
-rw-r--r-- 1 role.glopara global  130499 Nov  7 16:47 mom6/20231219/post/template.global.1p00.gb2
-rw-r--r-- 1 role.glopara global    5363 Jan 31 19:01 mom6/20231219/post/template.global.5p00.gb2
KateFriedman-NOAA commented 7 months ago

@GwenChen-NOAA was there anything else needed for this issue or can we close it now? Thanks!

KateFriedman-NOAA commented 7 months ago

Sorry, closed it by accident.

GwenChen-NOAA commented 7 months ago

@Kate Friedman - NOAA Federal @.***>, you got them all. You may close this issue now. Thanks for your help!

On Thu, Feb 22, 2024 at 3:16 PM Kate Friedman @.***> wrote:

Sorry, closed it by accident.

— Reply to this email directly, view it on GitHub https://github.com/NOAA-EMC/global-workflow/issues/2040#issuecomment-1960228723, or unsubscribe https://github.com/notifications/unsubscribe-auth/AWXF3DEAJRUFW2GNI6P4M2DYU6RRDAVCNFSM6AAAAAA7AE6IJKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNRQGIZDQNZSGM . You are receiving this because you were mentioned.Message ID: @.***>

KateFriedman-NOAA commented 7 months ago

Thanks for confirming @GwenChen-NOAA ! Closing this as complete.