Page 1 of 1

Series of control files in trajectory

Posted: June 12th, 2025, 2:27 pm
by may_smith
Hi I have a bunch (20-35) control files that I want to run through the trajectory model. Is there a more efficient way to do it, instead of retrieving each one individually? I haven't used batch code before so hopefully it's not necessary or too difficult. Thank you in advance for your help. I'm using Windows 11.

Re: Series of control files in trajectory

Posted: June 13th, 2025, 6:19 am
by sonny.zinn
As you wrote, scripting can be very useful to run many trajectories. Please see Sec. 4.1 of our HYSPLIT tutorial at https://www.ready.noaa.gov/documents/Tu ... basic.html. Click the terminal icon to the left of the penguin icon to view a Windows script that performs HYSPLIT trajectory. Download the script and use the notepad program to edit the script to fit your needs.

If you want to run the script as is, make sure HYSPLIT is installed at C:\hysplit (so that the C:\hysplit\exec folder exists) and HYSPLIT tutorial at C:\Tutorial. Open a DOS terminal (cmd.exe), change directory to C:\Tutorial, type traj_basic.bat and hit the enter key. Once the trajectory run completes successfully, the script will open a web browser to show a plot.