{% extends "base.html" %} {% load i18n static ui help %} {% block title %}{% translate "Calculate indices" %}{% endblock %} {% block steps %}{% include "components/steps.html" %}{% endblock %} {% block content %}

{% translate "Calculate indices" %}

{% blocktranslate with name=analysis.station_name start=analysis.base_start end=analysis.base_end trimmed %} {{ name }}, base period {{ start }} to {{ end }}. Every index is calculated; these settings change the few that take a number of days, a temperature or an amount. Leave them as they are unless you need those indices. {% endblocktranslate %}

{% if not qc_done %} {% url 'stations:qc' analysis.pk as qc_url %}
{% icon "info" %}

{% blocktranslate trimmed %}The quality checks have not been run for this data, or have not finished. You can calculate the indices now, as in Climpact for R, but checking the data first is recommended.{% endblocktranslate %}

{% endif %} {% if source == "batch" %} {% translate "The settings start from this station's line in the batch metadata file." as batch_note %} {% include "components/alert.html" with kind="info" title="" message=batch_note %} {% elif source == "job" %}

{% icon "refresh" %}{% translate "These are the settings of your last calculation." %}{% if has_results %} {% translate "Back to the results" %}{% endif %}

{% endif %}
{% csrf_token %} {{ form.index }} {% include "components/form_errors.html" %} {% turnstile %}
{% translate "Calculate with these settings" as top_label %} {% include "components/button.html" with label=top_label type="submit" icon_end="arrow-right" size="lg" describedby="run-time" %}
{% icon "sliders" %}{% translate "Change the settings" %}{% if not form.is_bound and not form.settings_open %}{% translate "Climpact's defaults" %}{% endif %}{% icon "chevron-down" %}

{% translate "Plots" %}

{% include "stations/_indices_unit.html" with group="plot_title" %}

{% translate "Spell lengths" %}

{% translate "How many days in a row count towards these indices." %}

{% include "stations/_indices_unit.html" with group="wsdi_days" %} {% include "stations/_indices_unit.html" with group="csdi_days" %} {% include "stations/_indices_unit.html" with group="rx_days" %} {% include "stations/_indices_unit.html" with group="txtn_days" %}

{% translate "Degree days" %}

{% translate "The base temperatures heating, cooling and growing degree days are counted from." %}

{% include "stations/_indices_unit.html" with group="hdd_base" %} {% include "stations/_indices_unit.html" with group="cdd_base" %} {% include "stations/_indices_unit.html" with group="gdd_base" %}

{% translate "Precipitation and drought" %}

{% include "stations/_indices_unit.html" with group="rnnmm" %} {% include "stations/_indices_unit.html" with group="spei_months" %}

{% translate "Your own index" %}

{% include "stations/_indices_unit.html" with group="custom" %}

{% translate "Heatwave definition" %}

{% translate "Heatwaves are found from the 90th percentiles of TX and TN, and from the excess heat factor (EHF) as defined by Nairn and Fawcett (2013). Climpact uses this EHF definition for every station; there is nothing to choose." %}

{% help_topic "index.hwEHF" %}

{% translate "Files" %}

{% include "components/field.html" with field=form.plots %} {% include "components/field.html" with field=form.zip %} {% include "components/field.html" with field=form.report %}
{% translate "Calculate indices" as run_label %} {% include "components/button.html" with label=run_label type="submit" icon_end="arrow-right" size="lg" %} {% translate "This takes about half a minute for 80 years of data, a few seconds more with plots and the report." %}

{% icon "arrow-left" "" "icon--flip" %} {% translate "Change the data or the station details" %}

{% endblock %}