Series of control files in trajectory
Series of control files in trajectory
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.
-
- Posts: 389
- Joined: May 8th, 2019, 1:31 pm
- Registered HYSPLIT User: Yes
Re: Series of control files in trajectory
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.
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.