{% load i18n ui help %}{% comment %} Missing data per year (#77): qc/nastatistics, with the climdex rules applied (a year gets no annual value with more than 15 missing days, or a month with more than 3). Context: review, job. {% endcomment %}

{% translate "Missing data" %}

{% help_topic "qc.nastatistics" %}
{% with missing=review.years_missing %} {% if missing %}

{% blocktranslate count counter=missing|length with total=review.years|length trimmed %}{{ counter }} of {{ total }} years has missing days.{% plural %}{{ counter }} of {{ total }} years have missing days.{% endblocktranslate %} {% translate "Years marked “no annual value” have more than 15 missing days, or a month with more than 3, so their annual indices are left missing (monthly indices only for the months concerned)." %}

{% for year in missing %} {% for cell in year.cells %}{% endfor %} {% endfor %}
{% translate "Missing days per year, and months with more than 3 missing days" %}
{% translate "Year" %} {% translate "PR" %} {% translate "TX" %} {% translate "TN" %}
{{ year.year }}{% if cell.days %}{{ cell.days }}{% if cell.months %} {% blocktranslate count counter=cell.months trimmed %}({{ counter }} month){% plural %}({{ counter }} months){% endblocktranslate %}{% endif %}{% if cell.no_annual %}{% translate "no annual value" %}{% endif %}{% else %}{{ cell.days }}{% endif %}

{% translate "Years not listed have no missing days." %}

{% else %}

{% icon "check-circle" %}{% translate "No day is missing in any variable." %}

{% endif %} {% endwith %} {% if review.nastatistics_file %}

{% icon "download" %} {% blocktranslate with name=review.nastatistics_name size=job|file_size:review.nastatistics_file|filesizeformat %}Download {{ name }} ({{ size }}){% endblocktranslate %}

{% endif %}