Jpp  15.0.5
the software that should make you happy
 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 >] nAuxiliary
script to initialise
environment for acoustics data
processing fi 
if (($# >1))
 
then fatal Wrong number of
arguments fi 
if (($#==1))&&[["$1"!
 

Variables

 script
 
then echo Variable JPP_DIR
undefined exit fi source
$JPP_DIR setenv sh $JPP_DIR
&dev null 
set_variable
 
then let ID
 
do if [[!-f $ACOUSTICS_WORKDIR/${KEY}.txt]]
 
then cp $JPP_LIB
 
then error There are missing
input files for detector
identifier $ID nYou can use
$script with one of the
existing detector 
identifiers
 

Function Documentation

then usage $script [<detector identifier>] nAuxiliary script to initialise environment for acoustics data processing fi if ( ($# >1)  )
then fatal Wrong number of arguments fi if ( ($#==1)  )

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

Definition at line 20 of file JAcoustics.sh.

Initial value:
="$1" # Detector identifier
typeset -a ERRORS
for KEY in sound_velocity tripod waveform hydrophone mechanics acoustics_trigger_parameters acoustics_fit_parameters disable
then JCalibrateToT a
Definition: JTuneHV.sh:116
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 CHECK_EXIT_CODE typeset A TRIPODS get_tripods $WORKDIR tripod txt TRIPODS for EMITTER in
Definition: JCanberra.sh:41
then echo Monitoring data echo Detector
Definition: JSlewingK40.sh:97

Definition at line 31 of file JAcoustics.sh.

then fatal Invalid option $OPTION fi if

Definition at line 39 of file JAcoustics.sh.

then cp $JPP_LIB
Initial value:
{KEY}_${(l:8::0::0:)ID}.txt $ACOUSTICS_WORKDIR/${KEY}.txt
else
ERRORS+=($ACOUSTICS_WORKDIR/${KEY}.txt)
fi
fi
if (( ${#ERRORS} != 0 ))
then usage $script< directory A >< directoryB > nIn each there should be a file detector datx and tripod txt
set_variable NUMBER_OF_ITERATIONS set_variable EPSILON cat acoustics_fit_parameters txt<< EOF $CONFIGURATION[*]Nmin=3;sigma_s=100.0e-6;stdev=10.0;mestimator=0;fixStrings=0;EOF for STRING in $STRINGS[*];do#fit stretching and(z) position of given string set_variable DETECTOR_TMP/tmp/detector_A.datx JEditDetector-a $DETECTOR-o $DETECTOR_TMP-r $STRING JEditDetector-a $DETECTOR-o $DETECTOR-k $STRING for MUL in 0.005 0.001;do DX_M=0.2 for((N=0;$N< $NUMBER_OF_ITERATIONS;++N));do CHI2[3]=$CHI2[1] fitPositionOfString $STRING Z $DX_M fitStretchingOfString $STRING $MUL if(($CHI2[3]-$CHI2[1]< $EPSILON));then break fi done if(($N >=$NUMBER_OF_ITERATIONS));then printf"warning: reached maximum number of iterations %d - converenge %7.3f\n"$N $(($CHI2[3]-$CHI2[1])) fi done JMergeDetector-a $DETECTOR-a $DETECTOR_TMP-o $DETECTOR rm-f $DETECTOR_TMP JConvertDetectorFormat-a $DETECTOR-o $DETECTOR-r-d 0 > &dev null done

Definition at line 41 of file JAcoustics.sh.

then error There are missing input files for detector identifier $ID nYou can use $script with one of the existing detector identifiers

Definition at line 68 of file JAcoustics.sh.