Closed veenstrajelmer closed 3 days ago
There are several hatyan dataframes in rotation:
hatyan.read_dia()
values
qualitycode
hatyan.ddlpy_to_hatyan()
QC
Status
kenmerkendewaarden.xarray_to_hatyan()
status
Status column was removed from dia-df in https://github.com/Deltares/hatyan/pull/300/files. Adding status to dia-df again is possible by adding:
# add status column block_status_list = diablocks_pd.loc[block_id,'STA'].split('!') for block_status_one in block_status_list: status_tstart = pd.to_datetime(block_status_one[4:17],format='%Y%m%d;%H%M').tz_localize("UTC+01:00") status_tstop = pd.to_datetime(block_status_one[18:31],format='%Y%m%d;%H%M').tz_localize("UTC+01:00") status_val = block_status_one[-1] data_pd_oneblock.loc[status_tstart:status_tstop,'status'] = status_val
to hatyan.read_dia(): https://github.com/Deltares/hatyan/blob/8ebaa8e792d8aacd2397ef843bbc2ac3c145f790/hatyan/timeseries.py#L1571-L1575
Todo:
hatyan.write_dia()
There are several hatyan dataframes in rotation:
hatyan.read_dia()
returns a df withvalues
andqualitycode
columns. maybe re-introduce status?hatyan.ddlpy_to_hatyan()
returns a df withvalues
,QC
andStatus
columnskenmerkendewaarden.xarray_to_hatyan()
returns a df withvalues
,qualitycode
andstatus
columnsStatus column was removed from dia-df in https://github.com/Deltares/hatyan/pull/300/files. Adding status to dia-df again is possible by adding:
to
hatyan.read_dia()
: https://github.com/Deltares/hatyan/blob/8ebaa8e792d8aacd2397ef843bbc2ac3c145f790/hatyan/timeseries.py#L1571-L1575Todo:
hatyan.ddlpy_to_hatyan()
hatyan.read_dia()
hatyan.write_dia()