Page 1 of 1

api2arl.cfg

Posted: April 12th, 2013, 6:47 am
by Sylvain
Dear all,

I'm using api2arl conversion tool (successfully) but I would like to use the following combination of keys to access Grib2 data: discipline, parameterCategory and parameterNumber instead of shortName in api2arl.cfg.
Is it possible? How?

Thank you,
Sylvain

Re: api2arl.cfg

Posted: April 12th, 2013, 11:38 am
by ariel.stein
Yes, it is possible to use the parameterCategory and parameterNumber to extract the variable you are interested in. You will have to edit your api2arl.cfg file by replacing the values for the parameters atmcat (sfccat) and atmnum (sfcnum) which respectively correspond to the parameterCategory and parameterNumber of the variable of interest for the 3 dimensional field (2 dimensional field).

Re: api2arl.cfg

Posted: April 15th, 2013, 3:54 pm
by Sylvain
Dear Ariel Stein,

Many thanks for your reply but I don't manage to use these arguments:
-I replaced the line "sfcgrb = ...." by 2 lines "sfccat = ...." and "sfcnum = ...."
-it returns "At line 192 of file api2arl.f (unit = 10, file = '/path/myFile.cfg') Fortran runtime error: Cannot match namelist object name sfccat"
Any clues?

Best,
Sylvain

Re: api2arl.cfg

Posted: April 19th, 2013, 9:57 am
by ariel.stein
Can you please send the configuration file you are using?

Re: api2arl.cfg

Posted: April 19th, 2013, 4:48 pm
by Sylvain
Hello,

Code: Select all

&SETUP
 numatm = 6,
 atmgrb = 'gh'  ,'t'   ,'u'   ,'v'   ,'w'   ,'r',
 atmcnv =  1.0  ,  1.0 , 1.0  , 1.0  , 0.01 , 1.0 ,
 atmarl = 'HGTS','TEMP','UWND','VWND','WWND','RELH',
 numsfc = 1,
 sfccat = '1',
 sfcnum = '8',
 sfccnv =  0.001,
 sfcarl = 'TPP6',
/
I also try without quotes (sfccat = 1) but it doesn't work either.
api2arl.f file I used was last revised the 22nd of February 2010
FYI: for testing, I removed the other surface variables I am interested in.

Best,
Sylvain

Re: api2arl.cfg

Posted: April 26th, 2013, 9:53 am
by ariel.stein
You are working with an older version of the code.
Please find attached the updated code. Let me know if it works.

Re: api2arl.cfg

Posted: April 26th, 2013, 2:48 pm
by ariel.stein
You can also download the files from http://ready.arl.noaa.gov/HYSPLIT_data2arl.php, clicking on the "metprog.zip - source code for many of our decoders" link.

Re: api2arl.cfg

Posted: April 29th, 2013, 1:48 am
by Sylvain
Many thanks for your reply! It should work now

Best,
Sylvain

Re: api2arl.cfg

Posted: February 10th, 2014, 3:26 am
by awenetjacker
waw... Excellent resource of information here, lots of interesting and informative posts. Thank you so much!