{"id":333831,"date":"2022-05-30T21:00:36","date_gmt":"2022-05-30T21:00:36","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=333831"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=333831","title":{"rendered":"<span>\u0412\u0438\u0437\u0443\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u0438 \u0430\u043d\u0430\u043b\u0438\u0437 \u0437\u0438\u043c\u043d\u0438\u0445 \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440 \u0410\u043b\u043c\u0430\u0442\u044b \u0437\u0430 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 \u0441\u0442\u043e \u043b\u0435\u0442 \u043d\u0430 Streamlit<\/span>"},"content":{"rendered":"<div><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<h2>\u0412\u0432\u0435\u0434\u0435\u043d\u0438\u0435<\/h2>\n<p>\u041d\u0435\u0434\u0430\u0432\u043d\u043e \u043e\u0442\u043a\u0440\u044b\u043b \u0434\u043b\u044f \u0441\u0435\u0431\u044f \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0443 Streamlit \u0438 \u0431\u044b\u043b \u0432\u043f\u0435\u0447\u0430\u0442\u043b\u0435\u043d \u043f\u0440\u043e\u0441\u0442\u043e\u0442\u043e\u0439 \u0438\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u0438 \u0432\u00a0\u043f\u0438\u0442\u043e\u043d\u043e\u0432\u0441\u043a\u0438\u0439\u00a0\u043f\u0440\u043e\u0435\u043a\u0442.\u00a0\u041f\u043e \u0434\u0435\u0442\u0441\u043a\u0438, \u043e\u0447\u0435\u043d\u044c \u0440\u0430\u0434\u043e\u0432\u0430\u043b\u0441\u044f \u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u044b \u043d\u0430\u00a0\u0434\u0430\u0448\u0431\u043e\u0440\u0434\u0435\u00a0\u043d\u0430\u043f\u0440\u044f\u043c\u0443\u044e \u043c\u0435\u043d\u044f\u044e\u0442\u00a0\u043f\u0438\u0442\u043e\u043d\u043e\u0432\u0441\u043a\u0438\u0435\u00a0\u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435. \u0418 \u0432\u043e\u0442 \u0434\u043b\u044f \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0440\u0435\u0448\u0438\u043b \u043f\u043e\u0438\u0433\u0440\u0430\u0442\u044c \u0441 \u043e\u0434\u043d\u043e\u0439 \u0438\u0437 \u0442\u0435\u043c \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043c\u043d\u0435 \u043e\u0447\u0435\u043d\u044c \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u0430 \u2013 \u043a\u043b\u0438\u043c\u0430\u0442. \u041d\u0430\u0447\u0430\u043b \u0441 \u0441\u0430\u043c\u043e\u0433\u043e\u00a0\u043f\u0440\u043e\u0441\u0442\u043e\u0433\u043e \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u043e\u0430\u043d\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u2013 \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u0443 \u0432\u043e\u0437\u0434\u0443\u0445\u0430 \u0441 \u043c\u0435\u0442\u0435\u043e\u0441\u0442\u0430\u043d\u0446\u0438\u0438 \u0433\u043e\u0440\u043e\u0434\u0430 \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u044f \u0436\u0438\u0432\u0443 &#8212; \u0410\u043b\u043c\u0430\u0442\u044b (\u041a\u0430\u0437\u0430\u0445\u0441\u0442\u0430\u043d). \u0418\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e \u0431\u044b\u043b\u043e \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u044d\u0444\u0444\u0435\u043a\u0442 \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u043a\u043b\u0438\u043c\u0430\u0442\u0430 \u043d\u0430 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e \u0432\u0437\u044f\u0442\u044b\u0439 \u0433\u043e\u0440\u043e\u0434.<\/p>\n<p>\u0414\u043b\u044f \u0430\u043d\u0430\u043b\u0438\u0437\u0430 \u0441\u043a\u0430\u0447\u0430\u043b \u0434\u0430\u043d\u043d\u044b\u0435 \u0437\u0430 100 \u043b\u0435\u0442 (1922-2022). \u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b \u0442\u043e\u043b\u044c\u043a\u043e \u043c\u0435\u0441\u044f\u0446\u044b \u0441 \u043d\u043e\u044f\u0431\u0440\u044f \u043f\u043e \u0430\u043f\u0440\u0435\u043b\u044c \u0432\u043a\u043b\u044e\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e,\u00a0\u0432\u043e-\u043f\u0435\u0440\u0432\u044b\u0445,\u00a0\u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u0432 \u043d\u0435\u0441\u0432\u043e\u0431\u043e\u0434\u043d\u043e\u0435 \u043e\u0442 \u0440\u0430\u0431\u043e\u0442\u044b \u0432\u0440\u0435\u043c\u044f \u044f \u0440\u0430\u0431\u043e\u0442\u0430\u044e \u0441 \u043c\u043e\u0440\u0441\u043a\u0438\u043c \u043b\u044c\u0434\u043e\u043c \u0438 \u0437\u0438\u043c\u043d\u0438\u0439 \u043a\u043b\u0438\u043c\u0430\u0442 \u043c\u043d\u0435 \u043f\u043e\u043d\u044f\u0442\u043d\u0435\u0439, \u0430 \u0432\u043e-\u0432\u0442\u043e\u0440\u044b\u0445 \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u0432 \u0434\u0430\u043d\u043d\u044b\u0445 \u0431\u044b\u043b\u0430 \u043f\u0440\u043e\u043f\u0443\u0449\u0435\u043d\u0430 \u043d\u0435\u0434\u0435\u043b\u044f \u043d\u0430\u0431\u043b\u044e\u0434\u0435\u043d\u0438\u0439 \u0432 \u0430\u0432\u0433\u0443\u0441\u0442\u0435, \u0432 \u043e\u0434\u043d\u043e\u043c \u0438\u0437 \u0433\u043e\u0434\u043e\u0432.<\/p>\n<p>\u041e\u0434\u0438\u043d \u0438\u0437 \u043f\u043b\u044e\u0441\u043e\u0432 Streamlit, \u0442\u043e \u0447\u0442\u043e \u0434\u0430\u0448\u0431\u043e\u0440\u0434\u044b \u043c\u043e\u0436\u043d\u043e \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u043e \u043f\u0443\u0431\u043b\u0438\u043a\u043e\u0432\u0430\u0442\u044c \u0432 Streamlit Cloud, \u0447\u0442\u043e \u044f \u0438 \u0441\u0434\u0435\u043b\u0430\u043b:<\/p>\n<p><a href=\"https:\/\/share.streamlit.io\/yevkad\/alaclim\/main\/app.py\" rel=\"noopener noreferrer nofollow\">https:\/\/share.streamlit.io\/yevkad\/alaclim\/main\/app.py<\/a><\/p>\n<p>\u041f\u0440\u043e\u0439\u0434\u044f \u043f\u043e \u044d\u0442\u043e\u0439 \u0441\u0441\u044b\u043b\u043a\u0435, \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0438\u0433\u0440\u0430\u0442\u044c \u0441 \u0438\u043d\u0442\u0435\u0440\u0430\u043a\u0442\u0438\u0432\u043d\u044b\u043c\u0438 \u0433\u0440\u0430\u0444\u0438\u043a\u0430\u043c\u0438. \u0410 \u0432 \u044d\u0442\u043e\u043c \u043f\u043e\u0441\u0442\u0435 \u044f \u043f\u043e\u043f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0439 \u043f\u043e\u043a\u0430\u0436\u0443 \u0447\u0442\u043e \u0438 \u043a\u0430\u043a \u044f \u0434\u0435\u043b\u0430\u043b (\u0441 \u043a\u043e\u0434\u043e\u043c) \u0438 \u043e\u043f\u0438\u0448\u0443 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0441\u0432\u043e\u0438 \u043d\u0430\u0431\u043b\u044e\u0434\u0435\u043d\u0438\u044f.<\/p>\n<h3>\u0418\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u044b<\/h3>\n<p>\u0412\u0441\u0435 \u0431\u044b\u043b\u043e \u0441\u0434\u0435\u043b\u0430\u043d\u043e \u043d\u0430 Python \u0438 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c\u0438 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430\u043c\u0438:<\/p>\n<ul>\n<li>\n<p><a href=\"https:\/\/streamlit.io\/\" rel=\"noopener noreferrer nofollow\">Streamlit<\/a> &#8212; \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0430 \u0434\u043b\u044f \u0431\u044b\u0441\u0442\u0440\u043e\u0433\u043e \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f DS\/ML \u0432\u0435\u0431-\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439<\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/pandas.pydata.org\/\" rel=\"noopener noreferrer nofollow\">Pandas<\/a> &#8212; \u043c\u0430\u043d\u0438\u043f\u0443\u043b\u044f\u0446\u0438\u0438 \u0441 \u0442\u0430\u0431\u043b\u0438\u0446\u0430\u043c\u0438<\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/numpy.org\/\" rel=\"noopener noreferrer nofollow\">Numpy<\/a> &#8212; \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0432\u0441\u043f\u043e\u043c\u043e\u0433\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438<\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/plotly.com\/\" rel=\"noopener noreferrer nofollow\">Plotly<\/a> &#8212; \u0412\u0441\u0435 \u0438\u043d\u0442\u0435\u0440\u0430\u043a\u0442\u0438\u0432\u043d\u044b\u0435 \u0433\u0440\u0430\u0444\u0438\u043a\u0438 \u0431\u044b\u043b\u0438 \u043f\u043e\u0441\u0442\u0440\u043e\u0435\u043d\u044b \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u044d\u0442\u043e\u0439 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438<\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/scipy.org\/\" rel=\"noopener noreferrer nofollow\">SciPy <\/a>&#8212; \u0434\u043b\u044f \u043f\u043e\u0434\u0431\u043e\u0440\u0430 \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e\u0441\u0442\u0435\u0439<\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/github.com\/mmhs013\/pymannkendall\" rel=\"noopener noreferrer nofollow\">pyMannKendall<\/a> &#8212; \u0434\u043b\u044f <em>\u0422\u0435\u0441\u0442\u0430 \u041c\u0430\u043d\u043d\u0430-\u041a\u0435\u043d\u0434\u0430\u043b\u043b\u0430<\/em>, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043e\u0446\u0435\u043d\u0438\u0432\u0430\u0435\u0442 \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u0447\u0435\u0441\u043a\u0443\u044e \u0437\u043d\u0430\u0447\u0438\u043c\u043e\u0441\u0442\u044c \u0442\u0440\u0435\u043d\u0434\u0430<\/p>\n<\/li>\n<\/ul>\n<pre><code class=\"python\">import streamlit as st import pandas as pd import numpy as np import plotly.express as px import plotly.figure_factory as ff import plotly.graph_objects as go import scipy import pymannkendall as mk  from datetime import datetime<\/code><\/pre>\n<h3>\u0414\u0430\u043d\u043d\u044b\u0435<\/h3>\n<p>\u041e\u0441\u043d\u043e\u0432\u043d\u0430\u044f \u0447\u0430\u0441\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0445 \u0431\u044b\u043b\u0430 \u0432\u0437\u044f\u0442\u0430 \u0441 <a href=\"https:\/\/www.ncdc.noaa.gov\/cdo-web\/\" rel=\"noopener noreferrer nofollow\">NOAA Climate Data Center<\/a>, <em>\u043a \u0441\u043b\u043e\u0432\u0443 &#8212; \u043e\u0434\u0438\u043d \u0438\u0437 \u043b\u044e\u0431\u0438\u043c\u044b\u0445 \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u043e\u0432 \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445, \u043d\u0430\u0440\u0430\u0432\u043d\u0435 \u0441 \u0435\u0432\u0440\u043e\u043f\u0435\u0439\u0441\u043a\u0438\u043c <\/em><a href=\"https:\/\/www.copernicus.eu\/en\/access-data\" rel=\"noopener noreferrer nofollow\"><em>Copernicus<\/em><\/a><em>.<\/em><\/p>\n<p>\u041f\u043e\u0447\u0435\u043c\u0443-\u0442\u043e \u0431\u044b\u043b\u043e \u043c\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u043f\u0443\u0441\u043a\u043e\u0432 \u043f\u043e\u0441\u043b\u0435 2006\u0433\u043e \u0433\u043e\u0434\u0430, \u0437\u0430\u043f\u043e\u043b\u043d\u0438\u043b \u0438\u0445 \u0434\u0430\u043d\u043d\u044b\u043c\u0438 <a href=\"https:\/\/rp5.ru\/\" rel=\"noopener noreferrer nofollow\">rp5 <\/a>&#8212; \u0442\u0430\u043c \u0442\u0440\u0435\u0445\u0447\u0430\u0441\u043e\u0432\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u0441 \u043c\u0435\u0442\u0435\u043e\u0441\u0442\u0430\u043d\u0446\u0438\u0439 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b \u0434\u043b\u044f \u0431\u043e\u043b\u044c\u0448\u0438\u043d\u0441\u0442\u0432\u0430 \u043b\u043e\u043a\u0430\u0446\u0438\u0439 \u0441 2005\u0433\u043e \u0433\u043e\u0434\u0430. \u041d\u0430 rp5 \u0434\u0430\u043d\u043d\u044b\u0435 \u0432 \u043c\u0435\u0441\u0442\u043d\u043e\u043c \u0432\u0440\u0435\u043c\u0435\u043d\u0438, \u043f\u0440\u0435\u0434\u0432\u0430\u0440\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043f\u0435\u0440\u0435\u0432\u0435\u043b \u0432\u0440\u0435\u043c\u044f \u0432 UTC \u0438 \u0443\u0441\u0440\u0435\u0434\u043d\u0438\u043b \u043f\u043e\u0434\u043d\u0435\u0432\u043d\u043e.<\/p>\n<p>\u0414\u0430\u043d\u043d\u044b\u0435 \u043f\u043e\u0434\u0433\u043e\u0442\u0430\u0432\u043b\u0438\u0432\u0430\u044e\u0442\u0441\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u0435\u0439 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u043d\u043e\u0439 \u043d\u0438\u0436\u0435. \u0414\u0435\u043a\u043e\u0440\u0430\u0442\u043e\u0440 <code>st.cahce<\/code> \u0434\u043b\u044f \u0442\u043e\u0433\u043e \u0447\u0442\u043e\u0431\u044b \u0434\u0430\u043d\u043d\u044b\u0435 \u043d\u0435 \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u043b\u0438\u0441\u044c \u043a\u0430\u0436\u0434\u044b\u0439 \u0440\u0430\u0437 \u043f\u0440\u0438 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0438 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u043e\u0432.<\/p>\n<pre><code class=\"python\">@st.cache def get_winter_data(fl): #initial columns: date, at - daily mean air temperature     df_winter=pd.read_csv(fl,parse_dates=['date'])     df_winter['fd']=np.abs(np.minimum(0,df_winter['at'])) #freezing days     df_winter['month']=df_winter['date'].dt.strftime('%b')          #relative date for timeseries.     df_winter['date_rel']=pd.to_datetime(df_winter['date'].dt.strftime('2016-%m-%d'),                                          format='%Y-%m-%d')     df_winter.loc[df_winter['mon']>8,                   'date_rel']=df_winter['date_rel'] - pd.DateOffset(years=1)      df_winter.loc[df_winter['date']&lt;datetime(1972,6,1), 'period']='1922-1972'     df_winter.loc[df_winter['date']>datetime(1972,6,1), 'period']='1972-2022'     df_winter['dt']=df_winter['date'].dt.strftime('%Y%m').astype(int)          df_fdd=df_winter.groupby(['seas'])['fd'].sum().reset_index(name='fdd')          return df_winter,df_fdd<\/code><\/pre>\n<p>\u0412 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0434\u0432\u0430 \u0434\u0430\u0442\u0430\u0444\u0440\u0435\u0439\u043c\u0430 <code>df_winter<\/code> \u0438 <code>df_fdd<\/code>. \u0423 df_winter \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u043a\u043e\u043b\u043e\u043d\u043a\u0438:<\/p>\n<ul>\n<li>\n<p><strong><em>date<\/em><\/strong> &#8212; \u0434\u0430\u0442\u0430<\/p>\n<\/li>\n<li>\n<p><strong><em>at<\/em><\/strong> &#8212; \u0441\u0440\u0435\u0434\u043d\u0435\u0434\u043d\u0435\u0432\u043d\u0430\u044f \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u0430 \u0432\u043e\u0437\u0434\u0443\u0445\u0430<\/p>\n<\/li>\n<li>\n<p><strong><em>seas<\/em><\/strong> &#8212; \u0441\u0435\u0437\u043e\u043d, \u0441\u0442\u0440\u043e\u043a\u0430 \u0432 \u0432\u0438\u0434\u0435 \u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0438 \u043a\u043e\u043d\u0435\u0447\u043d\u043e\u0433\u043e \u0433\u043e\u0434\u0430 (1922-1923)<\/p>\n<\/li>\n<li>\n<p><strong><em>month<\/em><\/strong> &#8212; \u043c\u0435\u0441\u044f\u0446 \u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0435 \u0441\u0442\u0440\u043e\u0447\u043d\u043e\u043c \u0444\u043e\u0440\u043c\u0430\u0442\u0435 (Nov, Dec, etc). <em>\u041e\u0442 \u043d\u0435\u0435 \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0431\u044b \u0438\u0437\u0431\u0430\u0432\u0438\u0442\u044c\u0441\u044f \u0438 \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0443, \u043d\u043e \u0440\u0443\u043a\u0438 \u043f\u043e\u043a\u0430 \u043d\u0435 \u0434\u043e\u0448\u043b\u0438<\/em><\/p>\n<\/li>\n<li>\n<p><strong><em>mon<\/em><\/strong> &#8212;  \u043c\u0435\u0441\u044f\u0446 \u0432 \u0447\u0438\u0441\u043b\u043e\u0432\u043e\u043c \u0444\u043e\u0440\u043c\u0430\u0442\u0435 (11, 12 \u0438 \u0442\u0434.)<\/p>\n<\/li>\n<li>\n<p><strong><em>period<\/em><\/strong> &#8212; \u0444\u0438\u043a\u0441\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u043f\u0435\u0440\u0438\u043e\u0434 \u043f\u043e 50 \u043b\u0435\u0442 \u0441 1922 \u043f\u043e 1972 \u0438 1972 \u043f\u043e 2022<\/p>\n<\/li>\n<li>\n<p><strong><em>fd<\/em><\/strong> &#8212; freezing days, \u0433\u0440\u0430\u0434\u0443\u0441\u044b \u043d\u0438\u0436\u0435 \u043d\u0443\u043b\u044f \u0432 \u0430\u0431\u0441\u043e\u043b\u044e\u0442\u0435<\/p>\n<\/li>\n<li>\n<p><strong><em>dt<\/em><\/strong> &#8212; \u043f\u043e\u043b\u0443\u043a\u043e\u0441\u0442\u044b\u043b\u044c, \u0433\u043e\u0434-\u043c\u0435\u0441\u044f\u0446 \u0432 \u0432\u0438\u0434\u0435 \u0446\u0435\u043b\u043e\u0433\u043e \u0447\u0438\u0441\u043b\u0430 \u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0435 YYYYMM, \u0434\u043b\u044f \u0433\u0440\u0443\u043f\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u0445 \u0441\u0435\u0437\u043e\u043d\u043e\u0432 \u0432 \u043e\u0434\u043d\u0443 \u0433\u0440\u0443\u043f\u043f\u0443 \u0444\u0443\u043d\u043a\u0446\u0438\u0435\u0439 <code>np.digitize<\/code> (\u043f\u0440\u0438\u043c\u0435\u0440 \u0431\u0443\u0434\u0435\u0442 \u0432 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0445 \u0441\u0435\u043a\u0446\u0438\u044f\u0445) <\/p>\n<\/li>\n<li>\n<p><strong><em>rel_date<\/em><\/strong> &#8212; \u0434\u0430\u0442\u0430 \u0441 \u0437\u0430\u043c\u0435\u043d\u043e\u0439 \u0433\u043e\u0434\u0430 \u0434\u043b\u044f \u0432\u0441\u0435\u0445 \u0434\u043d\u0435\u0439 \u043d\u0430 2015 \u0434\u043e \u044f\u043d\u0432\u0430\u0440\u044f \u0438 2016 \u0441 \u044f\u043d\u0432\u0430\u0440\u044f, \u0434\u043b\u044f \u0442\u043e\u0433\u043e \u0447\u0442\u043e \u0431\u044b \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0430\u0433\u0440\u0435\u0433\u0438\u0440\u043e\u0432\u0430\u0442\u044c 100 \u043b\u0435\u0442 \u0437\u0430 \u043a\u0430\u0436\u0434\u044b\u0439 \u0434\u0435\u043d\u044c.<\/p>\n<\/li>\n<\/ul>\n<p>\u0423 <code>df_fdd<\/code> \u0432\u0441\u0435\u0433\u043e 100 \u0440\u044f\u0434\u043e\u0432, \u043f\u043e \u0440\u044f\u0434\u0443 \u0437\u0430 \u043a\u0430\u0436\u0434\u044b\u0439 \u0441\u0435\u0437\u043e\u043d \u0438 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u043a\u043e\u043b\u043e\u043d\u043a\u0438:<\/p>\n<ul>\n<li>\n<p><strong><em>seas<\/em> <\/strong>&#8212; \u0441\u0435\u0437\u043e\u043d<\/p>\n<\/li>\n<li>\n<p><strong><em>fdd<\/em><\/strong> &#8212; Freezing Degree Days &#8212; \u0430\u043a\u043a\u0443\u043c\u0443\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u0433\u0440\u0430\u0434\u0443\u0441\u044b \u043d\u0438\u0436\u0435 \u043d\u0443\u043b\u044f \u0432 \u0430\u0431\u0441\u043e\u043b\u044e\u0442\u0435. \u0411\u043e\u043b\u0435\u0435 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e\u0435 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u0431\u0443\u0434\u0435\u0442 \u043d\u0438\u0436\u0435.<\/p>\n<\/li>\n<\/ul>\n<h2>\u0412\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 \u0440\u044f\u0434<\/h2>\n<p>\u0412\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439\u00a0\u0440\u044f\u0434 \u0431\u044b\u043b \u0441\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d \u0432\u044b\u0432\u0435\u0434\u0435\u043d\u0438\u0435\u043c \u043d\u0430 \u0433\u0440\u0430\u0444\u0438\u043a\u00a0\u0430\u0433\u0440\u0435\u0433\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0445\u00a0\u0437\u0430 \u043a\u0430\u0436\u0434\u044b\u0439 \u0434\u0435\u043d\u044c \u0441 \u043d\u043e\u044f\u0431\u0440\u044f \u043f\u043e \u0430\u043f\u0440\u0435\u043b\u044c \u0441\u0442\u043e\u043b\u0435\u0442\u043d\u0438\u0445 \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440 (\u043c\u0430\u043a\u0441\u0438\u043c\u0443\u043c, \u043c\u0438\u043d\u0438\u043c\u0443\u043c, \u0441\u0440\u0435\u0434\u043d\u0435\u0435) \u0438 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c\u044e \u0441\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u0442\u044c \u044d\u0442\u0438 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0441 \u0432\u044b\u0431\u0440\u0430\u043d\u043d\u044b\u043c\u0438 \u043f\u0435\u0440\u0438\u043e\u0434\u0430\u043c\u0438.<\/p>\n<p>\u0415\u0441\u043b\u0438 \u0432\u0438\u0437\u0443\u0430\u043b\u044c\u043d\u043e \u0441\u0440\u0430\u0432\u043d\u0438\u0442\u044c \u043f\u0435\u0440\u0432\u0443\u044e \u043f\u043e\u043b\u043e\u0432\u0438\u043d\u0443 \u043f\u0435\u0440\u0438\u043e\u0434\u0430 \u0441\u043e \u0432\u0442\u043e\u0440\u043e\u0439, \u0442\u043e\u00a0\u0432\u0438\u0434\u043d\u043e, \u0447\u0442\u043e\u00a0\u0432 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u043c \u0441\u0440\u0435\u0434\u043d\u0438\u0435 \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u044b \u0441 1922 \u043f\u043e 1972 \u043d\u0438\u0436\u0435 \u0441\u0442\u043e\u043b\u0435\u0442\u043d\u0435\u0433\u043e \u0441\u0440\u0435\u0434\u043d\u0435\u0433\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f, \u0430 \u0441 1972 \u043f\u043e 2022 \u0432\u044b\u0448\u0435.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/dbc\/061\/f14\/dbc061f14940d5b6d0eca7cc1889f786.gif\" alt=\"\u0421\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u0435 \u0441\u0440\u0435\u0434\u043d\u0438\u0445 \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440 \u0437\u0430 \u043f\u0435\u0440\u0432\u044b\u0435 \u0438 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 50 \u043b\u0435\u0442 \u0441\u043e \u0441\u0442\u043e\u043b\u0435\u0442\u043d\u0438\u043c\u0438 \u0441\u0440\u0435\u0434\u043d\u0438\u043c\u0438.\" title=\"\u0421\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u0435 \u0441\u0440\u0435\u0434\u043d\u0438\u0445 \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440 \u0437\u0430 \u043f\u0435\u0440\u0432\u044b\u0435 \u0438 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 50 \u043b\u0435\u0442 \u0441\u043e \u0441\u0442\u043e\u043b\u0435\u0442\u043d\u0438\u043c\u0438 \u0441\u0440\u0435\u0434\u043d\u0438\u043c\u0438.\" width=\"1200\" height=\"928\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/dbc\/061\/f14\/dbc061f14940d5b6d0eca7cc1889f786.gif\"\/><figcaption>\u0421\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u0435 \u0441\u0440\u0435\u0434\u043d\u0438\u0445 \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440 \u0437\u0430 \u043f\u0435\u0440\u0432\u044b\u0435 \u0438 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 50 \u043b\u0435\u0442 \u0441\u043e \u0441\u0442\u043e\u043b\u0435\u0442\u043d\u0438\u043c\u0438 \u0441\u0440\u0435\u0434\u043d\u0438\u043c\u0438.<\/figcaption><\/figure>\n<h2>\u0420\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f<\/h2>\n<p>\u0414\u0430\u043b\u0435\u0435 \u0431\u044b\u043b\u0438 \u043f\u043e\u0441\u0442\u0440\u043e\u0435\u043d\u044b \u0433\u0438\u0441\u0442\u043e\u0433\u0440\u0430\u043c\u043c\u044b \u0441 \u043f\u043e\u0434\u0431\u043e\u0440\u043e\u043c \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e\u0441\u0442\u0435\u0439 \u0434\u043b\u044f \u0434\u0432\u0443\u0445 \u043f\u0435\u0440\u0438\u043e\u0434\u043e\u0432 \u043f\u043e 50 \u043b\u0435\u0442: 1922-1972 \u0438 1972-2022. \u0412 \u043f\u0430\u0434\u0430\u044e\u0449\u0435\u043c \u043c\u0435\u043d\u044e \u043c\u043e\u0436\u043d\u043e \u0432\u044b\u0431\u0440\u0430\u0442\u044c \u0442\u0438\u043f \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f &#8212; \u041d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e\u0435 \u0438\u043b\u0438 \u0413\u0430\u043c\u043c\u0430. \u0412 \u0434\u0430\u043d\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0432\u0438\u0437\u0443\u0430\u043b\u044c\u043d\u043e \u043f\u043e\u043d\u044f\u0442\u043d\u043e, \u0447\u0442\u043e \u041d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e\u0435 \u0431\u043e\u043b\u044c\u0448\u0435 \u043f\u043e\u0434\u0445\u043e\u0434\u0438\u0442, \u043d\u043e \u0432 \u0431\u0443\u0434\u0443\u0449\u0435\u043c \u0434\u043e\u0431\u0430\u0432\u043b\u044e \u043c\u0435\u0442\u0440\u0438\u043a\u0443 &#171;goodness of fit&#187;.<\/p>\n<p>\u041b\u0435\u0432\u0430\u044f \u0447\u0430\u0441\u0442\u044c \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f 1972-2022 &#171;\u0441\u0443\u0436\u0430\u0435\u0442\u0441\u044f&#187; \u0432 \u043f\u0440\u0430\u0432\u043e, \u043f\u043e \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044e \u0441 \u043f\u0435\u0440\u0438\u043e\u0434\u043e\u043c 1922-1972. \u042d\u0442\u043e \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442, \u0447\u0442\u043e \u0437\u0430 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 50 \u043b\u0435\u0442 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043d\u0430\u0431\u043b\u044e\u0434\u0435\u043d\u0438\u0439 \u044d\u043a\u0441\u0442\u0440\u0435\u043c\u0430\u043b\u044c\u043d\u043e \u0445\u043e\u043b\u043e\u0434\u043d\u044b\u0445 \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440 \u0443\u043c\u0435\u043d\u044c\u0448\u0438\u043b\u043e\u0441\u044c. \u042d\u0442\u043e \u043d\u0435 \u043f\u0440\u043e\u0442\u0438\u0432\u043e\u0440\u0435\u0447\u0438\u0442 \u0432\u044b\u0432\u0435\u0434\u0435\u043d\u043d\u044b\u043c\u0438 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u043c\u0438 \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f &#8212; \u0441\u0440\u0435\u0434\u043d\u0435\u0435 (Mean) \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u043b\u043e\u0441\u044c \u043d\u0430 0.6 \u0433\u0440\u0430\u0434\u0443\u0441\u0430, \u0430 \u0441\u0440\u0435\u0434\u043d\u0435\u043a\u0432\u0430\u0434\u0440\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u043e\u0442\u043a\u043b\u043e\u043d\u0435\u043d\u0438\u0435 (SD) \u0443\u043c\u0435\u043d\u044c\u0448\u0438\u043b\u043e\u0441\u044c \u043f\u043e \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044e \u0441 \u043d\u0430\u0447\u0430\u043b\u044c\u043d\u044b\u043c \u043f\u0435\u0440\u0438\u043e\u0434\u043e\u043c.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/3ba\/750\/0c9\/3ba7500c9f352a8298125ebae1e01812.jpg\" alt=\"\u0420\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440 \u0437\u0430 \u0434\u0432\u0430 \u043f\u0435\u0440\u0438\u043e\u0434\u0430: 1922-1972 \u0438 1972-2022\" title=\"\u0420\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440 \u0437\u0430 \u0434\u0432\u0430 \u043f\u0435\u0440\u0438\u043e\u0434\u0430: 1922-1972 \u0438 1972-2022\" width=\"1251\" height=\"1139\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/3ba\/750\/0c9\/3ba7500c9f352a8298125ebae1e01812.jpg\" data-blurred=\"true\"\/><figcaption>\u0420\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440 \u0437\u0430 \u0434\u0432\u0430 \u043f\u0435\u0440\u0438\u043e\u0434\u0430: 1922-1972 \u0438 1972-2022<\/figcaption><\/figure>\n<h2>\u0423\u0441\u0430\u0442\u044b\u0435 \u042f\u0449\u0438\u043a\u0438<\/h2>\n<p>\u041f\u043e\u043c\u0438\u043c\u043e \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044f \u0434\u0432\u0443\u0445 \u0444\u0438\u043a\u0441\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0445 \u043f\u0435\u0440\u0438\u043e\u0434\u043e\u0432 \u0432 \u0432\u0438\u0434\u0435 \u0433\u0438\u0441\u0442\u043e\u0433\u0440\u0430\u043c\u043c \u0438 \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0439 \u043e\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u0445 \u0432 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0435\u0439 \u0441\u0435\u043a\u0446\u0438\u0438, \u0442\u0430\u043a\u0436\u0435 \u0431\u044b\u043b\u0430 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0430 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044f \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u0432\u044b\u0431\u0440\u0430\u043d\u043d\u044b\u0445 \u0433\u0440\u0443\u043f\u043f \u043f\u0435\u0440\u0438\u043e\u0434\u043e\u0432 (1 \u0433\u043e\u0434, 5 \u043b\u0435\u0442, 10 \u043b\u0435\u0442 \u0438 \u0442\u0434). \u041d\u0430\u0438\u0431\u043e\u043b\u0435\u0435 \u043f\u043e\u0434\u0445\u043e\u0434\u044f\u0449\u0435\u0439 \u0432\u0438\u0437\u0443\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0435\u0439 \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e, \u043f\u043e \u043c\u043e\u0435\u043c\u0443 \u043c\u043d\u0435\u043d\u0438\u044e, \u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u0433\u0440\u0430\u0444\u0438\u043a\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u044f \u043d\u0430\u0437\u044b\u0432\u0430\u043b \u0432\u0441\u0435\u0433\u0434\u0430 \u0431\u043e\u043a\u0441\u043f\u043b\u043e\u0442\u0430\u043c\u0438, \u0438 \u0442\u043e\u043b\u044c\u043a\u043e \u0441\u0435\u0433\u043e\u0434\u043d\u044f \u0432\u044b\u044f\u0441\u043d\u0438\u043b \u0447\u0442\u043e \u0440\u0443\u0441\u0441\u043a\u043e\u0435 \u043d\u0430\u0437\u044b\u0432\u0430\u043d\u0438\u0435 \u0434\u043b\u044f \u043d\u0438\u0445 &#8212; &#171;\u044f\u0449\u0438\u043a \u0441 \u0443\u0441\u0430\u043c\u0438&#187;.<\/p>\n<p>\u0414\u043b\u044f \u0442\u0435\u0445 \u043a\u0442\u043e \u043d\u0435 \u0441\u0442\u0430\u043b\u043a\u0438\u0432\u0430\u043b\u0441\u044f \u0441 \u0442\u0430\u043a\u0438\u043c\u0438 \u0433\u0440\u0430\u0444\u0438\u043a\u0430\u043c\u0438, \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e\u0435 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 &#171;\u044f\u0449\u0438\u043a\u0430 \u0441 \u0443\u0441\u0430\u043c\u0438&#187; \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0447\u0438\u0442\u0430\u0442\u044c, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, <a href=\"https:\/\/ru.wikipedia.org\/wiki\/%D0%AF%D1%89%D0%B8%D0%BA_%D1%81_%D1%83%D1%81%D0%B0%D0%BC%D0%B8\" rel=\"noopener noreferrer nofollow\">\u0437\u0434\u0435\u0441\u044c, <\/a>\u043d\u043e \u0433\u0440\u0443\u0431\u043e \u0438 \u043f\u0440\u0438\u0431\u043b\u0438\u0436\u0435\u043d\u043d\u043e, \u0432\u043e\u0442 \u043a\u0430\u043a \u043c\u043e\u0436\u043d\u043e \u0435\u0433\u043e \u0438\u043d\u0442\u0435\u0440\u043f\u0440\u0435\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c:<\/p>\n<ul>\n<li>\n<p>&#171;\u042f\u0449\u0438\u043a&#187; \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 50% \u043d\u0430\u0431\u043b\u044e\u0434\u0435\u043d\u0438\u0439<\/p>\n<\/li>\n<li>\n<p>\u041b\u0438\u043d\u0438\u044f \u0432\u043d\u0443\u0442\u0440\u0438 \u044f\u0449\u0438\u043a\u0430 &#8212; \u043c\u0435\u0434\u0438\u0430\u043d\u0430, \u0438\u043b\u0438 2-\u0439 \u043a\u0432\u0430\u0440\u0442\u0438\u043b\u044c &#8212; \u0432\u044b\u0448\u0435 \u0438 \u043d\u0438\u0436\u0435 \u043f\u043e 50% \u043d\u0430\u0431\u043b\u044e\u0434\u0435\u043d\u0438\u0439<\/p>\n<\/li>\n<li>\n<p>\u041d\u0438\u0436\u043d\u0438\u0439 \u0438 \u0432\u0435\u0440\u0445\u043d\u0438\u0439 &#171;\u0443\u0441&#187; &#8212; 25% \u043d\u0438\u0436\u043d\u0438\u0445 \u0438 \u0432\u0435\u0440\u0445\u043d\u0438\u0445 \u043d\u0430\u0431\u043b\u044e\u0434\u0435\u043d\u0438\u0439 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e<\/p>\n<\/li>\n<li>\n<p>\u0422\u043e\u0447\u043a\u0438 &#8212; \u0432\u044b\u0431\u0440\u043e\u0441\u044b (\u043d\u0430\u0431\u043b\u044e\u0434\u0435\u043d\u0438\u044f \u0432\u043d\u0435 2.7 \u0441\u0440\u0435\u0434\u043d\u0435\u043a\u0432\u0430\u0434\u0440\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u043e\u0442\u043a\u043b\u043e\u043d\u0435\u043d\u0438\u0439)<\/p>\n<\/li>\n<li>\n<p>\u041d\u0438\u0436\u043d\u044f\u044f \u0433\u0440\u0430\u043d\u0438\u0446\u0430 &#171;\u044f\u0449\u0438\u043a\u0430&#187; &#8212; 1-\u0439 \u043a\u0432\u0430\u0440\u0442\u0438\u043b\u044c &#8212; \u043d\u0438\u0436\u0435 \u043d\u0435\u0433\u043e 25% \u043d\u0430\u0431\u043b\u044e\u0434\u0435\u043d\u0438\u0439, \u0432\u044b\u0448\u0435 75%<\/p>\n<\/li>\n<li>\n<p>\u0412\u0435\u0440\u0445\u043d\u044f\u044f \u0433\u0440\u0430\u043d\u0438\u0446\u0430 &#171;\u044f\u0449\u0438\u043a\u0430&#187; &#8212; 3-\u0439 \u043a\u0432\u0430\u0440\u0442\u0438\u043b\u044c &#8212; \u0432\u044b\u0448\u0435 \u043d\u0435\u0433\u043e 25% \u043d\u0430\u0431\u043b\u044e\u0434\u0435\u043d\u0438\u0439, \u043d\u0438\u0436\u0435 75%<\/p>\n<\/li>\n<\/ul>\n<p>\u0421\u0433\u0440\u0443\u043f\u043f\u0438\u0440\u043e\u0432\u0430\u0432 \u043f\u043e \u0434\u043b\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u043c \u043f\u0435\u0440\u0438\u043e\u0434\u0430\u043c, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 20 \u043b\u0435\u0442, \u043a\u0430\u043a \u043d\u0430 \u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u043d\u0438\u0436\u0435, \u0432\u0438\u0434\u043d\u043e \u0447\u0442\u043e, \u043c\u0435\u0434\u0438\u0430\u043d\u0430 \u0438 1-\u0439 \u043a\u0432\u0430\u0440\u0442\u0438\u043b\u044c \u0441\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u043e \u0432\u043e\u0437\u0440\u0430\u0441\u0442\u0430\u0435\u0442 \u0441 \u043f\u0435\u0440\u0438\u043e\u0434\u0430 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0432\u043a\u043b\u044e\u0447\u0430\u0435\u0442 \u0432 \u0441\u0435\u0431\u044f 1970\u0435, \u0430 3-\u0439 \u043a\u0432\u0430\u0440\u0442\u0438\u043b\u044c \u0432 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u043c \u043f\u0435\u0440\u0438\u043e\u0434\u0435. \u0422\u0430\u043a\u0436\u0435 \u043a\u0430\u043a \u043d\u0430 \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f\u0445 \u043e\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u0445 \u0432\u044b\u0448\u0435, \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u0437\u0438\u043c \u043f\u043e \u0431\u043e\u043b\u044c\u0448\u0435\u0439 \u0447\u0430\u0441\u0442\u0438 \u0432\u044b\u0440\u0430\u0436\u0430\u0435\u0442\u0441\u044f \u0432 \u0443\u043c\u0435\u043d\u044c\u0448\u0435\u043d\u0438\u0438 &#171;\u0445\u043e\u043b\u043e\u0434\u043e\u0432&#187;, \u0430 \u0432 \u0431\u043e\u043b\u0435\u0435 \u043f\u043e\u0437\u0434\u043d\u0438\u0435 \u043f\u0435\u0440\u0438\u043e\u0434\u044b \u0435\u0449\u0435 \u0438 \u0432 \u0443\u0432\u0435\u043b\u0438\u0447\u0435\u043d\u0438\u0438 &#171;\u0442\u0435\u043f\u043b\u0430&#187;.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/19a\/ea0\/a3f\/19aea0a3f85311c4edbc0fa9442f1d85.gif\" alt=\"\u0411\u043e\u043a\u0441 \u043f\u043b\u043e\u0442 \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440 \u0432\u043e\u0437\u0434\u0443\u0445\u0430, \u0441\u0433\u0440\u0443\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u043f\u043e 20 \u043b\u0435\u0442.\" title=\"\u0411\u043e\u043a\u0441 \u043f\u043b\u043e\u0442 \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440 \u0432\u043e\u0437\u0434\u0443\u0445\u0430, \u0441\u0433\u0440\u0443\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u043f\u043e 20 \u043b\u0435\u0442.\" width=\"1187\" height=\"1000\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/19a\/ea0\/a3f\/19aea0a3f85311c4edbc0fa9442f1d85.gif\"\/><figcaption>\u0411\u043e\u043a\u0441 \u043f\u043b\u043e\u0442 \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440 \u0432\u043e\u0437\u0434\u0443\u0445\u0430, \u0441\u0433\u0440\u0443\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u043f\u043e 20 \u043b\u0435\u0442.<\/figcaption><\/figure>\n<p>\u0412\u043e\u0442 \u0447\u0430\u0441\u0442\u044c \u043a\u043e\u0434\u0430, \u0433\u0434\u0435 \u0433\u0440\u0443\u043f\u043f\u0438\u0440\u0443\u044e\u0442\u0441\u044f \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u044b \u043f\u043e \u0433\u043e\u0434\u0430\u043c \u0438 \u0432\u044b\u0432\u043e\u0434\u044f\u0442\u0441\u044f \u0432 \u0433\u0440\u0430\u0444\u0438\u043a:<\/p>\n<pre><code class=\"python\"># Years grouping: nmax=df_fdd.shape[0] yr_start=df_winter['year'].min()  # list of only divisible groups group_lst=[i for i in range(1,nmax+1,1) if nmax % i==0]  step=st.selectbox('Group years ', group_lst, index=group_lst.index(10)) date_range=np.array([datetime(yr_start+i,6,1).strftime('%Y%m') for i in range(step,nmax+1,step) ]).astype(int) date_bin_n=np.array([f'{yr_start+i}-{yr_start+step+i}' for i in range(0,nmax,step)]) df_winter_g=df_winter.copy() #assigning bin name to date range df_winter_g['date_bin']=date_bin_n[np.digitize(df_winter_g['dt'], date_range)] #month filtering mon_lst=df_winter['month'].unique() st_mon_lst = st.multiselect(\"Months Used\", mon_lst, default=mon_lst) df_mon=df_winter_g[df_winter_g['month'].isin(st_mon_lst)]  fig_box = px.box(df_mon, x=\"date_bin\", y=\"at\", labels={'seas':'Winter Season', 'at':'Air Temperature (\\u00B0C)', 'date_bin':'Date Range'},) st.write(fig_box)<\/code><\/pre>\n<h3>\u0421\u0443\u0440\u043e\u0432\u043e\u0441\u0442\u044c \u0437\u0438\u043c \u043f\u043e FDD<\/h3>\n<p>\u0421\u0443\u043c\u043c\u0430\u00a0\u0433\u0440\u0430\u0434\u0443\u0441\u043e\u0434\u043d\u0435\u0439\u00a0\u043c\u043e\u0440\u043e\u0437\u0430 (Freezing Degree Days &#8212; FDD)\u00a0\u0440\u0430\u0441\u0441\u0447\u0438\u0442\u044b\u0432\u0430\u0435\u0442\u0441\u044f\u00a0\u043a\u0430\u043a \u0430\u0431\u0441\u043e\u043b\u044e\u0442\u043d\u0430\u044f \u0441\u0443\u043c\u043c\u0430 \u0432\u0441\u0435\u0445 \u043e\u0442\u0440\u0438\u0446\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440 \u0432\u043e\u0437\u0434\u0443\u0445\u0430 \u0437\u0430 \u043f\u0435\u0440\u0438\u043e\u0434 \u2013 \u043e\u0431\u044b\u0447\u043d\u043e \u0437\u0430 \u0437\u0438\u043c\u043d\u0438\u0439 \u0441\u0435\u0437\u043e\u043d.\u00a0\u041d\u0430 \u0432\u0441\u044f\u043a\u0438\u0439 \u0441\u043b\u0443\u0447\u0430\u0439\u00a0\u0444\u043e\u0440\u043c\u0443\u043b\u0430 FDD:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"formula\" source=\"FDD=\\sum_i^N|min(0,at_i)|\" alt=\"FDD=\\sum_i^N|min(0,at_i)|\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/bf7\/7d0\/32d\/bf77d032dbd9f78b10fb9b68d8b49eb9.svg\" width=\"206\" height=\"60\"\/><\/p>\n<p>\u0413\u0434\u0435 <em>at<\/em> &#8212; \u0441\u0440\u0435\u0434\u043d\u0435\u0434\u043d\u0435\u0432\u043d\u0430\u044f \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u0430 \u0432\u043e\u0437\u0434\u0443\u0445\u0430, <em>N<\/em> &#8212; \u0447\u0438\u0441\u043b\u043e \u0434\u043d\u0435\u0439 \u0432 \u0441\u0435\u0437\u043e\u043d\u0435.<\/p>\n<p>FDD \u0447\u0430\u0441\u0442\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0434\u043b\u044f \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e\u0433\u043e \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u043f\u0440\u0438\u0440\u043e\u0441\u0442\u0430 \u0442\u043e\u043b\u0449\u0438\u043d\u044b \u043b\u044c\u0434\u0430, \u0443\u0440\u043e\u0432\u043d\u044f \u043f\u0440\u043e\u043c\u0435\u0440\u0437\u0430\u043d\u0438\u044f \u043f\u043e\u0447\u0432\u044b, \u0438 \u043c\u043e\u0436\u0435\u0442 \u0441\u043b\u0443\u0436\u0438\u0442\u044c \u0438\u043d\u0434\u0435\u043a\u0441\u043e\u043c \u0441\u0443\u0440\u043e\u0432\u043e\u0441\u0442\u0438 \u0437\u0438\u043c: \u0447\u0435\u043c \u043c\u0435\u043d\u044c\u0448\u0435 FDD \u0442\u0435\u043c \u043c\u044f\u0433\u0447\u0435 \u0437\u0438\u043c\u0430.<\/p>\n<p>\u041e\u0442\u043e\u0431\u0440\u0430\u0437\u0438\u0432 \u043d\u0430 \u0433\u0440\u0430\u0444\u0438\u043a\u0435 FDD \u0437\u0430 \u043a\u0430\u0436\u0434\u044b\u0439 \u0441\u0435\u0437\u043e\u043d \u0438 \u043f\u043e\u043b\u043e\u0436\u0438\u0432 \u043b\u0438\u043d\u0438\u044e \u0442\u0440\u0435\u043d\u0434\u0430, \u0442\u043e \u043c\u043e\u0436\u043d\u043e \u0443\u0432\u0438\u0434\u0435\u0442\u044c \u0442\u0435\u043d\u0434\u0435\u043d\u0446\u0438\u044e \u0441\u043d\u0438\u0436\u0435\u043d\u0438\u044f \u0441\u0443\u0440\u043e\u0432\u043e\u0441\u0442\u0438 \u0437\u0438\u043c, \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u0441 1970\u0445 \u0433\u043e\u0434\u043e\u0432.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/bda\/540\/cb0\/bda540cb0c994ee58694ee187c93e523.jpg\" alt=\"\" title=\"\" width=\"1291\" height=\"992\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/bda\/540\/cb0\/bda540cb0c994ee58694ee187c93e523.jpg\" data-blurred=\"true\"\/><figcaption><\/figcaption><\/figure>\n<p>\u0422\u0440\u0435\u043d\u0434 \u0431\u044b\u043b \u043f\u043e\u0441\u0447\u0438\u0442\u0430\u043d \u0432 NumPy \u043a\u0430\u043a\u00a0\u043f\u043e\u043b\u0438\u043d\u043e\u043c\u0438\u0430\u043b\u044c\u043d\u0430\u044f\u00a0\u043a\u0440\u0438\u0432\u0430\u044f (\u0441 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c\u044e \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u043f\u043e\u0440\u044f\u0434\u043a\u043e\u043c).\u00a0<\/p>\n<pre><code class=\"python\">poly_deg=st.slider('Degree of a Polynomial Trend',                     min_value=1, max_value=20, value=1, step=1)  trend_x = np.arange(df_fdd.shape[0]) trend_fit = np.polyfit(trend_x, df_fdd['fdd'], poly_deg) trend_fit_fn = np.poly1d(trend_fit)<\/code><\/pre>\n<p>\u041f\u043e\u043c\u0438\u043c\u043e \u0432\u0438\u0437\u0443\u0430\u043b\u044c\u043d\u043e\u0439 \u043e\u0446\u0435\u043d\u043a\u0438, \u0442\u0440\u0435\u043d\u0434 \u0438 \u0435\u0433\u043e \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u0447\u0435\u0441\u043a\u0430\u044f \u0437\u043d\u0430\u0447\u0438\u043c\u043e\u0441\u0442\u044c \u0431\u044b\u043b\u0430 \u043e\u0446\u0435\u043d\u0435\u043d\u0430 \u0442\u0435\u0441\u0442\u043e\u043c \u041c\u0430\u043d\u043d\u0430-\u041a\u0435\u043d\u0430\u0434\u0430\u043b\u043b\u0430 \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 <a href=\"https:\/\/github.com\/mmhs013\/pymannkendall\" rel=\"noopener noreferrer nofollow\">pyMannKendall<\/a> \u0432\u043e\u0442 \u0442\u0430\u043a:<\/p>\n<pre><code class=\"python\">mk_res=mk.original_test(df_fdd['fdd']) # results of Mann-Kendall Test<\/code><\/pre>\n<p>\u0418 \u0432\u044b\u0432\u0435\u0441\u0442\u0438 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442..<\/p>\n<pre><code class=\"python\">trend_mk=mk_res.trend # Trend: Increasing, Decreasing or No Trend pval_mk=mk_res.p      # P-Value of MK Test  if pval_mk&lt;0.05: # alpha=0.05     p_str='**statistically significant**'     alpha_compr='smaller' else:     p_str='**not statistically significant**'     alpha_compr='greater'  #Markdown string generated to present MK Test results of FDD Trend mk_str=f'''Mann-Kendall Test shows that FDD trend is **{trend_mk}**. \\n\\n**P-value** is **{pval_mk:.3e}**, which is **{alpha_compr}** than **0.05**, meaning that the trend in the data is {p_str}'''<\/code><\/pre>\n<p>\u0418 \u0432 \u0442\u0430\u043a\u043e\u043c \u0432\u0438\u0434\u0435 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b \u0442\u0435\u0441\u0442\u0430 \u0432\u044b\u0432\u043e\u0434\u044f\u0442\u0441\u044f \u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443:<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/f10\/a28\/c01\/f10a28c013d2c50765f71c1b06f29ba8.jpg\" alt=\"\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b \u0442\u0435\u0441\u0442\u0430 \u041c\u0430\u043d\u043d\u0430-\u041a\u0435\u043d\u0434\u0430\u043b\u043b\u0430\" title=\"\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b \u0442\u0435\u0441\u0442\u0430 \u041c\u0430\u043d\u043d\u0430-\u041a\u0435\u043d\u0434\u0430\u043b\u043b\u0430\" width=\"1158\" height=\"178\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/f10\/a28\/c01\/f10a28c013d2c50765f71c1b06f29ba8.jpg\" data-blurred=\"true\"\/><figcaption>\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b \u0442\u0435\u0441\u0442\u0430 \u041c\u0430\u043d\u043d\u0430-\u041a\u0435\u043d\u0434\u0430\u043b\u043b\u0430<\/figcaption><\/figure>\n<p>\u041d\u0443 \u0438 \u043d\u0430\u043f\u043e\u0441\u043b\u0435\u0434\u043e\u043a \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u043e\u0435 \u0447\u0438\u0441\u043b\u043e \u043d\u0430\u0438\u0431\u043e\u043b\u0435\u0435 \u043c\u044f\u0433\u043a\u0438\u0445 \u0438 \u043d\u0430\u0438\u0431\u043e\u043b\u0435\u0435 \u0441\u0443\u0440\u043e\u0432\u044b\u0445 \u0437\u0438\u043c \u0440\u0430\u043d\u0436\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0445 \u043f\u043e FDD. \u0412 \u043f\u044f\u0442\u0435\u0440\u043a\u0443 \u043d\u0430\u0438\u0431\u043e\u043b\u0435\u0435 \u043c\u044f\u0433\u043a\u0438\u0445 \u043f\u043e\u043f\u0430\u043b\u0438 \u0441\u0435\u0437\u043e\u043d\u044b \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0445 30 \u043b\u0435\u0442. \u0412 \u043f\u044f\u0442\u0435\u0440\u043a\u0443 \u043d\u0430\u0438\u0431\u043e\u043b\u0435\u0435 \u0441\u0443\u0440\u043e\u0432\u044b\u0445 \u043f\u043e\u043f\u0430\u043b\u0438 \u0437\u0438\u043c\u044b \u043d\u0435 \u043f\u043e\u0437\u0436\u0435 1970\u0445.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/fce\/663\/f7d\/fce663f7da5366e91090063ac855feba.jpg\" width=\"1317\" height=\"656\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/fce\/663\/f7d\/fce663f7da5366e91090063ac855feba.jpg\" data-blurred=\"true\"\/><figcaption><\/figcaption><\/figure>\n<h2>\u0417\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435<\/h2>\n<p>\u0410\u043d\u0430\u043b\u0438\u0437 \u0441\u0442\u043e\u043b\u0435\u0442\u043d\u0438\u0445 \u043d\u0430\u0431\u043b\u044e\u0434\u0435\u043d\u0438\u0439 \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u044b \u0432\u043e\u0437\u0434\u0443\u0445\u0430, \u043f\u043e\u043a\u0430\u0437\u0430\u043b \u0447\u0442\u043e \u0437\u0438\u043c\u044b \u0432 \u0410\u043b\u043c\u0430\u0442\u044b \u0441\u0442\u0430\u043d\u043e\u0432\u044f\u0442\u0441\u044f \u043c\u044f\u0433\u0447\u0435.<\/p>\n<p>\u0412\u0435\u0441\u044c \u0434\u0430\u0448\u0431\u043e\u0440\u0434 \u0443\u043b\u043e\u0436\u0438\u043b\u0441\u044f \u0432 \u043c\u0435\u043d\u0435\u0435 \u0447\u0435\u043c 300 \u0441\u0442\u0440\u043e\u043a \u043f\u0438\u0442\u043e\u043d\u043e\u0432\u0441\u043a\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0430, \u0437\u043d\u0430\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u0443\u044e \u0447\u0430\u0441\u0442\u044c \u0438\u0437 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0437\u0430\u043d\u0438\u043c\u0430\u0435\u0442 \u043f\u043e\u044f\u0441\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u0442\u0435\u043a\u0441\u0442. \u041d\u0430 \u0441\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u0447\u0430\u0441\u0442\u0438 \u0432\u0435\u0431-\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0443\u0448\u043b\u043e \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0447\u0430\u0441\u043e\u0432, \u043d\u0443 \u0438 \u043f\u043e\u0442\u043e\u043c \u043f\u0435\u0440\u0438\u043e\u0434\u0438\u0447\u0435\u0441\u043a\u0438 \u0447\u0442\u043e-\u0442\u043e \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u043b. \u0414\u043b\u044f \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044f, \u0434\u043e \u0437\u043d\u0430\u043a\u043e\u043c\u0441\u0442\u0432\u0430 \u0441\u043e Streamlit \u044f \u0434\u0435\u043b\u0430\u043b \u0432\u0438\u0437\u0443\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044e \u0441 Bokeh+Flask, \u0438 \u043d\u0430 \u0441\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043e\u0434\u043d\u043e\u0433\u043e \u0433\u0440\u0430\u0444\u0438\u043a\u0430, \u043a\u043e\u0433\u0434\u0430 \u044f \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430\u0447\u0430\u043b \u0438\u0437\u0443\u0447\u0430\u0442\u044c Bokeh, \u0443\u0448\u043b\u043e \u043f\u043e\u043b\u0434\u043d\u044f.<\/p>\n<p>\u0412 \u0431\u0443\u0434\u0443\u0449\u0435\u043c \u0431\u0443\u0434\u0443 \u0440\u0430\u0441\u0448\u0438\u0440\u044f\u0442\u044c\u00a0\u0434\u0430\u0448\u0431\u043e\u0440\u0434\u00a0\u043d\u043e\u0432\u044b\u043c\u0438 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u043c\u0438 \u0438 \u043b\u043e\u043a\u0430\u0446\u0438\u044f\u043c\u0438. \u0414\u043e\u0431\u0430\u0432\u043b\u044e \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u0435 \u0441\u0440\u0435\u0434\u043d\u0438\u0445 \u043c\u0430\u043a\u0441\u0438\u043c\u0443\u043c\u043e\u0432 \u0438 \u043c\u0438\u043d\u0438\u043c\u0443\u043c\u043e\u0432 \u0437\u0430 \u043f\u0435\u0440\u0438\u043e\u0434. \u0415\u0449\u0435 \u043f\u043b\u0430\u043d\u0438\u0440\u0443\u044e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0434\u0440\u0443\u0433\u0438\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b, \u0442\u0430\u043a\u0438\u0435 \u043a\u0430\u043a \u0432\u0435\u0442\u0435\u0440 \u0438 \u043e\u0441\u0430\u0434\u043a\u0438. \u041d\u0443 \u0438 \u0435\u0441\u043b\u0438 \u0440\u0443\u043a\u0438 \u0434\u043e\u0439\u0434\u0443\u0442, \u043c\u043e\u0436\u0435\u0442 \u0438 \u043c\u043e\u0434\u0435\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435\u00a0\u043a\u0430\u043a\u043e\u0435-\u043d\u0438\u0431\u0443\u0434\u044c.  <\/p>\n<\/p>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"v-portal\" style=\"display:none;\"><\/div>\n<\/div>\n<p> <!----> <!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/post\/668672\/\"> https:\/\/habr.com\/ru\/post\/668672\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<h2>\u0412\u0432\u0435\u0434\u0435\u043d\u0438\u0435<\/h2>\n<p>\u041d\u0435\u0434\u0430\u0432\u043d\u043e \u043e\u0442\u043a\u0440\u044b\u043b \u0434\u043b\u044f \u0441\u0435\u0431\u044f \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0443 Streamlit \u0438 \u0431\u044b\u043b \u0432\u043f\u0435\u0447\u0430\u0442\u043b\u0435\u043d \u043f\u0440\u043e\u0441\u0442\u043e\u0442\u043e\u0439 \u0438\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u0438 \u0432\u00a0\u043f\u0438\u0442\u043e\u043d\u043e\u0432\u0441\u043a\u0438\u0439\u00a0\u043f\u0440\u043e\u0435\u043a\u0442.\u00a0\u041f\u043e \u0434\u0435\u0442\u0441\u043a\u0438, \u043e\u0447\u0435\u043d\u044c \u0440\u0430\u0434\u043e\u0432\u0430\u043b\u0441\u044f \u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u044b \u043d\u0430\u00a0\u0434\u0430\u0448\u0431\u043e\u0440\u0434\u0435\u00a0\u043d\u0430\u043f\u0440\u044f\u043c\u0443\u044e \u043c\u0435\u043d\u044f\u044e\u0442\u00a0\u043f\u0438\u0442\u043e\u043d\u043e\u0432\u0441\u043a\u0438\u0435\u00a0\u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435. \u0418 \u0432\u043e\u0442 \u0434\u043b\u044f \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0440\u0435\u0448\u0438\u043b \u043f\u043e\u0438\u0433\u0440\u0430\u0442\u044c \u0441 \u043e\u0434\u043d\u043e\u0439 \u0438\u0437 \u0442\u0435\u043c \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043c\u043d\u0435 \u043e\u0447\u0435\u043d\u044c \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u0430 \u2013 \u043a\u043b\u0438\u043c\u0430\u0442. \u041d\u0430\u0447\u0430\u043b \u0441 \u0441\u0430\u043c\u043e\u0433\u043e\u00a0\u043f\u0440\u043e\u0441\u0442\u043e\u0433\u043e \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u043e\u0430\u043d\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u2013 \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u0443 \u0432\u043e\u0437\u0434\u0443\u0445\u0430 \u0441 \u043c\u0435\u0442\u0435\u043e\u0441\u0442\u0430\u043d\u0446\u0438\u0438 \u0433\u043e\u0440\u043e\u0434\u0430 \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u044f \u0436\u0438\u0432\u0443 &#8212; \u0410\u043b\u043c\u0430\u0442\u044b (\u041a\u0430\u0437\u0430\u0445\u0441\u0442\u0430\u043d). \u0418\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e \u0431\u044b\u043b\u043e \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u044d\u0444\u0444\u0435\u043a\u0442 \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u043a\u043b\u0438\u043c\u0430\u0442\u0430 \u043d\u0430 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e \u0432\u0437\u044f\u0442\u044b\u0439 \u0433\u043e\u0440\u043e\u0434.<\/p>\n<p>\u0414\u043b\u044f \u0430\u043d\u0430\u043b\u0438\u0437\u0430 \u0441\u043a\u0430\u0447\u0430\u043b \u0434\u0430\u043d\u043d\u044b\u0435 \u0437\u0430 100 \u043b\u0435\u0442 (1922-2022). \u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b \u0442\u043e\u043b\u044c\u043a\u043e \u043c\u0435\u0441\u044f\u0446\u044b \u0441 \u043d\u043e\u044f\u0431\u0440\u044f \u043f\u043e \u0430\u043f\u0440\u0435\u043b\u044c \u0432\u043a\u043b\u044e\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e,\u00a0\u0432\u043e-\u043f\u0435\u0440\u0432\u044b\u0445,\u00a0\u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u0432 \u043d\u0435\u0441\u0432\u043e\u0431\u043e\u0434\u043d\u043e\u0435 \u043e\u0442 \u0440\u0430\u0431\u043e\u0442\u044b \u0432\u0440\u0435\u043c\u044f \u044f \u0440\u0430\u0431\u043e\u0442\u0430\u044e \u0441 \u043c\u043e\u0440\u0441\u043a\u0438\u043c \u043b\u044c\u0434\u043e\u043c \u0438 \u0437\u0438\u043c\u043d\u0438\u0439 \u043a\u043b\u0438\u043c\u0430\u0442 \u043c\u043d\u0435 \u043f\u043e\u043d\u044f\u0442\u043d\u0435\u0439, \u0430 \u0432\u043e-\u0432\u0442\u043e\u0440\u044b\u0445 \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u0432 \u0434\u0430\u043d\u043d\u044b\u0445 \u0431\u044b\u043b\u0430 \u043f\u0440\u043e\u043f\u0443\u0449\u0435\u043d\u0430 \u043d\u0435\u0434\u0435\u043b\u044f \u043d\u0430\u0431\u043b\u044e\u0434\u0435\u043d\u0438\u0439 \u0432 \u0430\u0432\u0433\u0443\u0441\u0442\u0435, \u0432 \u043e\u0434\u043d\u043e\u043c \u0438\u0437 \u0433\u043e\u0434\u043e\u0432.<\/p>\n<p>\u041e\u0434\u0438\u043d \u0438\u0437 \u043f\u043b\u044e\u0441\u043e\u0432 Streamlit, \u0442\u043e \u0447\u0442\u043e \u0434\u0430\u0448\u0431\u043e\u0440\u0434\u044b \u043c\u043e\u0436\u043d\u043e \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u043e \u043f\u0443\u0431\u043b\u0438\u043a\u043e\u0432\u0430\u0442\u044c \u0432 Streamlit Cloud, \u0447\u0442\u043e \u044f \u0438 \u0441\u0434\u0435\u043b\u0430\u043b:<\/p>\n<p><a href=\"https:\/\/share.streamlit.io\/yevkad\/alaclim\/main\/app.py\" rel=\"noopener noreferrer nofollow\">https:\/\/share.streamlit.io\/yevkad\/alaclim\/main\/app.py<\/a><\/p>\n<p>\u041f\u0440\u043e\u0439\u0434\u044f \u043f\u043e \u044d\u0442\u043e\u0439 \u0441\u0441\u044b\u043b\u043a\u0435, \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0438\u0433\u0440\u0430\u0442\u044c \u0441 \u0438\u043d\u0442\u0435\u0440\u0430\u043a\u0442\u0438\u0432\u043d\u044b\u043c\u0438 \u0433\u0440\u0430\u0444\u0438\u043a\u0430\u043c\u0438. \u0410 \u0432 \u044d\u0442\u043e\u043c \u043f\u043e\u0441\u0442\u0435 \u044f \u043f\u043e\u043f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0439 \u043f\u043e\u043a\u0430\u0436\u0443 \u0447\u0442\u043e \u0438 \u043a\u0430\u043a \u044f \u0434\u0435\u043b\u0430\u043b (\u0441 \u043a\u043e\u0434\u043e\u043c) \u0438 \u043e\u043f\u0438\u0448\u0443 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0441\u0432\u043e\u0438 \u043d\u0430\u0431\u043b\u044e\u0434\u0435\u043d\u0438\u044f.<\/p>\n<h3>\u0418\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u044b<\/h3>\n<p>\u0412\u0441\u0435 \u0431\u044b\u043b\u043e \u0441\u0434\u0435\u043b\u0430\u043d\u043e \u043d\u0430 Python \u0438 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c\u0438 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430\u043c\u0438:<\/p>\n<ul>\n<li>\n<p><a href=\"https:\/\/streamlit.io\/\" rel=\"noopener noreferrer nofollow\">Streamlit<\/a> &#8212; \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0430 \u0434\u043b\u044f \u0431\u044b\u0441\u0442\u0440\u043e\u0433\u043e \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f DS\/ML \u0432\u0435\u0431-\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439<\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/pandas.pydata.org\/\" rel=\"noopener noreferrer nofollow\">Pandas<\/a> &#8212; \u043c\u0430\u043d\u0438\u043f\u0443\u043b\u044f\u0446\u0438\u0438 \u0441 \u0442\u0430\u0431\u043b\u0438\u0446\u0430\u043c\u0438<\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/numpy.org\/\" rel=\"noopener noreferrer nofollow\">Numpy<\/a> &#8212; \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0432\u0441\u043f\u043e\u043c\u043e\u0433\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438<\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/plotly.com\/\" rel=\"noopener noreferrer nofollow\">Plotly<\/a> &#8212; \u0412\u0441\u0435 \u0438\u043d\u0442\u0435\u0440\u0430\u043a\u0442\u0438\u0432\u043d\u044b\u0435 \u0433\u0440\u0430\u0444\u0438\u043a\u0438 \u0431\u044b\u043b\u0438 \u043f\u043e\u0441\u0442\u0440\u043e\u0435\u043d\u044b \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u044d\u0442\u043e\u0439 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438<\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/scipy.org\/\" rel=\"noopener noreferrer nofollow\">SciPy <\/a>&#8212; \u0434\u043b\u044f \u043f\u043e\u0434\u0431\u043e\u0440\u0430 \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e\u0441\u0442\u0435\u0439<\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/github.com\/mmhs013\/pymannkendall\" rel=\"noopener noreferrer nofollow\">pyMannKendall<\/a> &#8212; \u0434\u043b\u044f <em>\u0422\u0435\u0441\u0442\u0430 \u041c\u0430\u043d\u043d\u0430-\u041a\u0435\u043d\u0434\u0430\u043b\u043b\u0430<\/em>, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043e\u0446\u0435\u043d\u0438\u0432\u0430\u0435\u0442 \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u0447\u0435\u0441\u043a\u0443\u044e \u0437\u043d\u0430\u0447\u0438\u043c\u043e\u0441\u0442\u044c \u0442\u0440\u0435\u043d\u0434\u0430<\/p>\n<\/li>\n<\/ul>\n<pre><code class=\"python\">import streamlit as st import pandas as pd import numpy as np import plotly.express as px import plotly.figure_factory as ff import plotly.graph_objects as go import scipy import pymannkendall as mk  from datetime import datetime<\/code><\/pre>\n<h3>\u0414\u0430\u043d\u043d\u044b\u0435<\/h3>\n<p>\u041e\u0441\u043d\u043e\u0432\u043d\u0430\u044f \u0447\u0430\u0441\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0445 \u0431\u044b\u043b\u0430 \u0432\u0437\u044f\u0442\u0430 \u0441 <a href=\"https:\/\/www.ncdc.noaa.gov\/cdo-web\/\" rel=\"noopener noreferrer nofollow\">NOAA Climate Data Center<\/a>, <em>\u043a \u0441\u043b\u043e\u0432\u0443 &#8212; \u043e\u0434\u0438\u043d \u0438\u0437 \u043b\u044e\u0431\u0438\u043c\u044b\u0445 \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u043e\u0432 \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445, \u043d\u0430\u0440\u0430\u0432\u043d\u0435 \u0441 \u0435\u0432\u0440\u043e\u043f\u0435\u0439\u0441\u043a\u0438\u043c <\/em><a href=\"https:\/\/www.copernicus.eu\/en\/access-data\" rel=\"noopener noreferrer nofollow\"><em>Copernicus<\/em><\/a><em>.<\/em><\/p>\n<p>\u041f\u043e\u0447\u0435\u043c\u0443-\u0442\u043e \u0431\u044b\u043b\u043e \u043c\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u043f\u0443\u0441\u043a\u043e\u0432 \u043f\u043e\u0441\u043b\u0435 2006\u0433\u043e \u0433\u043e\u0434\u0430, \u0437\u0430\u043f\u043e\u043b\u043d\u0438\u043b \u0438\u0445 \u0434\u0430\u043d\u043d\u044b\u043c\u0438 <a href=\"https:\/\/rp5.ru\/\" rel=\"noopener noreferrer nofollow\">rp5 <\/a>&#8212; \u0442\u0430\u043c \u0442\u0440\u0435\u0445\u0447\u0430\u0441\u043e\u0432\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u0441 \u043c\u0435\u0442\u0435\u043e\u0441\u0442\u0430\u043d\u0446\u0438\u0439 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b \u0434\u043b\u044f \u0431\u043e\u043b\u044c\u0448\u0438\u043d\u0441\u0442\u0432\u0430 \u043b\u043e\u043a\u0430\u0446\u0438\u0439 \u0441 2005\u0433\u043e \u0433\u043e\u0434\u0430. \u041d\u0430 rp5 \u0434\u0430\u043d\u043d\u044b\u0435 \u0432 \u043c\u0435\u0441\u0442\u043d\u043e\u043c \u0432\u0440\u0435\u043c\u0435\u043d\u0438, \u043f\u0440\u0435\u0434\u0432\u0430\u0440\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043f\u0435\u0440\u0435\u0432\u0435\u043b \u0432\u0440\u0435\u043c\u044f \u0432 UTC \u0438 \u0443\u0441\u0440\u0435\u0434\u043d\u0438\u043b \u043f\u043e\u0434\u043d\u0435\u0432\u043d\u043e.<\/p>\n<p>\u0414\u0430\u043d\u043d\u044b\u0435 \u043f\u043e\u0434\u0433\u043e\u0442\u0430\u0432\u043b\u0438\u0432\u0430\u044e\u0442\u0441\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u0435\u0439 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u043d\u043e\u0439 \u043d\u0438\u0436\u0435. \u0414\u0435\u043a\u043e\u0440\u0430\u0442\u043e\u0440 <code>st.cahce<\/code> \u0434\u043b\u044f \u0442\u043e\u0433\u043e \u0447\u0442\u043e\u0431\u044b \u0434\u0430\u043d\u043d\u044b\u0435 \u043d\u0435 \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u043b\u0438\u0441\u044c \u043a\u0430\u0436\u0434\u044b\u0439 \u0440\u0430\u0437 \u043f\u0440\u0438 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0438 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u043e\u0432.<\/p>\n<pre><code class=\"python\">@st.cache def get_winter_data(fl): #initial columns: date, at - daily mean air temperature     df_winter=pd.read_csv(fl,parse_dates=['date'])     df_winter['fd']=np.abs(np.minimum(0,df_winter['at'])) #freezing days     df_winter['month']=df_winter['date'].dt.strftime('%b')          #relative date for timeseries.     df_winter['date_rel']=pd.to_datetime(df_winter['date'].dt.strftime('2016-%m-%d'),                                          format='%Y-%m-%d')     df_winter.loc[df_winter['mon']>8,                   'date_rel']=df_winter['date_rel'] - pd.DateOffset(years=1)      df_winter.loc[df_winter['date']&lt;datetime(1972,6,1), 'period']='1922-1972'     df_winter.loc[df_winter['date']>datetime(1972,6,1), 'period']='1972-2022'     df_winter['dt']=df_winter['date'].dt.strftime('%Y%m').astype(int)          df_fdd=df_winter.groupby(['seas'])['fd'].sum().reset_index(name='fdd')          return df_winter,df_fdd<\/code><\/pre>\n<p>\u0412 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0434\u0432\u0430 \u0434\u0430\u0442\u0430\u0444\u0440\u0435\u0439\u043c\u0430 <code>df_winter<\/code> \u0438 <code>df_fdd<\/code>. \u0423 df_winter \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u043a\u043e\u043b\u043e\u043d\u043a\u0438:<\/p>\n<ul>\n<li>\n<p><strong><em>date<\/em><\/strong> &#8212; \u0434\u0430\u0442\u0430<\/p>\n<\/li>\n<li>\n<p><strong><em>at<\/em><\/strong> &#8212; \u0441\u0440\u0435\u0434\u043d\u0435\u0434\u043d\u0435\u0432\u043d\u0430\u044f \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u0430 \u0432\u043e\u0437\u0434\u0443\u0445\u0430<\/p>\n<\/li>\n<li>\n<p><strong><em>seas<\/em><\/strong> &#8212; \u0441\u0435\u0437\u043e\u043d, \u0441\u0442\u0440\u043e\u043a\u0430 \u0432 \u0432\u0438\u0434\u0435 \u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0438 \u043a\u043e\u043d\u0435\u0447\u043d\u043e\u0433\u043e \u0433\u043e\u0434\u0430 (1922-1923)<\/p>\n<\/li>\n<li>\n<p><strong><em>month<\/em><\/strong> &#8212; \u043c\u0435\u0441\u044f\u0446 \u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0435 \u0441\u0442\u0440\u043e\u0447\u043d\u043e\u043c \u0444\u043e\u0440\u043c\u0430\u0442\u0435 (Nov, Dec, etc). <em>\u041e\u0442 \u043d\u0435\u0435 \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0431\u044b \u0438\u0437\u0431\u0430\u0432\u0438\u0442\u044c\u0441\u044f \u0438 \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0443, \u043d\u043e \u0440\u0443\u043a\u0438 \u043f\u043e\u043a\u0430 \u043d\u0435 \u0434\u043e\u0448\u043b\u0438<\/em><\/p>\n<\/li>\n<li>\n<p><strong><em>mon<\/em><\/strong> &#8212;  \u043c\u0435\u0441\u044f\u0446 \u0432 \u0447\u0438\u0441\u043b\u043e\u0432\u043e\u043c \u0444\u043e\u0440\u043c\u0430\u0442\u0435 (11, 12 \u0438 \u0442\u0434.)<\/p>\n<\/li>\n<li>\n<p><strong><em>period<\/em><\/strong> &#8212; \u0444\u0438\u043a\u0441\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u043f\u0435\u0440\u0438\u043e\u0434 \u043f\u043e 50 \u043b\u0435\u0442 \u0441 1922 \u043f\u043e 1972 \u0438 1972 \u043f\u043e 2022<\/p>\n<\/li>\n<li>\n<p><strong><em>fd<\/em><\/strong> &#8212; freezing days, \u0433\u0440\u0430\u0434\u0443\u0441\u044b \u043d\u0438\u0436\u0435 \u043d\u0443\u043b\u044f \u0432 \u0430\u0431\u0441\u043e\u043b\u044e\u0442\u0435<\/p>\n<\/li>\n<li>\n<p><strong><em>dt<\/em><\/strong> &#8212; \u043f\u043e\u043b\u0443\u043a\u043e\u0441\u0442\u044b\u043b\u044c, \u0433\u043e\u0434-\u043c\u0435\u0441\u044f\u0446 \u0432 \u0432\u0438\u0434\u0435 \u0446\u0435\u043b\u043e\u0433\u043e \u0447\u0438\u0441\u043b\u0430 \u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0435 YYYYMM, \u0434\u043b\u044f \u0433\u0440\u0443\u043f\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u0445 \u0441\u0435\u0437\u043e\u043d\u043e\u0432 \u0432 \u043e\u0434\u043d\u0443 \u0433\u0440\u0443\u043f\u043f\u0443 \u0444\u0443\u043d\u043a\u0446\u0438\u0435\u0439 <code>np.digitize<\/code> (\u043f\u0440\u0438\u043c\u0435\u0440 \u0431\u0443\u0434\u0435\u0442 \u0432 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0445 \u0441\u0435\u043a\u0446\u0438\u044f\u0445) <\/p>\n<\/li>\n<li>\n<p><strong><em>rel_date<\/em><\/strong> &#8212; \u0434\u0430\u0442\u0430 \u0441 \u0437\u0430\u043c\u0435\u043d\u043e\u0439 \u0433\u043e\u0434\u0430 \u0434\u043b\u044f \u0432\u0441\u0435\u0445 \u0434\u043d\u0435\u0439 \u043d\u0430 2015 \u0434\u043e \u044f\u043d\u0432\u0430\u0440\u044f \u0438 2016 \u0441 \u044f\u043d\u0432\u0430\u0440\u044f, \u0434\u043b\u044f \u0442\u043e\u0433\u043e \u0447\u0442\u043e \u0431\u044b \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0430\u0433\u0440\u0435\u0433\u0438\u0440\u043e\u0432\u0430\u0442\u044c 100 \u043b\u0435\u0442 \u0437\u0430 \u043a\u0430\u0436\u0434\u044b\u0439 \u0434\u0435\u043d\u044c.<\/p>\n<\/li>\n<\/ul>\n<p>\u0423 <code>df_fdd<\/code> \u0432\u0441\u0435\u0433\u043e 100 \u0440\u044f\u0434\u043e\u0432, \u043f\u043e \u0440\u044f\u0434\u0443 \u0437\u0430 \u043a\u0430\u0436\u0434\u044b\u0439 \u0441\u0435\u0437\u043e\u043d \u0438 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u043a\u043e\u043b\u043e\u043d\u043a\u0438:<\/p>\n<ul>\n<li>\n<p><strong><em>seas<\/em> <\/strong>&#8212; \u0441\u0435\u0437\u043e\u043d<\/p>\n<\/li>\n<li>\n<p><strong><em>fdd<\/em><\/strong> &#8212; Freezing Degree Days &#8212; \u0430\u043a\u043a\u0443\u043c\u0443\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u0433\u0440\u0430\u0434\u0443\u0441\u044b \u043d\u0438\u0436\u0435 \u043d\u0443\u043b\u044f \u0432 \u0430\u0431\u0441\u043e\u043b\u044e\u0442\u0435. \u0411\u043e\u043b\u0435\u0435 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e\u0435 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u0431\u0443\u0434\u0435\u0442 \u043d\u0438\u0436\u0435.<\/p>\n<\/li>\n<\/ul>\n<h2>\u0412\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 \u0440\u044f\u0434<\/h2>\n<p>\u0412\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439\u00a0\u0440\u044f\u0434 \u0431\u044b\u043b \u0441\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d \u0432\u044b\u0432\u0435\u0434\u0435\u043d\u0438\u0435\u043c \u043d\u0430 \u0433\u0440\u0430\u0444\u0438\u043a\u00a0\u0430\u0433\u0440\u0435\u0433\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0445\u00a0\u0437\u0430 \u043a\u0430\u0436\u0434\u044b\u0439 \u0434\u0435\u043d\u044c \u0441 \u043d\u043e\u044f\u0431\u0440\u044f \u043f\u043e \u0430\u043f\u0440\u0435\u043b\u044c \u0441\u0442\u043e\u043b\u0435\u0442\u043d\u0438\u0445 \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440 (\u043c\u0430\u043a\u0441\u0438\u043c\u0443\u043c, \u043c\u0438\u043d\u0438\u043c\u0443\u043c, \u0441\u0440\u0435\u0434\u043d\u0435\u0435) \u0438 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c\u044e \u0441\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u0442\u044c \u044d\u0442\u0438 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0441 \u0432\u044b\u0431\u0440\u0430\u043d\u043d\u044b\u043c\u0438 \u043f\u0435\u0440\u0438\u043e\u0434\u0430\u043c\u0438.<\/p>\n<p>\u0415\u0441\u043b\u0438 \u0432\u0438\u0437\u0443\u0430\u043b\u044c\u043d\u043e \u0441\u0440\u0430\u0432\u043d\u0438\u0442\u044c \u043f\u0435\u0440\u0432\u0443\u044e \u043f\u043e\u043b\u043e\u0432\u0438\u043d\u0443 \u043f\u0435\u0440\u0438\u043e\u0434\u0430 \u0441\u043e \u0432\u0442\u043e\u0440\u043e\u0439, \u0442\u043e\u00a0\u0432\u0438\u0434\u043d\u043e, \u0447\u0442\u043e\u00a0\u0432 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u043c \u0441\u0440\u0435\u0434\u043d\u0438\u0435 \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u044b \u0441 1922 \u043f\u043e 1972 \u043d\u0438\u0436\u0435 \u0441\u0442\u043e\u043b\u0435\u0442\u043d\u0435\u0433\u043e \u0441\u0440\u0435\u0434\u043d\u0435\u0433\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f, \u0430 \u0441 1972 \u043f\u043e 2022 \u0432\u044b\u0448\u0435.<\/p>\n<figure class=\"full-width\"><figcaption>\u0421\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u0435 \u0441\u0440\u0435\u0434\u043d\u0438\u0445 \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440 \u0437\u0430 \u043f\u0435\u0440\u0432\u044b\u0435 \u0438 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 50 \u043b\u0435\u0442 \u0441\u043e \u0441\u0442\u043e\u043b\u0435\u0442\u043d\u0438\u043c\u0438 \u0441\u0440\u0435\u0434\u043d\u0438\u043c\u0438.<\/figcaption><\/figure>\n<h2>\u0420\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f<\/h2>\n<p>\u0414\u0430\u043b\u0435\u0435 \u0431\u044b\u043b\u0438 \u043f\u043e\u0441\u0442\u0440\u043e\u0435\u043d\u044b \u0433\u0438\u0441\u0442\u043e\u0433\u0440\u0430\u043c\u043c\u044b \u0441 \u043f\u043e\u0434\u0431\u043e\u0440\u043e\u043c \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e\u0441\u0442\u0435\u0439 \u0434\u043b\u044f \u0434\u0432\u0443\u0445 \u043f\u0435\u0440\u0438\u043e\u0434\u043e\u0432 \u043f\u043e 50 \u043b\u0435\u0442: 1922-1972 \u0438 1972-2022. \u0412 \u043f\u0430\u0434\u0430\u044e\u0449\u0435\u043c \u043c\u0435\u043d\u044e \u043c\u043e\u0436\u043d\u043e \u0432\u044b\u0431\u0440\u0430\u0442\u044c \u0442\u0438\u043f \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f &#8212; \u041d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e\u0435 \u0438\u043b\u0438 \u0413\u0430\u043c\u043c\u0430. \u0412 \u0434\u0430\u043d\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0432\u0438\u0437\u0443\u0430\u043b\u044c\u043d\u043e \u043f\u043e\u043d\u044f\u0442\u043d\u043e, \u0447\u0442\u043e \u041d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e\u0435 \u0431\u043e\u043b\u044c\u0448\u0435 \u043f\u043e\u0434\u0445\u043e\u0434\u0438\u0442, \u043d\u043e \u0432 \u0431\u0443\u0434\u0443\u0449\u0435\u043c \u0434\u043e\u0431\u0430\u0432\u043b\u044e \u043c\u0435\u0442\u0440\u0438\u043a\u0443 &#171;goodness of fit&#187;.<\/p>\n<p>\u041b\u0435\u0432\u0430\u044f \u0447\u0430\u0441\u0442\u044c \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f 1972-2022 &#171;\u0441\u0443\u0436\u0430\u0435\u0442\u0441\u044f&#187; \u0432 \u043f\u0440\u0430\u0432\u043e, \u043f\u043e \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044e \u0441 \u043f\u0435\u0440\u0438\u043e\u0434\u043e\u043c 1922-1972. \u042d\u0442\u043e \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442, \u0447\u0442\u043e \u0437\u0430 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 50 \u043b\u0435\u0442 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043d\u0430\u0431\u043b\u044e\u0434\u0435\u043d\u0438\u0439 \u044d\u043a\u0441\u0442\u0440\u0435\u043c\u0430\u043b\u044c\u043d\u043e \u0445\u043e\u043b\u043e\u0434\u043d\u044b\u0445 \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440 \u0443\u043c\u0435\u043d\u044c\u0448\u0438\u043b\u043e\u0441\u044c. \u042d\u0442\u043e \u043d\u0435 \u043f\u0440\u043e\u0442\u0438\u0432\u043e\u0440\u0435\u0447\u0438\u0442 \u0432\u044b\u0432\u0435\u0434\u0435\u043d\u043d\u044b\u043c\u0438 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u043c\u0438 \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f &#8212; \u0441\u0440\u0435\u0434\u043d\u0435\u0435 (Mean) \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u043b\u043e\u0441\u044c \u043d\u0430 0.6 \u0433\u0440\u0430\u0434\u0443\u0441\u0430, \u0430 \u0441\u0440\u0435\u0434\u043d\u0435\u043a\u0432\u0430\u0434\u0440\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u043e\u0442\u043a\u043b\u043e\u043d\u0435\u043d\u0438\u0435 (SD) \u0443\u043c\u0435\u043d\u044c\u0448\u0438\u043b\u043e\u0441\u044c \u043f\u043e \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044e \u0441 \u043d\u0430\u0447\u0430\u043b\u044c\u043d\u044b\u043c \u043f\u0435\u0440\u0438\u043e\u0434\u043e\u043c.<\/p>\n<figure class=\"full-width\"><figcaption>\u0420\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440 \u0437\u0430 \u0434\u0432\u0430 \u043f\u0435\u0440\u0438\u043e\u0434\u0430: 1922-1972 \u0438 1972-2022<\/figcaption><\/figure>\n<h2>\u0423\u0441\u0430\u0442\u044b\u0435 \u042f\u0449\u0438\u043a\u0438<\/h2>\n<p>\u041f\u043e\u043c\u0438\u043c\u043e \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044f \u0434\u0432\u0443\u0445 \u0444\u0438\u043a\u0441\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0445 \u043f\u0435\u0440\u0438\u043e\u0434\u043e\u0432 \u0432 \u0432\u0438\u0434\u0435 \u0433\u0438\u0441\u0442\u043e\u0433\u0440\u0430\u043c\u043c \u0438 \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0439 \u043e\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u0445 \u0432 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0435\u0439 \u0441\u0435\u043a\u0446\u0438\u0438, \u0442\u0430\u043a\u0436\u0435 \u0431\u044b\u043b\u0430 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0430 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044f \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u0432\u044b\u0431\u0440\u0430\u043d\u043d\u044b\u0445 \u0433\u0440\u0443\u043f\u043f \u043f\u0435\u0440\u0438\u043e\u0434\u043e\u0432 (1 \u0433\u043e\u0434, 5 \u043b\u0435\u0442, 10 \u043b\u0435\u0442 \u0438 \u0442\u0434). \u041d\u0430\u0438\u0431\u043e\u043b\u0435\u0435 \u043f\u043e\u0434\u0445\u043e\u0434\u044f\u0449\u0435\u0439 \u0432\u0438\u0437\u0443\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0435\u0439 \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e, \u043f\u043e \u043c\u043e\u0435\u043c\u0443 \u043c\u043d\u0435\u043d\u0438\u044e, \u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u0433\u0440\u0430\u0444\u0438\u043a\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u044f \u043d\u0430\u0437\u044b\u0432\u0430\u043b \u0432\u0441\u0435\u0433\u0434\u0430 \u0431\u043e\u043a\u0441\u043f\u043b\u043e\u0442\u0430\u043c\u0438, \u0438 \u0442\u043e\u043b\u044c\u043a\u043e \u0441\u0435\u0433\u043e\u0434\u043d\u044f \u0432\u044b\u044f\u0441\u043d\u0438\u043b \u0447\u0442\u043e \u0440\u0443\u0441\u0441\u043a\u043e\u0435 \u043d\u0430\u0437\u044b\u0432\u0430\u043d\u0438\u0435 \u0434\u043b\u044f \u043d\u0438\u0445 &#8212; &#171;\u044f\u0449\u0438\u043a \u0441 \u0443\u0441\u0430\u043c\u0438&#187;.<\/p>\n<p>\u0414\u043b\u044f \u0442\u0435\u0445 \u043a\u0442\u043e \u043d\u0435 \u0441\u0442\u0430\u043b\u043a\u0438\u0432\u0430\u043b\u0441\u044f \u0441 \u0442\u0430\u043a\u0438\u043c\u0438 \u0433\u0440\u0430\u0444\u0438\u043a\u0430\u043c\u0438, \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e\u0435 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 &#171;\u044f\u0449\u0438\u043a\u0430 \u0441 \u0443\u0441\u0430\u043c\u0438&#187; \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0447\u0438\u0442\u0430\u0442\u044c, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, <a href=\"https:\/\/ru.wikipedia.org\/wiki\/%D0%AF%D1%89%D0%B8%D0%BA_%D1%81_%D1%83%D1%81%D0%B0%D0%BC%D0%B8\" rel=\"noopener noreferrer nofollow\">\u0437\u0434\u0435\u0441\u044c, <\/a>\u043d\u043e \u0433\u0440\u0443\u0431\u043e \u0438 \u043f\u0440\u0438\u0431\u043b\u0438\u0436\u0435\u043d\u043d\u043e, \u0432\u043e\u0442 \u043a\u0430\u043a \u043c\u043e\u0436\u043d\u043e \u0435\u0433\u043e \u0438\u043d\u0442\u0435\u0440\u043f\u0440\u0435\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c:<\/p>\n<ul>\n<li>\n<p>&#171;\u042f\u0449\u0438\u043a&#187; \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 50% \u043d\u0430\u0431\u043b\u044e\u0434\u0435\u043d\u0438\u0439<\/p>\n<\/li>\n<li>\n<p>\u041b\u0438\u043d\u0438\u044f \u0432\u043d\u0443\u0442\u0440\u0438 \u044f\u0449\u0438\u043a\u0430 &#8212; \u043c\u0435\u0434\u0438\u0430\u043d\u0430, \u0438\u043b\u0438 2-\u0439 \u043a\u0432\u0430\u0440\u0442\u0438\u043b\u044c &#8212; \u0432\u044b\u0448\u0435 \u0438 \u043d\u0438\u0436\u0435 \u043f\u043e 50% \u043d\u0430\u0431\u043b\u044e\u0434\u0435\u043d\u0438\u0439<\/p>\n<\/li>\n<li>\n<p>\u041d\u0438\u0436\u043d\u0438\u0439 \u0438 \u0432\u0435\u0440\u0445\u043d\u0438\u0439 &#171;\u0443\u0441&#187; &#8212; 25% \u043d\u0438\u0436\u043d\u0438\u0445 \u0438 \u0432\u0435\u0440\u0445\u043d\u0438\u0445 \u043d\u0430\u0431\u043b\u044e\u0434\u0435\u043d\u0438\u0439 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e<\/p>\n<\/li>\n<li>\n<p>\u0422\u043e\u0447\u043a\u0438 &#8212; \u0432\u044b\u0431\u0440\u043e\u0441\u044b (\u043d\u0430\u0431\u043b\u044e\u0434\u0435\u043d\u0438\u044f \u0432\u043d\u0435 2.7 \u0441\u0440\u0435\u0434\u043d\u0435\u043a\u0432\u0430\u0434\u0440\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u043e\u0442\u043a\u043b\u043e\u043d\u0435\u043d\u0438\u0439)<\/p>\n<\/li>\n<li>\n<p>\u041d\u0438\u0436\u043d\u044f\u044f \u0433\u0440\u0430\u043d\u0438\u0446\u0430 &#171;\u044f\u0449\u0438\u043a\u0430&#187; &#8212; 1-\u0439 \u043a\u0432\u0430\u0440\u0442\u0438\u043b\u044c &#8212; \u043d\u0438\u0436\u0435 \u043d\u0435\u0433\u043e 25% \u043d\u0430\u0431\u043b\u044e\u0434\u0435\u043d\u0438\u0439, \u0432\u044b\u0448\u0435 75%<\/p>\n<\/li>\n<li>\n<p>\u0412\u0435\u0440\u0445\u043d\u044f\u044f \u0433\u0440\u0430\u043d\u0438\u0446\u0430 &#171;\u044f\u0449\u0438\u043a\u0430&#187; &#8212; 3-\u0439 \u043a\u0432\u0430\u0440\u0442\u0438\u043b\u044c &#8212; \u0432\u044b\u0448\u0435 \u043d\u0435\u0433\u043e 25% \u043d\u0430\u0431\u043b\u044e\u0434\u0435\u043d\u0438\u0439, \u043d\u0438\u0436\u0435 75%<\/p>\n<\/li>\n<\/ul>\n<p>\u0421\u0433\u0440\u0443\u043f\u043f\u0438\u0440\u043e\u0432\u0430\u0432 \u043f\u043e \u0434\u043b\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u043c \u043f\u0435\u0440\u0438\u043e\u0434\u0430\u043c, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 20 \u043b\u0435\u0442, \u043a\u0430\u043a \u043d\u0430 \u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u043d\u0438\u0436\u0435, \u0432\u0438\u0434\u043d\u043e \u0447\u0442\u043e, \u043c\u0435\u0434\u0438\u0430\u043d\u0430 \u0438 1-\u0439 \u043a\u0432\u0430\u0440\u0442\u0438\u043b\u044c \u0441\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u043e \u0432\u043e\u0437\u0440\u0430\u0441\u0442\u0430\u0435\u0442 \u0441 \u043f\u0435\u0440\u0438\u043e\u0434\u0430 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0432\u043a\u043b\u044e\u0447\u0430\u0435\u0442 \u0432 \u0441\u0435\u0431\u044f 1970\u0435, \u0430 3-\u0439 \u043a\u0432\u0430\u0440\u0442\u0438\u043b\u044c \u0432 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u043c \u043f\u0435\u0440\u0438\u043e\u0434\u0435. \u0422\u0430\u043a\u0436\u0435 \u043a\u0430\u043a \u043d\u0430 \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f\u0445 \u043e\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u0445 \u0432\u044b\u0448\u0435, \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u0437\u0438\u043c \u043f\u043e \u0431\u043e\u043b\u044c\u0448\u0435\u0439 \u0447\u0430\u0441\u0442\u0438 \u0432\u044b\u0440\u0430\u0436\u0430\u0435\u0442\u0441\u044f \u0432 \u0443\u043c\u0435\u043d\u044c\u0448\u0435\u043d\u0438\u0438 &#171;\u0445\u043e\u043b\u043e\u0434\u043e\u0432&#187;, \u0430 \u0432 \u0431\u043e\u043b\u0435\u0435 \u043f\u043e\u0437\u0434\u043d\u0438\u0435 \u043f\u0435\u0440\u0438\u043e\u0434\u044b \u0435\u0449\u0435 \u0438 \u0432 \u0443\u0432\u0435\u043b\u0438\u0447\u0435\u043d\u0438\u0438 &#171;\u0442\u0435\u043f\u043b\u0430&#187;.<\/p>\n<figure class=\"full-width\"><figcaption>\u0411\u043e\u043a\u0441 \u043f\u043b\u043e\u0442 \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440 \u0432\u043e\u0437\u0434\u0443\u0445\u0430, \u0441\u0433\u0440\u0443\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u043f\u043e 20 \u043b\u0435\u0442.<\/figcaption><\/figure>\n<p>\u0412\u043e\u0442 \u0447\u0430\u0441\u0442\u044c \u043a\u043e\u0434\u0430, \u0433\u0434\u0435 \u0433\u0440\u0443\u043f\u043f\u0438\u0440\u0443\u044e\u0442\u0441\u044f \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u044b \u043f\u043e \u0433\u043e\u0434\u0430\u043c \u0438 \u0432\u044b\u0432\u043e\u0434\u044f\u0442\u0441\u044f \u0432 \u0433\u0440\u0430\u0444\u0438\u043a:<\/p>\n<pre><code class=\"python\"># Years grouping: nmax=df_fdd.shape[0] yr_start=df_winter['year'].min()  # list of only divisible groups group_lst=[i for i in range(1,nmax+1,1) if nmax % i==0]  step=st.selectbox('Group years ', group_lst, index=group_lst.index(10)) date_range=np.array([datetime(yr_start+i,6,1).strftime('%Y%m') for i in range(step,nmax+1,step) ]).astype(int) date_bin_n=np.array([f'{yr_start+i}-{yr_start+step+i}' for i in range(0,nmax,step)]) df_winter_g=df_winter.copy() #assigning bin name to date range df_winter_g['date_bin']=date_bin_n[np.digitize(df_winter_g['dt'], date_range)] #month filtering mon_lst=df_winter['month'].unique() st_mon_lst = st.multiselect(\"Months Used\", mon_lst, default=mon_lst) df_mon=df_winter_g[df_winter_g['month'].isin(st_mon_lst)]  fig_box = px.box(df_mon, x=\"date_bin\", y=\"at\", labels={'seas':'Winter Season', 'at':'Air Temperature (\\u00B0C)', 'date_bin':'Date Range'},) st.write(fig_box)<\/code><\/pre>\n<h3>\u0421\u0443\u0440\u043e\u0432\u043e\u0441\u0442\u044c \u0437\u0438\u043c \u043f\u043e FDD<\/h3>\n<p>\u0421\u0443\u043c\u043c\u0430\u00a0\u0433\u0440\u0430\u0434\u0443\u0441\u043e\u0434\u043d\u0435\u0439\u00a0\u043c\u043e\u0440\u043e\u0437\u0430 (Freezing Degree Days &#8212; FDD)\u00a0\u0440\u0430\u0441\u0441\u0447\u0438\u0442\u044b\u0432\u0430\u0435\u0442\u0441\u044f\u00a0\u043a\u0430\u043a \u0430\u0431\u0441\u043e\u043b\u044e\u0442\u043d\u0430\u044f \u0441\u0443\u043c\u043c\u0430 \u0432\u0441\u0435\u0445 \u043e\u0442\u0440\u0438\u0446\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440 \u0432\u043e\u0437\u0434\u0443\u0445\u0430 \u0437\u0430 \u043f\u0435\u0440\u0438\u043e\u0434 \u2013 \u043e\u0431\u044b\u0447\u043d\u043e \u0437\u0430 \u0437\u0438\u043c\u043d\u0438\u0439 \u0441\u0435\u0437\u043e\u043d.\u00a0\u041d\u0430 \u0432\u0441\u044f\u043a\u0438\u0439 \u0441\u043b\u0443\u0447\u0430\u0439\u00a0\u0444\u043e\u0440\u043c\u0443\u043b\u0430 FDD:<\/p>\n<p>\u0413\u0434\u0435 <em>at<\/em> &#8212; \u0441\u0440\u0435\u0434\u043d\u0435\u0434\u043d\u0435\u0432\u043d\u0430\u044f \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u0430 \u0432\u043e\u0437\u0434\u0443\u0445\u0430, <em>N<\/em> &#8212; \u0447\u0438\u0441\u043b\u043e \u0434\u043d\u0435\u0439 \u0432 \u0441\u0435\u0437\u043e\u043d\u0435.<\/p>\n<p>FDD \u0447\u0430\u0441\u0442\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0434\u043b\u044f \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e\u0433\u043e \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u043f\u0440\u0438\u0440\u043e\u0441\u0442\u0430 \u0442\u043e\u043b\u0449\u0438\u043d\u044b \u043b\u044c\u0434\u0430, \u0443\u0440\u043e\u0432\u043d\u044f \u043f\u0440\u043e\u043c\u0435\u0440\u0437\u0430\u043d\u0438\u044f \u043f\u043e\u0447\u0432\u044b, \u0438 \u043c\u043e\u0436\u0435\u0442 \u0441\u043b\u0443\u0436\u0438\u0442\u044c \u0438\u043d\u0434\u0435\u043a\u0441\u043e\u043c \u0441\u0443\u0440\u043e\u0432\u043e\u0441\u0442\u0438 \u0437\u0438\u043c: \u0447\u0435\u043c \u043c\u0435\u043d\u044c\u0448\u0435 FDD \u0442\u0435\u043c \u043c\u044f\u0433\u0447\u0435 \u0437\u0438\u043c\u0430.<\/p>\n<p>\u041e\u0442\u043e\u0431\u0440\u0430\u0437\u0438\u0432 \u043d\u0430 \u0433\u0440\u0430\u0444\u0438\u043a\u0435 FDD \u0437\u0430 \u043a\u0430\u0436\u0434\u044b\u0439 \u0441\u0435\u0437\u043e\u043d \u0438 \u043f\u043e\u043b\u043e\u0436\u0438\u0432 \u043b\u0438\u043d\u0438\u044e \u0442\u0440\u0435\u043d\u0434\u0430, \u0442\u043e \u043c\u043e\u0436\u043d\u043e \u0443\u0432\u0438\u0434\u0435\u0442\u044c \u0442\u0435\u043d\u0434\u0435\u043d\u0446\u0438\u044e \u0441\u043d\u0438\u0436\u0435\u043d\u0438\u044f \u0441\u0443\u0440\u043e\u0432\u043e\u0441\u0442\u0438 \u0437\u0438\u043c, \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u0441 1970\u0445 \u0433\u043e\u0434\u043e\u0432.<\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u0422\u0440\u0435\u043d\u0434 \u0431\u044b\u043b \u043f\u043e\u0441\u0447\u0438\u0442\u0430\u043d \u0432 NumPy \u043a\u0430\u043a\u00a0\u043f\u043e\u043b\u0438\u043d\u043e\u043c\u0438\u0430\u043b\u044c\u043d\u0430\u044f\u00a0\u043a\u0440\u0438\u0432\u0430\u044f (\u0441 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c\u044e \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u043f\u043e\u0440\u044f\u0434\u043a\u043e\u043c).\u00a0<\/p>\n<pre><code class=\"python\">poly_deg=st.slider('Degree of a Polynomial Trend',                     min_value=1, max_value=20, value=1, step=1)  trend_x = np.arange(df_fdd.shape[0]) trend_fit = np.polyfit(trend_x, df_fdd['fdd'], poly_deg) trend_fit_fn = np.poly1d(trend_fit)<\/code><\/pre>\n<p>\u041f\u043e\u043c\u0438\u043c\u043e \u0432\u0438\u0437\u0443\u0430\u043b\u044c\u043d\u043e\u0439 \u043e\u0446\u0435\u043d\u043a\u0438, \u0442\u0440\u0435\u043d\u0434 \u0438 \u0435\u0433\u043e \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u0447\u0435\u0441\u043a\u0430\u044f \u0437\u043d\u0430\u0447\u0438\u043c\u043e\u0441\u0442\u044c \u0431\u044b\u043b\u0430 \u043e\u0446\u0435\u043d\u0435\u043d\u0430 \u0442\u0435\u0441\u0442\u043e\u043c \u041c\u0430\u043d\u043d\u0430-\u041a\u0435\u043d\u0430\u0434\u0430\u043b\u043b\u0430 \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 <a href=\"https:\/\/github.com\/mmhs013\/pymannkendall\" rel=\"noopener noreferrer nofollow\">pyMannKendall<\/a> \u0432\u043e\u0442 \u0442\u0430\u043a:<\/p>\n<pre><code class=\"python\">mk_res=mk.original_test(df_fdd['fdd']) # results of Mann-Kendall Test<\/code><\/pre>\n<p>\u0418 \u0432\u044b\u0432\u0435\u0441\u0442\u0438 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442..<\/p>\n<pre><code class=\"python\">trend_mk=mk_res.trend # Trend: Increasing, Decreasing or No Trend pval_mk=mk_res.p      # P-Value of MK Test  if pval_mk&lt;0.05: # alpha=0.05     p_str='**statistically significant**'     alpha_compr='smaller' else:     p_str='**not statistically significant**'     alpha_compr='greater'  #Markdown string generated to present MK Test results of FDD Trend mk_str=f'''Mann-Kendall Test shows that FDD trend is **{trend_mk}**. \\n\\n**P-value** is **{pval_mk:.3e}**, which is **{alpha_compr}** than **0.05**, meaning that the trend in the data is {p_str}'''<\/code><\/pre>\n<p>\u0418 \u0432 \u0442\u0430\u043a\u043e\u043c \u0432\u0438\u0434\u0435 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b \u0442\u0435\u0441\u0442\u0430 \u0432\u044b\u0432\u043e\u0434\u044f\u0442\u0441\u044f \u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443:<\/p>\n<figure class=\"full-width\"><figcaption>\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b \u0442\u0435\u0441\u0442\u0430 \u041c\u0430\u043d\u043d\u0430-\u041a\u0435\u043d\u0434\u0430\u043b\u043b\u0430<\/figcaption><\/figure>\n<p>\u041d\u0443 \u0438 \u043d\u0430\u043f\u043e\u0441\u043b\u0435\u0434\u043e\u043a \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u043e\u0435 \u0447\u0438\u0441\u043b\u043e \u043d\u0430\u0438\u0431\u043e\u043b\u0435\u0435 \u043c\u044f\u0433\u043a\u0438\u0445 \u0438 \u043d\u0430\u0438\u0431\u043e\u043b\u0435\u0435 \u0441\u0443\u0440\u043e\u0432\u044b\u0445 \u0437\u0438\u043c \u0440\u0430\u043d\u0436\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0445 \u043f\u043e FDD. \u0412 \u043f\u044f\u0442\u0435\u0440\u043a\u0443 \u043d\u0430\u0438\u0431\u043e\u043b\u0435\u0435 \u043c\u044f\u0433\u043a\u0438\u0445 \u043f\u043e\u043f\u0430\u043b\u0438 \u0441\u0435\u0437\u043e\u043d\u044b \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0445 30 \u043b\u0435\u0442. \u0412 \u043f\u044f\u0442\u0435\u0440\u043a\u0443 \u043d\u0430\u0438\u0431\u043e\u043b\u0435\u0435 \u0441\u0443\u0440\u043e\u0432\u044b\u0445 \u043f\u043e\u043f\u0430\u043b\u0438 \u0437\u0438\u043c\u044b \u043d\u0435 \u043f\u043e\u0437\u0436\u0435 1970\u0445.<\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<h2>\u0417\u0430\u043a\u043b<\/h><\/div>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-333831","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/333831","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=333831"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/333831\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=333831"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=333831"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=333831"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}