Skip to content
Merged
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
4 changes: 3 additions & 1 deletion src/glide/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,9 @@ def l2(

merged = process_l1.calculate_thermodynamics(merged, conf)

out = profiles.get_profiles(merged, shallowest_profile, min_surface_time)
out = profiles.get_profiles(
merged, shallowest_profile, min_surface_time, flt=flt_raw
)

out = profiles.assign_surface_state(out, flt=flt_raw)

Expand Down
3 changes: 3 additions & 0 deletions src/glide/process_l2.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,9 @@ def bin_l2(

for row in profile_indexes:
profile = ds.isel(i=slice(row[0], row[1]))
if not np.isfinite(profile.depth.values).any():
_log.debug("Skipping profile [%d:%d] with no finite depth", row[0], row[1])
continue
time = profile.time.values
idx_mid = np.searchsorted(time, 0.5 * (time[0] + time[-1]))

Expand Down
Loading
Loading