Running automated multiple 7 days back trajectories with gdas0p5 data

Post any questions or comments regarding the Desktop PC version of HYSPLIT. This includes the model execution, GUIs, results, or graphics. Be sure to include the operating system you are using (Windows XP, Windows Vista, Windows 7, Windows 8, etc.
Priyanka Srivastava
Posts: 4
Joined: October 30th, 2017, 7:03 am
Registered HYSPLIT User: Yes

Running automated multiple 7 days back trajectories with gdas0p5 data

Post by Priyanka Srivastava »

Hello everyone,
I am trying to accomplish the following task:
1. Use the gdas0p5 data (already downloaded) and get the endpoint files for seven days back air trajectories.

2. I want to get all the endpoint files for two years for 10 and 20 hrs UTC.

Steps I am following to achieve this at present are:
PC version>>>In HYSPLIT Menu tab

1. set Trajectory > Setup Run file (this includes start-end period, no. of grid points, output file prefix, folder, attaching input files etc).

2. run HYSPLIT for a month using Trajectory > Special Runs > Daily.

3. Repeat from step 1 by changing the time period in Setup Run.

Now the problem is:
Number of meteorology files that can be saved in the setup file are limited to 12, therefore I am unable to carry out even monthly analysis at once. This makes the task very tedious and time consuming.

Thus, I look forward for your suggestions in order to make this task simpler using either some batch mode job or any other way that you may suggest.
ariel.stein
Posts: 660
Joined: November 7th, 2012, 3:14 pm
Registered HYSPLIT User: Yes

Re: Running automated multiple 7 days back trajectories with gdas0p5 data

Post by ariel.stein »

you can concatenate the daily files into one large file using the "cat" command in linux or the TYPE command in windows.

cat File1 > large_file
cat File2 >> large_file
cat File3 >> large_file
Priyanka Srivastava
Posts: 4
Joined: October 30th, 2017, 7:03 am
Registered HYSPLIT User: Yes

Re: Running automated multiple 7 days back trajectories with gdas0p5 data

Post by Priyanka Srivastava »

Thanks for your prompt reply. It worked perfectly.

Going a step further, If we wish to do a similar analysis for a larger time domain (say 20-30 years). Is there some other approach to handle the same problem?
ariel.stein
Posts: 660
Joined: November 7th, 2012, 3:14 pm
Registered HYSPLIT User: Yes

Re: Running automated multiple 7 days back trajectories with gdas0p5 data

Post by ariel.stein »

I would suggest you write a script.
Priyanka Srivastava
Posts: 4
Joined: October 30th, 2017, 7:03 am
Registered HYSPLIT User: Yes

Re: Running automated multiple 7 days back trajectories with gdas0p5 data

Post by Priyanka Srivastava »

Thanks Stein for your reply and sincere apologies for this extremely late reply.

Script writing would be a great option but I have never done any for this model so, any links or literature to learn script syntax or any similar format in context of my work shall help a lot.

Also, while doing the monthly trajectories, I encountered one issue:
There was a missing file in gdas0p5 input data and hence all the seven day trajectories requiring this file could not be run. Is there a way out to get model runs for those days?
barbara.stunder
Posts: 451
Joined: November 9th, 2012, 4:23 pm
Registered HYSPLIT User: Yes

Re: Running automated multiple 7 days back trajectories with gdas0p5 data

Post by barbara.stunder »

See script examples in C:\examples\scripts and/or the Tutorial, https://ready.arl.noaa.gov/documents/Tu ... index.html, the C:\ and penguin icons at the top of every page (sec 6.1).

The "Daily" GUI option has been revised to be able to run for a user specified number of days, limited by the number of meteorology files.

For missing gdas0p5 files, you could add the relevant gdas1 file to the list of meteorology files.
Priyanka Srivastava
Posts: 4
Joined: October 30th, 2017, 7:03 am
Registered HYSPLIT User: Yes

Re: Running automated multiple 7 days back trajectories with gdas0p5 data

Post by Priyanka Srivastava »

Thank you. That really solved the issue.
Zainab
Posts: 4
Joined: October 15th, 2018, 2:08 am
Registered HYSPLIT User: No

Re: Running automated multiple 7 days back trajectories with gdas0p5 data

Post by Zainab »

I also need to use gdas0p5 files. I am using Windows 7. I need to get 72 hour back trajectories for all available times of a day for a month. However, I am unable to follow the instructions pertaining to writing of script and using it. I am a novice. Can you please be more explicit?
barbara.stunder
Posts: 451
Joined: November 9th, 2012, 4:23 pm
Registered HYSPLIT User: Yes

Re: Running automated multiple 7 days back trajectories with gdas0p5 data

Post by barbara.stunder »

In Windows, you run the batch files, not the UNIX scripts.
At https://www.ready.noaa.gov/documents/Tu ... _freq.html click on the C:\ - gear icon at the top of the page. This takes you to https://www.ready.noaa.gov/documents/Tu ... j_freq.bat

There are these loops for the day "%%D" and hour "%%H":
for %%D in (01 02 03 04 05 06 07 08 09 10 11 12 13 14 15
16 17 18 19 20 21 22 23 24 25 26 27 28) do (
for %%H in (00 06 12 18) do (

Then in the 1st line of the CONTROL file are the variables %%D and %%H. %SYR% and %SMO% are defined earlier in the batch file.
dominichr1
Posts: 7
Joined: May 24th, 2022, 9:49 am
Registered HYSPLIT User: Yes

Re: Running automated multiple 7 days back trajectories with gdas0p5 data

Post by dominichr1 »

what do we add to the batch files so that they can loop through multiple met files (e.g. multiple weeks worth of GDAS data)

Thanks
Post Reply

Return to “HYSPLIT for PCs”