How to get meteorology output along the trajectory on LINUX

Post any questions or comments regarding the LINUX version of HYSPLIT. This includes the model execution, GUIs, results, or graphics. Be sure to mention the version of LINUX you are using.
Post Reply
grug
Posts: 4
Joined: November 27th, 2018, 3:08 am
Registered HYSPLIT User: Yes

How to get meteorology output along the trajectory on LINUX

Post by grug »

This is the method for WINDOWS:
Meteorology Output Along the Trajectory
Sets the option to write the value of certain meteorological variables along the trajectory to the trajectory
output file. The marker variables are set to (1) to turn on the option. Multiple variables may be selected
for simultaneous output but only one variable may be plotted. If multiple variables are selected in
conjunction with the trajectory display option, then only the last variable output will be shown in the
graphic. The variable output order is fixed in the program and cannot be changed.
  • TM_PRES (0) - diagnostic marker variables to output atmospheric pressure (1) along the
    trajectory
    TM_TPOT (0) - potential temperature (1) in degrees Kelvin
    TM_TAMB (0) - ambient temperature (1) in degrees Kelvin
    TM_RAIN (0) - rainfall (1) in mm per hour
    TM_MIXD (0) - mixed layer depth (1) in meters.
    TM_RELH (0) - relative humidity (1) in percent.
    TM_DSWF (0) - downward solar radiation flux (1) in watts.
    TM_TERR (0) - terrain height (1) in meters required for the trajectory plot to show underlying
    terrain.
I want to get meteorology output along the trajectory on LINUX, how to edit the TRAJ.CFG? I just get the TRAJ.CFG when it finished. And if this can be done. How can I get the WRFout value like aerosol concentrations or some cloud information!
alicec
Posts: 411
Joined: February 8th, 2016, 12:56 pm
Registered HYSPLIT User: Yes

Re: How to get meteorology output along the trajectory on LINUX

Post by alicec »

The tutorial has example linux scripts in many of the sections.
Simply click on the icon of a penguin at the top.
https://ready.arl.noaa.gov/documents/Tu ... _traj.html

You can simply edit the TRAJ.CFG and SETUP.CFG with any text editor and
then use them to start a run.
The user guide has info on the structure of the TRAJ.CFG file
https://www.ready.noaa.gov/hysplitusersguide/S262.htm
and options for the namelist SETUP.CFG file (note that options that
pertain to trajectory runs are noted).
https://www.ready.noaa.gov/hysplitusersguide/S410.htm

The ARL MET files do not contain aerosol concentrations or cloud information so
you would not be able to output those along the trajectory.
The trajectory runs do not calculate concentrations.
grug
Posts: 4
Joined: November 27th, 2018, 3:08 am
Registered HYSPLIT User: Yes

Re: How to get meteorology output along the trajectory on LINUX

Post by grug »

Thank you, I can run the hysplit by changing the SETUP.CFG, not working for editing the TRAJ.CFG. And I notice the GDAS1 file have some cloud value like
|3 TCLD | 1.00 | PCT | 20.00 | AVERAGE TOTAL CLOUD COVER |
|3 CLDB | 1.00 | M | 0.00 | CLOUD BOTTOM HEIGHT |
|3 CLDT | 1.00 | M | 0.00 | CLOUD TOP HEIGHT |
|3 CWMR| 1.00 | G/KG | 0.00 | CLOUD WATER MIXING RATIO |

Can I change the code to get these values along the trajectory,but I don't know how to start?
alicec
Posts: 411
Joined: February 8th, 2016, 12:56 pm
Registered HYSPLIT User: Yes

Re: How to get meteorology output along the trajectory on LINUX

Post by alicec »

By default HYSPLIT looks for a CONTROL and SETUP.CFG file.

CONTROL file
https://www.ready.noaa.gov/hysplitusersguide/S262.htm
and options for the namelist SETUP.CFG file (note that options that
pertain to trajectory runs are noted).
https://www.ready.noaa.gov/hysplitusersguide/S410.htm

If you want to change the code, then you could look at how the other variables are extracted
and add the variables you want in the same way.

There are also some utilities that can be run to extract met variables from the ARL files. You could use one of those as well to
get the variables after you have run the trajectories.
xtrct_stn, profile and vmixing.
nanditha
Posts: 3
Joined: March 6th, 2020, 2:27 pm
Registered HYSPLIT User: Yes

Re: How to get meteorology output along the trajectory on LINUX

Post by nanditha »

Hi, could any one tell me how to replace the default setup.cfg file when running from command prompt.
While running in GUI, the GUI asks whether to use the new SETUP.CFG file created or run with the default. But, while using command prompt in Linux, such option is not there. Even though I create a new setup.cfg file, it rewritten at the end of run and I am unable to get parameter output along trajectory and set the height unit in msl.
Thanks in advance for the help.
I am using ubuntu 18.04.3.LTS
barbara.stunder
Posts: 451
Joined: November 9th, 2012, 4:23 pm
Registered HYSPLIT User: Yes

Re: How to get meteorology output along the trajectory on LINUX

Post by barbara.stunder »

The file needs to be named SETUP.CFG (all capital letters), and it's in the directory where you run hycs_std.
nanditha
Posts: 3
Joined: March 6th, 2020, 2:27 pm
Registered HYSPLIT User: Yes

Re: How to get meteorology output along the trajectory on LINUX

Post by nanditha »

Thanks for the reply. I used all capital letters for the file name and the file is in the directory where I run hyts_std, which is also the location of my CONTROL files. However, it is not read but rewritten every time trajectory run is completed. Do I have to mention anything additional in the CONTROL file to tell the model to read SETUP.CFG before the trajectory run.
barbara.stunder
Posts: 451
Joined: November 9th, 2012, 4:23 pm
Registered HYSPLIT User: Yes

Re: How to get meteorology output along the trajectory on LINUX

Post by barbara.stunder »

No, it automatically reads SETUP.CFG. Try it again.

When I run it, SETUP.CFG if not overwritten.
In my working directory are the files CONTROL, SETUP.CFG, and ASCDATA.CFG.
In the working directory, run hyts_std
Files created are tdump, MESSAGE, and TRAJ.CFG.
SETUP.CFG and CONTROL are not changed.
The MESSAGE file lists the SETUP.CFG parameters used in the run.
Post Reply

Return to “HYSPLIT for LINUX”