run trajectory matrix mode from script ?

Post any praises for the work of the HYSPLIT Developers and the products they make available to the public or any helpful criticisms so that we can do a better job of providing quality products.
Post Reply
edieudon
Posts: 2
Joined: February 7th, 2014, 6:37 am
Registered HYSPLIT User: No

run trajectory matrix mode from script ?

Post by edieudon » February 7th, 2014, 6:59 am

Hello,

I would like to know if it's possible to run trajectories in matrix mode using a script.

I've already run single trajectories by calling "hyts_std.exe" in the script, ensemble trajectories work also fine by calling "hyts_ens.exe", but there is no "hyts_mat.exe" or something that could be called to run matrix trajectories. I found nothing about this in the user's guide or in the readme files.

I could get the same result with single trajectories by looping on the point of origin in the script but this would generate many more output files so I would prefer to use directly the matrix mode if possible.

Can you tell me how to proceed ?
Thanks for your answer,
Elsa

ariel.stein
Posts: 644
Joined: November 7th, 2012, 3:14 pm
Registered HYSPLIT User: Yes
Contact:

Re: run trajectory matrix mode from script ?

Post by ariel.stein » February 7th, 2014, 9:56 am

Here you have an example for such a script:

#!/bin/sh

MDL="${HOME}/hysplit4"
MET="${HOME}/Tutorial/captex"
OUT="."
cd $OUT

if [ ! -f ASCDATA.CFG ]; then
echo "-90.0 -180.0" >ASCDATA.CFG
echo "1.0 1.0" >>ASCDATA.CFG
echo "180 360" >>ASCDATA.CFG
echo "2" >>ASCDATA.CFG
echo "0.2" >>ASCDATA.CFG
echo "$MDL/bdyfiles/" >>ASCDATA.CFG
fi
echo $0

echo "83 09 25 17 " >CONTROL
echo "3 " >>CONTROL
echo "38.00 -84.00 750.0 " >>CONTROL
echo "44.00 -74.00 750.0 " >>CONTROL
echo "39.00 -83.00 750.0 " >>CONTROL
echo "6 " >>CONTROL
echo "0 " >>CONTROL
echo "10000.0 " >>CONTROL
echo "1 " >>CONTROL
echo "$MET/ " >>CONTROL
echo "captex2_narr.bin " >>CONTROL
echo "./ " >>CONTROL
echo "fdump " >>CONTROL

rm -f SETUP.CFG
${MDL}/exec/latlon
${MDL}/exec/hyts_std
${MDL}/exec/trajplot -v0 -z80 -j${MDL}/graphics/arlmap -ifdump
cat trajplot.ps >>results.ps

rm -f fdump trajplot.ps
# gs results.ps

edieudon
Posts: 2
Joined: February 7th, 2014, 6:37 am
Registered HYSPLIT User: No

Re: run trajectory matrix mode from script ?

Post by edieudon » February 10th, 2014, 4:31 am

OK, so I need first to call "latlon.exe" to generate the matrix of starting points, and then the standard hysplit executable does the job.

Thanks for your help !

Elsa

Post Reply