29 - 1.025e-2 * T * (S - 35)
30 - 7.139e-13 * T*D*D*D);
39 int main(
int argc,
char **argv)
50 JParser<> zap(
"Example program to plot UNESCO sound velocity.");
58 catch(
const exception &error) {
59 FATAL(error.what() << endl);
65 TH2D h2(
"h2", NULL, 1000, 10.0, 20.0, 1000, 25.0, 40.0);
67 for (Int_t ix = 1; ix <= h2.GetXaxis()->GetNbins(); ++ix) {
68 for (Int_t iy = 1; iy <= h2.GetXaxis()->GetNbins(); ++iy) {
70 const Double_t
T = h2.GetXaxis()->GetBinCenter(ix);
71 const Double_t
S = h2.GetYaxis()->GetBinCenter(iy);
76 h2.SetBinContent(ix, iy, V);
Utility class to parse command line options.
int main(int argc, char *argv[])
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
do set_variable OUTPUT_DIRECTORY $WORKDIR T
double getVelocity(const double D, const double S, const double T)
Get sound velocity.
General purpose messaging.
do set_variable SIGMA_NS set_variable OUTLIERS set_variable OUTPUT_FILE matrix[${ALPHA_DEG}\deg\] root $JPP JMatrixNZ a $DETECTOR f $INPUT_FILE o $OUTPUT_FILE S
Utility class to parse command line options.
do echo Generating $dir eval D