Scheduled Downtime
On Friday 21 April 2023 @ 5pm MT, this website will be down for maintenance and expected to return online the morning of 24 April 2023 at the latest

(RESOLVED) Why GRIB file must be linked and have specific extenssion

This post was from a previous version of the WRF&MPAS-A Support Forum. New replies have been disabled and if you have follow up questions related to this post, then please start a new thread from the forum home page.

todor_Gai

New member
Hi,
as a new user I was wondering why the provided to ungrib data must be linked and why isn't there property in namelist.wps that points to
directory with the input files ?
Also why the number of input files is limited by the number of different extensions (AAA, AAB, ...) ?
What happens if I need to use more input files ?

Thank you
 
Hi,
This is just the way the code was written many years ago. I personally am not a software engineer, but I'm certain there was a good reason for this method to enable the ungrib executable to work in the cleanest way possible. It is possible to modify the code to allow additional files if one should use more than the total possible combinations of 3 alphabetic values. Do you need to do that, or are you just asking, in general?
 
Hi,
Thank you for the response. I might need to use more grib files than the currently possible.
Can this be done only by modifying the link_grib.csh or changes are needed in the ungrib source ?
 
If you need to process more than 26^3 GRIB files, the easiest approach would be to just process the files in batches. These batches of files could even be processed in parallel, e.g., on different nodes of a computing cluster, since the processing of one GRIB file is (almost) independent of the processing of other GRIB files; the only cases in which processing of a time period is dependent on other time periods is when the ungrib program needs to perform temporal interpolation for any GRIB fields missing at the time in question.
 
Top