Jpp
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Functions | Variables
JAcoustics.sh File Reference

Go to the source code of this file.

Functions

then usage $script[< detector
identifier >] fi 
if (($# >1))
 
then fatal Wrong number of
arguments fi 
if (($#==1))&&[["$1"!
 
*fatal Invalid argument *esac
fi function 
print_velocity ()
 
function print_tripods ()
 
function get_tripods ()
 

Variables

 script
 
then echo Variable JPP_DIR
undefined exit fi source
$JPP_DIR setenv sh $JPP_DIR
&dev null set_variable 
ACOUSTICS_DEBUG
 
then let ID
 
do if [[!-f $ACOUSTICS_WORKDIR/${KEY}.txt &&-f $JPP_LIB/${KEY}_ ${(l:8::0::0:) ID}.txt]]
 
then cp $JPP_LIB
 
 TRIGGER
 
 PARAMETERS
 
 VELOCITY ="1481.0 -17e-3 -3000.0"
 

Function Documentation

then usage $script [<detector identifier>] fi if ( ($# >1)  )
then fatal Wrong number of arguments fi if ( ($#==1)  )
* fatal Invalid argument* esac fi function print_velocity ( )

Definition at line 81 of file JAcoustics.sh.

82 {
83  echo "\"$VELOCITY\""
84 }
then echo
function print_tripods ( )

Definition at line 89 of file JAcoustics.sh.

90 {
91  awk 'BEGIN { printf "\"" } END { printf "\"\n" } $1 !~ /^#/ { print $0 }' $ACOUSTICS_WORKDIR/tripod.txt
92 }
function get_tripods ( )

Definition at line 100 of file JAcoustics.sh.

Variable Documentation

script
Initial value:
=${0##*/}
if [ -z $JPP_DIR ]

Definition at line 2 of file JAcoustics.sh.

then echo Variable JPP_DIR undefined exit fi source $JPP_DIR setenv sh $JPP_DIR& dev null set_variable ACOUSTICS_DEBUG
Initial value:
set_variable ACOUSTICS_WORKDIR ${ACOUSTICS_WORKDIR:-./}
if ( do_usage $* )
void set_variable(const std::string &name, const std::string &value)
Set environment variable.
then echo Variable JPP_DIR undefined exit fi source $JPP_DIR setenv sh $JPP_DIR &dev null set_variable ACOUSTICS_DEBUG
Definition: JAcoustics.sh:17

Definition at line 17 of file JAcoustics.sh.

&set_variable ID
Initial value:
="$1" # Detector identifier
for KEY in tripod hydrophone
then fatal Wrong number of arguments fi set_variable DETECTOR $argv[1] set_variable INPUT_FILE $argv[2] eval JPrintDetector a $DETECTOR O IDENTIFIER eval JPrintDetector a $DETECTOR O SUMMARY source JAcoustics sh $DETECTOR_ID typeset A TRIPODS get_tripods $WORKDIR tripod txt TRIPODS for EMITTER in
Definition: JCanberra.sh:36
then echo Monitoring data echo Detector
Definition: JSlewingK40.sh:95

Definition at line 30 of file JAcoustics.sh.

then fatal Invalid option $OPTION fi if

Definition at line 35 of file JAcoustics.sh.

then cp $JPP_LIB
Initial value:
{KEY}_${(l:8::0::0:)ID}.txt $ACOUSTICS_WORKDIR/${KEY}.txt
fi
typeset -A TRIGGER # Event builder parameters.
typeset -A PARAMETERS # Position calibration parameters.
case $ID in
49) VELOCITY="1538.0 -17e-3 -2000.0"
*fatal Wrong number of arguments esac JCookie sh typeset Z DETECTOR typeset Z SOURCE_RUN typeset Z TARGET_RUN set_variable PARAMETERS_FILE $WORKDIR parameters
Definition: diff-Tuna.sh:38
VELOCITY
Definition: JAcoustics.sh:60
TRIGGER
Definition: JAcoustics.sh:47
PARAMETERS
Definition: JAcoustics.sh:52
then fatal Wrong number of arguments fi set_variable DETECTOR $argv[1] set_variable INPUT_FILE $argv[2] eval JPrintDetector a $DETECTOR O IDENTIFIER eval JPrintDetector a $DETECTOR O SUMMARY source JAcoustics sh $DETECTOR_ID typeset A TRIPODS get_tripods $WORKDIR tripod txt TRIPODS for EMITTER in
Definition: JCanberra.sh:36
source $JPP_DIR setenv csh $JPP_DIR eval JShellParser o a A
esac done
Definition: JAddHDE.sh:21

Definition at line 36 of file JAcoustics.sh.

TRIGGER
Initial value:
=(
Q 0.0
TMax_s 0.020
numberOfHits 90)

Definition at line 47 of file JAcoustics.sh.

PARAMETERS
Initial value:
=(
Tmax_s 300.0
Nmin 3
sigma_s 50.0e-6
stdev 10.0
then $DIR JKatoomba a $DETECTOR o $WORKDIR katoomba root T $TRIPOD n sigma_s

Definition at line 52 of file JAcoustics.sh.

VELOCITY ="1481.0 -17e-3 -3000.0"

Definition at line 60 of file JAcoustics.sh.