Call the isofit run command instead of just printing it
@@ -11,7 +11,6 @@ basic_surface_json_path="$isofit_dir/data/basic_surface.json"
input_spectrum_files_path="$isofit_dir/data/reflectance/surface_model_ucsb"
echo "basedir is $basedir"
echo "isofit_dir is $isofit_dir"
-echo "basic_surface_json_path is $basic_surface_json_path"
input="input"
mkdir output
@@ -93,8 +92,8 @@ echo "Building surface model using config file $input/basic_surface.json"
python -c "from isofit.utils import surface_model; surface_model('$input/basic_surface.json')"
# Run isofit
-isofit_cmd="python $apply_oe_exe $rdn_path $loc_ort_path $obs_ort_path output ang --presolve=1 --empirical_line=1
- --emulator_base=$EMULATOR_DIR --n_cores 4 --wavelength_path $input/wavelengths.txt
- --surface_path $input/basic_surface.mat"
+isofit_cmd="""python $apply_oe_exe $rdn_path $loc_ort_path $obs_ort_path output ang --presolve=1 --empirical_line=1 \
+--emulator_base=$EMULATOR_DIR --n_cores 14 --wavelength_path $input/wavelengths.txt \
+--surface_path $input/basic_surface.mat"""
echo "Executing command: $isofit_cmd"
-echo $isofit_cmd
\ No newline at end of file
+$isofit_cmd
\ No newline at end of file
