@ARamsay17 I found a reproducible instance of this nagging comet_maths error while processing pySAS data from OceanX. I placed the L1BQC file and configuration/calibration files on the Box under Data/OceanX.
Exception has occurred: ValueError
comet_maths.generate_sample.correlate_sample_corr: you cannot correlate a sample with 0 std
File "/Users/daurin/GitRepos/HyperCP/Source/PIU/Uncertainty_Analysis.py", line 170, in Propagate_Lw_HYPER
mean_vals,
uncertainties,
corr_between=self.corr_matrix_Default_Lw,
corr_x=corr_list)
File "/Users/daurin/GitRepos/HyperCP/Source/PIU/UncPlotting.py", line 278, in classBasedL2
UNCS['Lw'][keys_lw[indx]] = prop.Propagate_Lw_HYPER(lw_vals, uLw)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/daurin/GitRepos/HyperCP/Source/PIU/BaseInstrument.py", line 344, in ClassBasedL2
BD_UNCS, BD_VALS = PlotMaths.classBasedL2(UNC_obj_CB, lw_means, rrs_means, lw_uncertainties, rrs_uncertainties, False)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/daurin/GitRepos/HyperCP/Source/ProcessL2.py", line 1554, in ensemblesReflectance
L2_UNC, L2_BD = instrument.ClassBasedL2(node, uncGroup, rhoScalar, rhoVec, rhoUNC, waveSubset, xSlice)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/daurin/GitRepos/HyperCP/Source/ProcessL2.py", line 2045, in stationsEnsemblesReflectance
uncGroup, esRawGroup,liRawGroup, ltRawGroup,
sixSGroup, start, end):
logging.writeLogFileAndPrint('ProcessL2.ensemblesReflectance with slices failed. Continue.')
File "/Users/daurin/GitRepos/HyperCP/Source/ProcessL2.py", line 2146, in processL2
if not ProcessL2.stationsEnsemblesReflectance(node, root,station):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/daurin/GitRepos/HyperCP/Source/Controller.py", line 468, in processL2
node = ProcessL2.processL2(root,station)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/daurin/GitRepos/HyperCP/Source/Controller.py", line 761, in processSingleLevel
root = Controller.processL2(root,outFilePath)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/daurin/GitRepos/HyperCP/Main.py", line 759, in init
self.outputDirectory, iFile, calibrationMap, to_level)
File "/Users/daurin/GitRepos/HyperCP/run_NASA_Cruise.py", line 221, in run_Command
PATH_CFG,
from_level,
inputFiles,
outPath,
to_level,
PATH_ANC,
MULTI_LEVEL
)
File "/Users/daurin/GitRepos/HyperCP/run_NASA_Cruise.py", line 241, in worker
run_Command(file,pathOut)
File "/Users/daurin/GitRepos/HyperCP/run_NASA_Cruise.py", line 290, in
worker(fp_input_files,PATH_OUTPUT)
ValueError: comet_maths.generate_sample.correlate_sample_corr: you cannot correlate a sample with 0 std
@ARamsay17 I found a reproducible instance of this nagging comet_maths error while processing pySAS data from OceanX. I placed the L1BQC file and configuration/calibration files on the Box under Data/OceanX.
Exception has occurred: ValueError
comet_maths.generate_sample.correlate_sample_corr: you cannot correlate a sample with 0 std
File "/Users/daurin/GitRepos/HyperCP/Source/PIU/Uncertainty_Analysis.py", line 170, in Propagate_Lw_HYPER
mean_vals,
File "/Users/daurin/GitRepos/HyperCP/Source/PIU/UncPlotting.py", line 278, in classBasedL2
UNCS['Lw'][keys_lw[indx]] = prop.Propagate_Lw_HYPER(lw_vals, uLw)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/daurin/GitRepos/HyperCP/Source/PIU/BaseInstrument.py", line 344, in ClassBasedL2
BD_UNCS, BD_VALS = PlotMaths.classBasedL2(UNC_obj_CB, lw_means, rrs_means, lw_uncertainties, rrs_uncertainties, False)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/daurin/GitRepos/HyperCP/Source/ProcessL2.py", line 1554, in ensemblesReflectance
L2_UNC, L2_BD = instrument.ClassBasedL2(node, uncGroup, rhoScalar, rhoVec, rhoUNC, waveSubset, xSlice)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/daurin/GitRepos/HyperCP/Source/ProcessL2.py", line 2045, in stationsEnsemblesReflectance
uncGroup, esRawGroup,liRawGroup, ltRawGroup,
File "/Users/daurin/GitRepos/HyperCP/Source/ProcessL2.py", line 2146, in processL2
if not ProcessL2.stationsEnsemblesReflectance(node, root,station):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/daurin/GitRepos/HyperCP/Source/Controller.py", line 468, in processL2
node = ProcessL2.processL2(root,station)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/daurin/GitRepos/HyperCP/Source/Controller.py", line 761, in processSingleLevel
root = Controller.processL2(root,outFilePath)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/daurin/GitRepos/HyperCP/Main.py", line 759, in init
self.outputDirectory, iFile, calibrationMap, to_level)
File "/Users/daurin/GitRepos/HyperCP/run_NASA_Cruise.py", line 221, in run_Command
PATH_CFG,
File "/Users/daurin/GitRepos/HyperCP/run_NASA_Cruise.py", line 241, in worker
run_Command(file,pathOut)
File "/Users/daurin/GitRepos/HyperCP/run_NASA_Cruise.py", line 290, in
worker(fp_input_files,PATH_OUTPUT)
ValueError: comet_maths.generate_sample.correlate_sample_corr: you cannot correlate a sample with 0 std