Running automated multiple 7 days back trajectories with gdas0p5 data
-
- Posts: 4
- Joined: October 30th, 2017, 7:03 am
- Registered HYSPLIT User: Yes
Running automated multiple 7 days back trajectories with gdas0p5 data
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.
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.
-
- Posts: 660
- Joined: November 7th, 2012, 3:14 pm
- Registered HYSPLIT User: Yes
Re: Running automated multiple 7 days back trajectories with gdas0p5 data
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
cat File1 > large_file
cat File2 >> large_file
cat File3 >> large_file
-
- Posts: 4
- Joined: October 30th, 2017, 7:03 am
- Registered HYSPLIT User: Yes
Re: Running automated multiple 7 days back trajectories with gdas0p5 data
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?
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?
-
- Posts: 660
- Joined: November 7th, 2012, 3:14 pm
- Registered HYSPLIT User: Yes
Re: Running automated multiple 7 days back trajectories with gdas0p5 data
I would suggest you write a script.
-
- Posts: 4
- Joined: October 30th, 2017, 7:03 am
- Registered HYSPLIT User: Yes
Re: Running automated multiple 7 days back trajectories with gdas0p5 data
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?
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?
-
- Posts: 451
- Joined: November 9th, 2012, 4:23 pm
- Registered HYSPLIT User: Yes
Re: Running automated multiple 7 days back trajectories with gdas0p5 data
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.
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.
-
- Posts: 4
- Joined: October 30th, 2017, 7:03 am
- Registered HYSPLIT User: Yes
Re: Running automated multiple 7 days back trajectories with gdas0p5 data
Thank you. That really solved the issue.
Re: Running automated multiple 7 days back trajectories with gdas0p5 data
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?
-
- Posts: 451
- Joined: November 9th, 2012, 4:23 pm
- Registered HYSPLIT User: Yes
Re: Running automated multiple 7 days back trajectories with gdas0p5 data
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.
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.
-
- Posts: 7
- Joined: May 24th, 2022, 9:49 am
- Registered HYSPLIT User: Yes
Re: Running automated multiple 7 days back trajectories with gdas0p5 data
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
Thanks