dtwhaclustering.analysis_support¶
DTW HAC analysis support functions (analysis_support)
- author
Utpal Kumar, Institute of Earth Sciences, Academia Sinica
- dtwhaclustering.analysis_support.dec2dt(start)¶
Convert the decimal type time array to the date-time type array
- Parameters
start (list) – list or numpy array of decimal year values e.g., [2020.001]
- Returns
date-time type array
- Return type
list
- dtwhaclustering.analysis_support.dec2dt_scalar(st)¶
Convert the decimal type time value to the date-time type
- Parameters
st – scalar decimal year value e.g., 2020.001
- Returns
time as datetime type
- Return type
str
- dtwhaclustering.analysis_support.toYearFraction(date)¶
Convert the date-time type object to decimal year
- Parameters
date – the date-time type object
- Returns
decimal year
- Return type
float