@@ -38,6 +38,7 @@ int main(int argc, char *argv[])
3838 bool debug = false ;
3939 bool export_cube_stats = false ;
4040 bool legacyHDF5 = false ;
41+ bool progress = false ;
4142
4243 desc.add_options ()
4344 (" help,h" , " print usage message" )
@@ -46,6 +47,7 @@ int main(int argc, char *argv[])
4647 (" method" , value (&method)->default_value (" SIMPLE" ), " set SAR method: IEEE_C95_3, IEEE_62704, SIMPLE" )
4748 (" mass,m" , value (&m_avg), " averaging mass in g" )
4849 (" verbose,v" , bool_switch (&debug), " verbose" )
50+ (" progress,p" , bool_switch (&progress), " show progress" )
4951 (" export_cube_stats,e" , bool_switch (&export_cube_stats), " Export Cube Statistics" )
5052 (" legacyHDF5Dumps" , bool_switch (&legacyHDF5), " Dumping using the legacy HDF5 file format as required for Octave/Matlab import" );
5153
@@ -60,6 +62,7 @@ int main(int argc, char *argv[])
6062
6163 SAR_Calculation sar_calc;
6264 sar_calc.SetDebugLevel (int (debug));
65+ sar_calc.EnableProgress (progress);
6366 sar_calc.SetAveragingMass (m_avg/1000 );
6467 // sar_calc.SetAveragingMethod(SAR_Calculation::IEEE_62704);
6568 if (!sar_calc.SetAveragingMethod (method, !debug))
0 commit comments