VERSION BUILD=6700624 RECORDER=FX 'Ensure the internet browser being used has no other tabs open. This macro has been designed 'for use with Mozilla Firefox and iMacros version 6.7.0.1 'Set the index of the database to start at. See the GDAS_Index.txt file for a list of dates and index SET !LOOP 1 TAB T=1 URL GOTO=http://ready.arl.noaa.gov/HYSPLIT.php TAG POS=1 TYPE=A ATTR=TXT:RunHYSPLITTrajectoryModel TAG POS=1 TYPE=A ATTR=TXT:Computearchivetrajectories TAG POS=1 TYPE=INPUT:SUBMIT FORM=ACTION:http://ready.arl.noaa.gov/hysplit-bin/trajasrc.pl ATTR=VALUE:Next>> 'Specify the Latitude and Longitude of the Receptor Site: TAG POS=1 TYPE=INPUT:TEXT FORM=ACTION:/hysplit-bin/trajasrcm.pl ATTR=ID:Lat CONTENT=40.530 TAG POS=1 TYPE=INPUT:TEXT FORM=ACTION:/hysplit-bin/trajasrcm.pl ATTR=NAME:Lon CONTENT=-185.360 TAG POS=1 TYPE=INPUT:SUBMIT FORM=ACTION:http://ready.arl.noaa.gov/hysplit-bin/trajasrcm.pl ATTR=VALUE:Continue TAG POS=1 TYPE=SELECT FORM=ACTION:/hysplit-bin/traj1a.pl ATTR=NAME:metfile CONTENT=#{{!LOOP}} TAG POS=1 TYPE=INPUT:SUBMIT FORM=ACTION:http://ready.arl.noaa.gov/hysplit-bin/traj1a.pl ATTR=VALUE:Next>> 'Specify whether the Backward or Forward trajectories should be calculated. By Default, the GDAS database is selected.: TAG POS=1 TYPE=INPUT:RADIO FORM=NAME:HYSP1 ATTR=NAME:direction&&VALUE:Backward TAG POS=1 TYPE=SELECT FORM=NAME:HYSP1 ATTR=NAME:Startday CONTENT=1 'Total trajectory run time (hours): TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:HYSP1 ATTR=NAME:duration CONTENT=240 'Trajectory interval (in hours): TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:HYSP1 ATTR=NAME:repeatsrc CONTENT=6 'Specify an additional 2 starting longitudes and latitudes (typically the receptor site ones): TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:HYSP1 ATTR=NAME:Sourcelat2 CONTENT=40.530 'latitude #2 TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:HYSP1 ATTR=NAME:Sourcelon2 CONTENT=-185.360 'longitude #2 TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:HYSP1 ATTR=NAME:Sourcelat3 CONTENT=40.530 'latitude #3 TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:HYSP1 ATTR=NAME:Sourcelon3 CONTENT=-185.360 'longitude #3 'Specify the height corresponding to starting longitudes and latitudes (in meters): TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:HYSP1 ATTR=NAME:Sourcehgt1 CONTENT=2000 'corresponds to latitude, longitude #1 TAG POS=1 TYPE=INPUT:RADIO FORM=NAME:HYSP1 ATTR=NAME:Sourcehunit&&VALUE:1 TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:HYSP1 ATTR=NAME:Sourcehgt2 CONTENT=3000 'corresponds to latitude, longitude #2 TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:HYSP1 ATTR=NAME:Sourcehgt3 CONTENT=1138 'corresponds to latitude, longitude #3 'Additional Form Elements TAG POS=19 TYPE=TD ATTR=TXT: TAG POS=1 TYPE=SELECT FORM=NAME:HYSP1 ATTR=NAME:gsize CONTENT=%72 TAG POS=1 TYPE=TD ATTR=TXT:7296120 TAG POS=1 TYPE=INPUT:RADIO FORM=NAME:HYSP1 ATTR=NAME:color&&VALUE:No TAG POS=1 TYPE=INPUT:RADIO FORM=NAME:HYSP1 ATTR=NAME:pltsrc&&VALUE:0 TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:HYSP1 ATTR=NAME:ntrajs CONTENT=28 TAG POS=8 TYPE=TD ATTR=COLSPAN:4 TAG POS=1 TYPE=INPUT:SUBMIT FORM=NAME:HYSP1 ATTR=VALUE:Requesttrajectory 'Dump Meteorological Data Along Trajectory Option - Mixed Layer Depth (in metres) TAG POS=1 TYPE=INPUT:CHECKBOX FORM=NAME:HYSP1 ATTR=NAME:mixd CONTENT=YES 'Number of seconds to wait for the calculation to finish: WAIT SECONDS=200 'Automatically save the file to a default directory, with a timestamp: ONDOWNLOAD FOLDER=* FILE=+_{{!NOW:yyyymmdd_hhnnss}} WAIT=YES TAG POS=1 TYPE=A ATTR=TXT:Trajectoryendpointsfile. CONTENT=EVENT:SAVETARGETAS