Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions ppcpy/qc/overlapCor.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def spread(data_cube):

if len(olFuncs) > 1:
## Use different overlap function for different times, centered around theire cloud free period.
logging.info(f'Using time-varying ovrlap function for channel for channel: {channel.replace('_', ' ')}.')
logging.info(f"Using time-varying ovrlap function for channel for channel: {channel.replace('_', ' ')}.")
olFunc_2d = np.zeros((2*len(olFuncs), height.shape[0]))

## Set the estimated overlap profiles to the beginning and end of the profile
Expand All @@ -103,7 +103,7 @@ def spread(data_cube):

else:
## Use same olFunc function for all timestamps.
logging.info(f'Using time-constant overlap function for channel: {channel.replace('_', ' ')}.')
logging.info(f"Using time-constant overlap function for channel: {channel.replace('_', ' ')}.")
ol = olFuncs[0]['olFunc']
olFunc_2d = np.repeat(ol[np.newaxis, :], time.shape[0], axis=0)

Expand Down Expand Up @@ -241,4 +241,4 @@ def hFullOLbyGrp(clFreeGrps, heightFullOverCor):
print(heightFullOverCor.shape)

ret = [np.mean(heightFullOverCor[slice(*cF)], axis=0) for cF in clFreeGrps]
print(ret)
print(ret)
2 changes: 1 addition & 1 deletion ppcpy/retrievals/raman.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def run_cldFreeGrps(data_cube, signal:str='TCor', heightFullOverlap:list=None, n

# Check availability of Raman channel during retireval priod
if data_cube.retrievals_profile[f'mask{wv_r}Off'][i] > 0:
logging.warning(f'Channel {wv_r} {t_r} {tel_r} was not opertional {data_cube.retrievals_profile[f'mask{wv_r}Off'][i]*100:.2f}% of the profile retrieval period.')
logging.warning(f"Channel {wv_r} {t_r} {tel_r} was not opertional {data_cube.retrievals_profile[f'mask{wv_r}Off'][i]*100:.2f}% of the profile retrieval period.")
# .. TODO:: add this information to a quality flag for the profile based on how long wv_r was unoperational.
if data_cube.retrievals_profile[f'mask{wv_r}Off'][i] > 0.5: # <-- .. TODO:: decide on a treshold for skipping the channel processing.
logging.warning('Skipping Raman retrival for this channel.')
Expand Down