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) "foreach: No Match" error when linking grib data

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.

Hossan

New member
Hello,
I am following this tutorial
http://www2.mmm.ucar.edu/wrf/OnLineTutorial/CASES/JAN00/ungrib.php
In ungrib section step-5; I am trying to link the GRIB data making use of the link_grib.csh
and using the command, ./link_grib.csh Directory/DATA/JAN00/fn1_2000012

But I am getting an error:

foreach: No match

Would you please help me with that?

Thanks in advance
 
Hi,
I've never seen this problem with this particular script before, but upon searching, I found this post from another forum that may be helpful:
https://www.unix.com/unix-for-dummies-questions-and-answers/175692-tcsh-how-prevent-foreach-terminating-script-when-result-null.html
 
It may be that there are no matching GRIB files in "Directory/DATA/JAN00/fn1_2000012". From the same directory where the link_grib.csh script is being run, can you try the following?
Code:
ls -l Directory/DATA/JAN00/fn1_2000012*
 
There are two changes that I think may resolve the issue:

(1) In the link_grib.csh command, you'll need to substitute "Directory" with the actual path to the DATA/JAN00 directory with the FNL GRIB data on your system.
(2) I think the name of your FNL GRIB files may be incorrect: the files are likely named "fnl", with a lower-case L rather than the number 1.
 
Top