Page 1 of 1

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

Posted: Thu Jun 25, 2020 7:53 am
by todor_Gai
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

Re: Why GRIB file must be linked and have specific extenssion

Posted: Fri Jun 26, 2020 7:59 pm
by kwerner
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?

Re: Why GRIB file must be linked and have specific extenssion

Posted: Tue Jun 30, 2020 3:43 pm
by todor_Gai
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 ?

Re: Why GRIB file must be linked and have specific extenssion

Posted: Tue Jun 30, 2020 4:14 pm
by mgduda
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.

Re: Why GRIB file must be linked and have specific extenssion

Posted: Wed Jul 01, 2020 9:58 am
by todor_Gai
Hi,
Thank you for the useful reply. I will try it when needed.