NARR2ARL

General questions and postings pertaining to the use of HYSPLIT regardless of the platform. For platform specific questions, use the HYSPLIT Platform forums.

NARR2ARL

Postby bghough » June 20th, 2013, 1:27 pm

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
bghough
 
Posts: 1
Joined: June 20th, 2013, 1:13 pm

Re: NARR2ARL

Postby ariel.stein » June 28th, 2013, 2:11 pm

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
ariel.stein
 
Posts: 51
Joined: November 7th, 2012, 3:14 pm

Re: NARR2ARL

Postby idrpark » November 18th, 2013, 5:30 am

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?
idrpark
 
Posts: 1
Joined: November 18th, 2013, 5:22 am

Re: NARR2ARL

Postby ariel.stein » December 2nd, 2013, 3:09 pm

Try to process a couple of files manually first. Then try the script for only a couple of days and see if it works.
ariel.stein
 
Posts: 51
Joined: November 7th, 2012, 3:14 pm

Re: NARR2ARL

Postby eberndt » December 11th, 2013, 6:40 pm

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.
eberndt
 
Posts: 1
Joined: December 11th, 2013, 6:32 pm


Return to Users

Who is online

Users browsing this forum: No registered users and 1 guest

cron