Page 1 of 1

Running automated multiple 7 days back trajectories with gdas0p5 data

Posted: October 30th, 2017, 7:41 am
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.

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

Posted: October 30th, 2017, 11:36 am
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

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

Posted: October 31st, 2017, 2:37 am
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?

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

Posted: October 31st, 2017, 6:56 am
by ariel.stein
I would suggest you write a script.

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

Posted: June 21st, 2018, 2:39 am
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?

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

Posted: June 21st, 2018, 9:49 am
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.

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

Posted: September 13th, 2018, 5:14 am
by Priyanka Srivastava
Thank you. That really solved the issue.

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

Posted: October 15th, 2018, 3:23 am
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?

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

Posted: October 15th, 2018, 10:45 am
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.