NARR2ARL

Post questions and find resources to convert meteorological data into a format HYSPLIT can read.
Post Reply
bghough
Posts: 1
Joined: June 20th, 2013, 1:13 pm
Registered HYSPLIT User: No

NARR2ARL

Post by bghough »

I would like to convert numerous NARR archive GRIB-1 files to ARL. I have multiple months and multiple years of data downloaded and would like to automate the process followed when using HYSPLIT GUI so that I can batch process several months/years (i.e. each month of data would still be converted into a single file, but I'd like to be able to produce 12 monthly files for each year's worth of data). I'm guessing that this should be able to be done with a simple loop in MATLAB, but I'm unsure how to call the narr2arl.exe code from within MATLAB and what information (and in what format & order) this .exe needs to run. Can anyone help?

Alternatively, is there an easier way to do this?

Thanks
ariel.stein
Posts: 659
Joined: November 7th, 2012, 3:14 pm
Registered HYSPLIT User: Yes
Contact:

Re: NARR2ARL

Post by ariel.stein »

The easiest way to convert the files will be to write a small linux script like this:


rm CFG.NARR
for day in 30 31; do
for hour in 00 03 06 09 12 15 18 21; do
echo "Processing: ${day}${hour}"

narr2arl filename${day}${hour}
mv DATA.NARR NARR${day}${hour}
done
done
idrpark
Posts: 3
Joined: November 18th, 2013, 5:22 am
Registered HYSPLIT User: No

Re: NARR2ARL

Post by idrpark »

While converting NARR to ARL, I've got an error message as below.

Processing started...
Missing file: /home/hysplit/trunk/working/narr/narr-a_221_2010050000 ... processing terminated

I surely have the files in name "narr-a_221_201005130000" after renaming the file "narr-a_221_20100513_0000_000.grb".
What should I do more to pass this barrier?
ariel.stein
Posts: 659
Joined: November 7th, 2012, 3:14 pm
Registered HYSPLIT User: Yes
Contact:

Re: NARR2ARL

Post by ariel.stein »

Try to process a couple of files manually first. Then try the script for only a couple of days and see if it works.
eberndt
Posts: 1
Joined: December 11th, 2013, 6:32 pm
Registered HYSPLIT User: No

Re: NARR2ARL

Post by eberndt »

I'm having a similar issue with using the GUI to convert NARR files. It seems the GUI code does not find the file and appends extra numbers onto the end of the filename. Any advice for getting the GUI conversion to work properly?

Processing started ...

Missing file: C:/hysplit4/grib/narr-a_221_20101025_0300_00025002500 ... processing terminated

I have used a script and narr2arl on a unix machine in the past, but after system upgrades, I need to recompile everything so I'm trying the GUI version.
jdreessen
Posts: 8
Joined: March 24th, 2014, 2:39 pm
Registered HYSPLIT User: No

Re: NARR2ARL

Post by jdreessen »

I am having a similar issue as eberndt trying to use the GUI to convert ARL data files. Also, there seems to be some inconsistencies in the documentation supporting the NARR conversion via the GUI. For example the following user guide: http://www.arl.noaa.gov/documents/repor ... _guide.pdf has confusing language about naming conventions for the grib files. Using the original downloaded files from NCDC causes a "900" error to output from the GUI. When I change the name, trying to follow the conventions in the user guide, the GUI doesn't find the file at all, as eberndt has already mentioned.

Additionally, the user guide indicates we can choose a sub-grid on the NOMADS site to have smaller files. Where is that selection for a sub-grid?

Thanks for your help.
ariel.stein
Posts: 659
Joined: November 7th, 2012, 3:14 pm
Registered HYSPLIT User: Yes
Contact:

Re: NARR2ARL

Post by ariel.stein »

For your convenience we have converted all the NARR dataset from 1979 until October 2014 (last update). You can download the data from:
ftp://arlftp.arlhq.noaa.gov/narr/
gtyree
Posts: 6
Joined: February 7th, 2021, 11:55 am
Registered HYSPLIT User: No

Re: NARR2ARL

Post by gtyree »

I am having the same issue as reported in the above comments. When I try to convert a 3-hour NARR .grb file I receive the following error message:

"Missing file: D:/NARR/NARR_3h_unpacked/2000/2000_01/20000101/merged_AWIP32.20000101/test/merged_AWIP32_2000_01_01_030100 ... processing terminated"

The HYSPLIT archived files beneficial, but for my project I would prefer to use the 3-hour NARR files rather than the monthly averaged files. Thus, it is necessary to resolve this issue. Does anyone have any suggestions?
Fantine
Posts: 118
Joined: November 8th, 2012, 3:41 pm

Re: NARR2ARL

Post by Fantine »

The NARR archive on tp://arlftp.arlhq.noaa.gov/narr/ is 3 hourly data. Below lists the timestamps in the file NARR200001 =>

~/exec/chk_times |more
Enter directory name: ~/narr/
Enter file name: NARR200001
Opened file: 0 1 1 0
Grid size and lrec: 309 237 73233 73283
Header record size: 1612
1 0 1 1 0 0 018INDX 0
166 0 1 1 3 0 018INDX 0
331 0 1 1 6 0 018INDX 0
496 0 1 1 9 0 018INDX 0
661 0 1 112 0 018INDX 0
826 0 1 115 0 018INDX 0
991 0 1 118 0 018INDX 0
1156 0 1 121 0 018INDX 0
1321 0 1 2 0 0 018INDX 0
1486 0 1 2 3 0 018INDX 0
1651 0 1 2 6 0 018INDX 0
1816 0 1 2 9 0 018INDX 0
1981 0 1 212 0 018INDX 0
2146 0 1 215 0 018INDX 0
2311 0 1 218 0 018INDX 0
2476 0 1 221 0 018INDX 0
2641 0 1 3 0 0 018INDX 0
2806 0 1 3 3 0 018INDX 0
2971 0 1 3 6 0 018INDX 0
3136 0 1 3 9 0 018INDX 0
3301 0 1 312 0 018INDX 0
3466 0 1 315 0 018INDX 0
3631 0 1 318 0 018INDX 0
3796 0 1 321 0 018INDX 0
3961 0 1 4 0 0 018INDX 0
4126 0 1 4 3 0 018INDX 0
4291 0 1 4 6 0 018INDX 0
4456 0 1 4 9 0 018INDX 0
gtyree
Posts: 6
Joined: February 7th, 2021, 11:55 am
Registered HYSPLIT User: No

Re: NARR2ARL

Post by gtyree »

Fantine,

Many thanks! This is good to know. I was under the impression that the monthly averaged files contained averaged values, not the 3-hourly files. Thanks for the correction!
Post Reply