Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
f4fd98e
Add drift attribute in superfloat_oxygen QC
CarolinaAmadio Apr 10, 2026
f895b9f
Refactor report handling and improve metadata defaults
CarolinaAmadio Apr 10, 2026
aa2aaa2
Improve documentation and clarify QC condition in Depth_inter
CarolinaAmadio Apr 10, 2026
85bac2f
Rename the function trend_analysis to extract_oxy_timeseries_at_depth…
CarolinaAmadio Apr 13, 2026
ca369c7
Fix time window to include profiles up to 1 hour after current time
CarolinaAmadio Apr 13, 2026
a1acb1a
Enhance get_trend_report with early return option and improved durati…
CarolinaAmadio Apr 13, 2026
c4ed0d5
Add documentation and fix trend handling logic in clim_check
CarolinaAmadio Apr 13, 2026
a909da8
Fix 600m data check bug before/after for drift decision logic
CarolinaAmadio Apr 13, 2026
0174e53
Add docstring and update load_history to save reports
CarolinaAmadio Apr 13, 2026
fac8c7b
Update information stored in df_report
CarolinaAmadio Apr 13, 2026
7018d5c
Improve nans_check logic and add proper documentation
CarolinaAmadio Apr 13, 2026
fe2f051
fix bug on drift thresold, abs(drift)<1
CarolinaAmadio Apr 14, 2026
e52bfbf
Use adjusted TEMP/PSAL by default with fallback to real-time
CarolinaAmadio Apr 16, 2026
9e6a1cf
Improve robustness in oxygen conversion and TEMP handling
CarolinaAmadio Apr 16, 2026
6130b11
fix bug in np.interp
CarolinaAmadio Apr 16, 2026
5015438
TEMP and PSAL are now read firstly in AM mode instead of RT.
CarolinaAmadio Apr 28, 2026
0e483a7
Fix PSAL dimension and PresS usage in superfloat generators
CarolinaAmadio Apr 29, 2026
682a22f
Update of reading PresS and clim data
CarolinaAmadio May 4, 2026
6f8e67b
Flatten "inthisprofile" using ravel() for consistent indexing
CarolinaAmadio May 5, 2026
00efd5c
Added files to manipulate CANYONMED dataset
CarolinaAmadio May 7, 2026
21f6d8d
modify import
CarolinaAmadio May 12, 2026
4dfd8f2
Fix clim_check OFFSET by using last 3 valid 600m VAR value and raise …
CarolinaAmadio May 13, 2026
19855f7
fix: prioritize adjusted TEMP/PSAL profiles in oxy_sat
CarolinaAmadio May 14, 2026
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
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,6 @@ makefile
*.grib
/.pytest_cache/
.hypothesis/*
bitsea-copilot-coder-bundle.zip
docs
*pyc
20 changes: 15 additions & 5 deletions src/bitsea/Float/CORIOLIS_checks.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,16 +30,26 @@ def check_lenght_timeseries(df):
days = duration.days
return(days>365)

# check over nans
# check over nans
def nans_check(df, namecol):
""" input : dataframe & nameof column selected for the check
"""
output : Boolean
method : fill nans inside the dataset to remove the starting part of time series: create list_index
nan are counted in the core of time series df_ix[list_index]
"""
"""
df[namecol] = pd.to_numeric(df[namecol])
list_index = list((df.interpolate()).dropna().index)
return(df.iloc[list_index].VAR.isna().sum() < df.shape[0]/2)
list_index = list((df.VAR.interpolate()).dropna().index)
sliced_time_df = df.iloc[list_index]
if sliced_time_df.empty:
return False
if len(sliced_time_df) <5:
return False
sliced_time_df["time"] = pd.to_datetime(sliced_time_df["time"])
duration_days = (sliced_time_df["time"].iloc[-1] - sliced_time_df["time"].iloc[0]).days

if duration_days > 365 : return True
else: return False


def lenght_timeseries(df, namecol):
df1=df.copy()
Expand Down
11 changes: 9 additions & 2 deletions src/bitsea/Float/Float_opt/superfloat_cdom.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
import argparse
def read_temp_psal(p):
PresT, Temp, QcT = p.read('TEMP', read_adjusted=True)
Pres, Sali, QcS = p.read('PSAL', read_adjusted=True)
if (Pres is None or PresT is None or Temp is None or Sali is None or len(Pres) < 5 or len(PresT) < 5):
PresT, Temp, QcT = p.read('TEMP', read_adjusted=False)
Pres, Sali, QcS = p.read('PSAL', read_adjusted=False)
return PresT, Temp, QcT, Pres, Sali, QcS

def argument():
parser = argparse.ArgumentParser(description = '''
Creates superfloat files of cdom.
Expand Down Expand Up @@ -47,8 +55,7 @@ def dump_cdom_file(outfile, p, Pres, Value, Qc, metatata, mode='w'):
ncOUT = NC.netcdf_file(outfile + ".tmp" ,mode)

if mode=='w': # if not existing file, we'll put header, TEMP, PSAL
PresT, Temp, QcT = p.read('TEMP', read_adjusted=False)
PresT, Sali, QcS = p.read('PSAL', read_adjusted=False)
PresT, Temp, QcT, Pres, Sali, QcS = read_temp_psal(p)
ncOUT.createDimension("DATETIME",14)
ncOUT.createDimension("NPROF", 1)
ncOUT.createDimension('nTEMP', len(PresT))
Expand Down
11 changes: 9 additions & 2 deletions src/bitsea/Float/Float_opt/superfloat_chla.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
import argparse
def read_temp_psal(p):
PresT, Temp, QcT = p.read('TEMP', read_adjusted=True)
Pres, Sali, QcS = p.read('PSAL', read_adjusted=True)
if (Pres is None or PresT is None or Temp is None or Sali is None or len(Pres) < 5 or len(PresT) < 5):
PresT, Temp, QcT = p.read('TEMP', read_adjusted=False)
Pres, Sali, QcS = p.read('PSAL', read_adjusted=False)
return PresT, Temp, QcT, Pres, Sali, QcS

def argument():
parser = argparse.ArgumentParser(description = '''
Creates superfloat files of chla.
Expand Down Expand Up @@ -47,8 +55,7 @@ def dump_chla_file(outfile, p, Pres, Value, Qc, metatata, mode='w'):
ncOUT = NC.netcdf_file(outfile + ".tmp" ,mode)

if mode=='w': # if not existing file, we'll put header, TEMP, PSAL
PresT, Temp, QcT = p.read('TEMP', read_adjusted=False)
PresT, Sali, QcS = p.read('PSAL', read_adjusted=False)
PresT, Temp, QcT, Pres, Sali, QcS = read_temp_psal(p)
ncOUT.createDimension("DATETIME",14)
ncOUT.createDimension("NPROF", 1)
ncOUT.createDimension('nTEMP', len(PresT))
Expand Down
11 changes: 9 additions & 2 deletions src/bitsea/Float/Float_opt/superfloat_irr380.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
import argparse
def read_temp_psal(p):
PresT, Temp, QcT = p.read('TEMP', read_adjusted=True)
Pres, Sali, QcS = p.read('PSAL', read_adjusted=True)
if (Pres is None or PresT is None or Temp is None or Sali is None or len(Pres) < 5 or len(PresT) < 5):
PresT, Temp, QcT = p.read('TEMP', read_adjusted=False)
Pres, Sali, QcS = p.read('PSAL', read_adjusted=False)
return PresT, Temp, QcT, Pres, Sali, QcS

def argument():
parser = argparse.ArgumentParser(description = '''
Creates superfloat files of irr_380.
Expand Down Expand Up @@ -47,8 +55,7 @@ def dump_irr_380_file(outfile, p, Pres, Value, Qc, metatata, mode='w'):
ncOUT = NC.netcdf_file(outfile + ".tmp" ,mode)

if mode=='w': # if not existing file, we'll put header, TEMP, PSAL
PresT, Temp, QcT = p.read('TEMP', read_adjusted=False)
PresT, Sali, QcS = p.read('PSAL', read_adjusted=False)
PresT, Temp, QcT, Pres, Sali, QcS = read_temp_psal(p)
ncOUT.createDimension("DATETIME",14)
ncOUT.createDimension("NPROF", 1)
ncOUT.createDimension('nTEMP', len(PresT))
Expand Down
11 changes: 9 additions & 2 deletions src/bitsea/Float/Float_opt/superfloat_irr412.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
import argparse
def read_temp_psal(p):
PresT, Temp, QcT = p.read('TEMP', read_adjusted=True)
Pres, Sali, QcS = p.read('PSAL', read_adjusted=True)
if (Pres is None or PresT is None or Temp is None or Sali is None or len(Pres) < 5 or len(PresT) < 5):
PresT, Temp, QcT = p.read('TEMP', read_adjusted=False)
Pres, Sali, QcS = p.read('PSAL', read_adjusted=False)
return PresT, Temp, QcT, Pres, Sali, QcS

def argument():
parser = argparse.ArgumentParser(description = '''
Creates superfloat files of irr_412.
Expand Down Expand Up @@ -47,8 +55,7 @@ def dump_irr_412_file(outfile, p, Pres, Value, Qc, metatata, mode='w'):
ncOUT = NC.netcdf_file(outfile + ".tmp" ,mode)

if mode=='w': # if not existing file, we'll put header, TEMP, PSAL
PresT, Temp, QcT = p.read('TEMP', read_adjusted=False)
PresT, Sali, QcS = p.read('PSAL', read_adjusted=False)
PresT, Temp, QcT, Pres, Sali, QcS = read_temp_psal(p)
ncOUT.createDimension("DATETIME",14)
ncOUT.createDimension("NPROF", 1)
ncOUT.createDimension('nTEMP', len(PresT))
Expand Down
11 changes: 9 additions & 2 deletions src/bitsea/Float/Float_opt/superfloat_irr490.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
import argparse
def read_temp_psal(p):
PresT, Temp, QcT = p.read('TEMP', read_adjusted=True)
Pres, Sali, QcS = p.read('PSAL', read_adjusted=True)
if (Pres is None or PresT is None or Temp is None or Sali is None or len(Pres) < 5 or len(PresT) < 5):
PresT, Temp, QcT = p.read('TEMP', read_adjusted=False)
Pres, Sali, QcS = p.read('PSAL', read_adjusted=False)
return PresT, Temp, QcT, Pres, Sali, QcS

def argument():
parser = argparse.ArgumentParser(description = '''
Creates superfloat files of irr_490.
Expand Down Expand Up @@ -47,8 +55,7 @@ def dump_irr_490_file(outfile, p, Pres, Value, Qc, metatata, mode='w'):
ncOUT = NC.netcdf_file(outfile + ".tmp" ,mode)

if mode=='w': # if not existing file, we'll put header, TEMP, PSAL
PresT, Temp, QcT = p.read('TEMP', read_adjusted=False)
PresT, Sali, QcS = p.read('PSAL', read_adjusted=False)
PresT, Temp, QcT, Pres, Sali, QcS = read_temp_psal(p)
ncOUT.createDimension("DATETIME",14)
ncOUT.createDimension("NPROF", 1)
ncOUT.createDimension('nTEMP', len(PresT))
Expand Down
11 changes: 9 additions & 2 deletions src/bitsea/Float/Float_opt/superfloat_nitrate.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
import argparse
def read_temp_psal(p):
PresT, Temp, QcT = p.read('TEMP', read_adjusted=True)
Pres, Sali, QcS = p.read('PSAL', read_adjusted=True)
if (Pres is None or PresT is None or Temp is None or Sali is None or len(Pres) < 5 or len(PresT) < 5):
PresT, Temp, QcT = p.read('TEMP', read_adjusted=False)
Pres, Sali, QcS = p.read('PSAL', read_adjusted=False)
return PresT, Temp, QcT, Pres, Sali, QcS

def argument():
parser = argparse.ArgumentParser(description = '''
Creates superfloat files of chla.
Expand Down Expand Up @@ -51,8 +59,7 @@ def dump_nitrate_file(outfile, p_pos, p, Pres, Value, Qc, metadata,mode='w'):
os.system(command)
ncOUT = NC.netcdf_file(outfile + ".tmp",mode)
if mode=='w': # if not existing file, we'll put header, TEMP, PSAL
PresT, Temp, QcT = p.read('TEMP', read_adjusted=False)
PresT, Sali, QcS = p.read('PSAL', read_adjusted=False)
PresT, Temp, QcT, Pres, Sali, QcS = read_temp_psal(p)
ncOUT.createDimension("DATETIME",14)
ncOUT.createDimension("NPROF", 1)
ncOUT.createDimension('nTEMP', len(PresT))
Expand Down
14 changes: 10 additions & 4 deletions src/bitsea/Float/Float_opt/superfloat_oxygen.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,14 @@ def argument():
import numpy as np
import gsw

def read_temp_psal(p):
PresT, Temp, QcT = p.read('TEMP', read_adjusted=True)
Pres, Sali, QcS = p.read('PSAL', read_adjusted=True)
if (Pres is None or PresT is None or Temp is None or Sali is None or len(Pres) < 5 or len(PresT) < 5):
PresT, Temp, QcT = p.read('TEMP', read_adjusted=False)
Pres, Sali, QcS = p.read('PSAL', read_adjusted=False)
return PresT, Temp, QcT, Pres, Sali, QcS

def remove_bad_sensors(Profilelist,var):
'''

Expand Down Expand Up @@ -70,8 +78,7 @@ def convert_oxygen(p,doxypres,doxyprofile):
from micromol/Kg to mmol/m3
'''
if doxypres.size == 0: return doxyprofile
Pres, temp, Qc = p.read("TEMP",read_adjusted=False)
Pres, sali, Qc = p.read("PSAL",read_adjusted=False)
PresT, temp, QcT, Pres, sali, QcS = read_temp_psal(p)
SA = gsw.SA_from_SP(sali, Pres, p.lon, p.lat)
density = gsw.rho(SA, gsw.CT_from_t(SA, temp, Pres), Pres)
density_on_zdoxy = np.interp(doxypres,Pres,density)
Expand All @@ -85,8 +92,7 @@ def dump_oxygen_file(outfile, p, Pres, Value, Qc, metatata, mode='w'):
ncOUT = NC.netcdf_file(outfile + ".tmp" ,mode)

if mode=='w': # if not existing file, we'll put header, TEMP, PSAL
PresT, Temp, QcT = p.read('TEMP', read_adjusted=False)
PresT, Sali, QcS = p.read('PSAL', read_adjusted=False)
PresT, Temp, QcT, Pres, Sali, QcS = read_temp_psal(p)
ncOUT.createDimension("DATETIME",14)
ncOUT.createDimension("NPROF", 1)
ncOUT.createDimension('nTEMP', len(PresT))
Expand Down
11 changes: 9 additions & 2 deletions src/bitsea/Float/Float_opt/superfloat_par.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
import argparse
def read_temp_psal(p):
PresT, Temp, QcT = p.read('TEMP', read_adjusted=True)
Pres, Sali, QcS = p.read('PSAL', read_adjusted=True)
if (Pres is None or PresT is None or Temp is None or Sali is None or len(Pres) < 5 or len(PresT) < 5):
PresT, Temp, QcT = p.read('TEMP', read_adjusted=False)
Pres, Sali, QcS = p.read('PSAL', read_adjusted=False)
return PresT, Temp, QcT, Pres, Sali, QcS

def argument():
parser = argparse.ArgumentParser(description = '''
Creates superfloat files of par.
Expand Down Expand Up @@ -47,8 +55,7 @@ def dump_par_file(outfile, p, Pres, Value, Qc, metatata, mode='w'):
ncOUT = NC.netcdf_file(outfile + ".tmp" ,mode)

if mode=='w': # if not existing file, we'll put header, TEMP, PSAL
PresT, Temp, QcT = p.read('TEMP', read_adjusted=False)
PresT, Sali, QcS = p.read('PSAL', read_adjusted=False)
PresT, Temp, QcT, Pres, Sali, QcS = read_temp_psal(p)
ncOUT.createDimension("DATETIME",14)
ncOUT.createDimension("NPROF", 1)
ncOUT.createDimension('nTEMP', len(PresT))
Expand Down
11 changes: 9 additions & 2 deletions src/bitsea/Float/Float_opt/superfloat_ph.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
import argparse
def read_temp_psal(p):
PresT, Temp, QcT = p.read('TEMP', read_adjusted=True)
Pres, Sali, QcS = p.read('PSAL', read_adjusted=True)
if (Pres is None or PresT is None or Temp is None or Sali is None or len(Pres) < 5 or len(PresT) < 5):
PresT, Temp, QcT = p.read('TEMP', read_adjusted=False)
Pres, Sali, QcS = p.read('PSAL', read_adjusted=False)
return PresT, Temp, QcT, Pres, Sali, QcS

def argument():
parser = argparse.ArgumentParser(description = '''
Creates superfloat files of ph.
Expand Down Expand Up @@ -47,8 +55,7 @@ def dump_ph_file(outfile, p, Pres, Value, Qc, metatata, mode='w'):
ncOUT = NC.netcdf_file(outfile + ".tmp" ,mode)

if mode=='w': # if not existing file, we'll put header, TEMP, PSAL
PresT, Temp, QcT = p.read('TEMP', read_adjusted=False)
PresT, Sali, QcS = p.read('PSAL', read_adjusted=False)
PresT, Temp, QcT, Pres, Sali, QcS = read_temp_psal(p)
ncOUT.createDimension("DATETIME",14)
ncOUT.createDimension("NPROF", 1)
ncOUT.createDimension('nTEMP', len(PresT))
Expand Down
2 changes: 1 addition & 1 deletion src/bitsea/Float/MedBGCins.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from bitsea.commons.grid import RegularGrid
from bitsea.mhelpers.linear_shift import linear_shift

default_clim_n3n_nc = "/gss/gss_work/DRES_OGS_BiGe/Observations/CLIMATOLOGY/Nutrients/MedBGC-ins/Climatology_N3n_600_800m.nc"
default_clim_n3n_nc = "/g100_work/OGS_test2528/Observations/CLIMATOLOGY/Nutrients/MedBGC-ins/Climatology_N3n_600_800m.nc"

clim_file = Path(os.getenv("CLIM_MED_BGC_INS_FILE", default_clim_n3n_nc))
if not clim_file.exists():
Expand Down
11 changes: 9 additions & 2 deletions src/bitsea/Float/Superfloat_oxy/superfloat_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@
import os


def read_temp_adjusted(profile_obj):
PresT, Temp, QcT = profile_obj.read('TEMP', read_adjusted=True)
if PresT is None or Temp is None or len(PresT) == 0 or len(Temp) == 0:
PresT, Temp, QcT = profile_obj.read('TEMP', read_adjusted=False)
return PresT, Temp, QcT


def general_quenching(profile_obj, Pres, Profile, Qc):
'''
Manages the quenching for Coriolis profiles
Expand All @@ -14,7 +21,7 @@ def general_quenching(profile_obj, Pres, Profile, Qc):
In case of cutted profile (Z_top > 10.) the quench value is replied up to the sea surface
on a set of extrapolation points, every 5 meters.
'''
PresT, Temp, _ = profile_obj.read('TEMP', read_adjusted=False)
PresT, Temp, _ = read_temp_adjusted(profile_obj)
mld = calculated_depths.mld(Temp, PresT, zref=0, deltaTemp=0.1)
if mld < 80:
if Pres[0] <= mld+5:
Expand Down Expand Up @@ -57,7 +64,7 @@ def quenching(profile_obj, PresChl, Chl, chl_lov_zero):
'''
Quenched_Chl = Chl.copy()
if profile_obj.time.month in range(1,13):
PresT, Temp, _ = profile_obj.read('TEMP', read_adjusted=False)
PresT, Temp, _ = read_temp_adjusted(profile_obj)
mld = calculated_depths.mld(Temp, PresT, zref=0, deltaTemp=0.1)
if mld > 200:mld=20

Expand Down
11 changes: 9 additions & 2 deletions src/bitsea/Float/Superfloat_oxy/superfloat_oxy_function.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,14 @@
import numpy as np
import datetime

def read_temp_psal(p):
PresT, Temp, QcT = p.read('TEMP', read_adjusted=True)
Pres, Sali, QcS = p.read('PSAL', read_adjusted=True)
if (Pres is None or PresT is None or Temp is None or Sali is None or len(Pres) < 5 or len(PresT) < 5):
PresT, Temp, QcT = p.read('TEMP', read_adjusted=False)
Pres, Sali, QcS = p.read('PSAL', read_adjusted=False)
return PresT, Temp, QcT, Pres, Sali, QcS

def remove_bad_sensors(Profilelist,var):
'''

Expand Down Expand Up @@ -44,8 +52,7 @@ def dump_oxygen_file(outfile, p, Pres, Value, Qc, metadata, mode='a'):
if mode=='w': # if not existing file, we'll put header, TEMP, PSAL
setattr(ncOUT, 'origin' , 'coriolis')
setattr(ncOUT, 'file_origin', metadata.filename)
PresT, Temp, QcT = p.read('TEMP') #, read_adjusted=False)
PresT, Sali, QcS = p.read('PSAL') # , read_adjusted=False)
PresT, Temp, QcT, PresS, Sali, QcS = read_temp_psal(p)
ncOUT.createDimension("DATETIME",14)
ncOUT.createDimension("NPROF", 1)
ncOUT.createDimension('nTEMP', len(PresT))
Expand Down
8 changes: 4 additions & 4 deletions src/bitsea/Float/TREND_ANALYSIS.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def compute_trend(df):



def trend_conditions(WMO, days, Bool, DEPTH, min_d, max_d , TI_3, tmp):
def trend_conditions(WMO,cycle, days, Bool, DEPTH, min_d, max_d , TI_3, tmp):
""" compute the trend if time-nans and vals for the selected day
are satisfied.
CASE_* is a Boolean
Expand All @@ -60,11 +60,11 @@ def trend_conditions(WMO, days, Bool, DEPTH, min_d, max_d , TI_3, tmp):
y = np.array(tmp.VAR)
x = np.array(tmp.index)
LIST_APP_TRENDS = Trend_RANSAC_ThSEN(x , y)
lst = [WMO ,DEPTH, days , min_d , max_d, LIST_APP_TRENDS[0][1], LIST_APP_TRENDS[1][1] ,np.nan,np.nan,np.nan]
lst = [WMO,cycle ,DEPTH, days , min_d , max_d, LIST_APP_TRENDS[0][1], LIST_APP_TRENDS[1][1] ,np.nan,np.nan,np.nan]
elif CASE_2:
lst = [WMO ,DEPTH, days , np.nan , np.nan , np.nan , np.nan, np.nan,np.nan,np.nan]
lst = [WMO,cycle ,DEPTH, days, np.nan, np.nan, np.nan, np.nan, np.nan,np.nan,np.nan]
else:
lst = [WMO ,DEPTH, days , min_d , max_d, np.nan , np.nan, np.nan,np.nan,np.nan]
lst = [WMO,cycle ,DEPTH, days, min_d, max_d, np.nan, np.nan, np.nan,np.nan,np.nan]
return (lst)

def drift_coding(WMO,Bool ,df0,df1):
Expand Down
13 changes: 8 additions & 5 deletions src/bitsea/Float/oxygen_saturation.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,16 @@ def oxy_sat(p):
* O2o * a concentration of oxygen in mmol/m3
nan if there are no TEMP and PSAL values with pressure less than 5m.
'''

if p.has_adjusted:
PresT, Temp, QcT = p.read('TEMP', read_adjusted=False)#p._my_float.adjusted('TEMP'))
PresS, Sali, QcS = p.read('PSAL', read_adjusted=False)#p._my_float.adjusted('PSAL'))
try:
PresT, Temp, QcT = p.read('TEMP', read_adjusted=True)
PresS, Sali, QcS = p.read('PSAL', read_adjusted=True)
except TypeError: # dovrebbe entrare se uso superfloat wrapper
PresT, Temp, QcT = p.read('TEMP')
PresS, Sali, QcS = p.read('PSAL')
else:
PresT, Temp, QcT = p.read('TEMP')
PresS, Sali, QcS = p.read('PSAL')
PresT, Temp, QcT = p.read('TEMP', read_adjusted=False)
PresS, Sali, QcS = p.read('PSAL', read_adjusted=False)

ii = PresT<=depth_threshold
if ii.sum() == 0:
Expand Down
Loading