api2arl.cfg

Post questions and find resources to convert meteorological data into a format HYSPLIT can read.
Post Reply
Sylvain
Posts: 4
Joined: April 12th, 2013, 6:38 am
Registered HYSPLIT User: No

api2arl.cfg

Post 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
ariel.stein
Posts: 660
Joined: November 7th, 2012, 3:14 pm
Registered HYSPLIT User: Yes

Re: api2arl.cfg

Post 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).
Sylvain
Posts: 4
Joined: April 12th, 2013, 6:38 am
Registered HYSPLIT User: No

Re: api2arl.cfg

Post 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
ariel.stein
Posts: 660
Joined: November 7th, 2012, 3:14 pm
Registered HYSPLIT User: Yes

Re: api2arl.cfg

Post by ariel.stein »

Can you please send the configuration file you are using?
Sylvain
Posts: 4
Joined: April 12th, 2013, 6:38 am
Registered HYSPLIT User: No

Re: api2arl.cfg

Post 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
ariel.stein
Posts: 660
Joined: November 7th, 2012, 3:14 pm
Registered HYSPLIT User: Yes

Re: api2arl.cfg

Post 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.
Attachments
api2arl.zip
(46.45 KiB) Downloaded 303 times
ariel.stein
Posts: 660
Joined: November 7th, 2012, 3:14 pm
Registered HYSPLIT User: Yes

Re: api2arl.cfg

Post 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.
Sylvain
Posts: 4
Joined: April 12th, 2013, 6:38 am
Registered HYSPLIT User: No

Re: api2arl.cfg

Post by Sylvain »

Many thanks for your reply! It should work now

Best,
Sylvain
awenetjacker
Posts: 1
Joined: February 10th, 2014, 3:10 am
Registered HYSPLIT User: No

Re: api2arl.cfg

Post by awenetjacker »

waw... Excellent resource of information here, lots of interesting and informative posts. Thank you so much!
Post Reply

Return to “Conversion programs”