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

{% translate "Batch processing" %}

{% translate "Calculate the indices for many stations in one run. Load a metadata file that lists the stations, and their station files. Climpact checks every station before anything runs." %}

{% include "components/form_errors.html" %}
{% csrf_token %}

{% translate "Your batch" %}

{% translate "One text file." as metadata_hint %} {% include "components/dropzone.html" with field=form.metadata_file hint=metadata_hint %}

{{ form.metadata_file.help_text }}

{% help_topic "batch.metadata_file" %} {% blocktranslate asvar files_hint with size=max_upload_mb %}Several files or a zip, up to {{ size }} MB in all.{% endblocktranslate %} {% include "components/dropzone.html" with field=form.station_files hint=files_hint multiple=True %}

{{ form.station_files.help_text }}

{% help_topic "batch.station_files" %} {% turnstile %}
{% translate "Check the stations" as load_label %} {% include "components/button.html" with label=load_label type="submit" icon_end="arrow-right" size="lg" %}
{% icon "play" %}

{% translate "Try the sample batch" %}

{% translate "Climpact's sample batch: two stations made from the Sydney Observatory Hill sample data, with their metadata file." %}

{% csrf_token %} {% translate "Use the sample batch" as sample_label %} {% include "components/button.html" with label=sample_label type="submit" variant="secondary" icon="play" %}

{% icon "download" %} {% blocktranslate %}Download the sample metadata file ({{ sample_metadata }}) to use as a template{% endblocktranslate %}

{% icon "clock" %}

{% translate "How long it takes" %}

{% translate "About 10 seconds per station with plots, a few seconds without. The calculation runs in the background: you can leave the page and come back to it from Your calculations." %}

{% include "stations/_retention.html" %}
{% icon "help" %}{% translate "What the metadata file must look like" %}{% icon "chevron-down" %}

{% translate "A text file with a first line of column names, then one line per station, the values separated by spaces or tabs. It is the batch metadata file of Climpact for R, so files prepared for it work here unchanged. Lines starting with # are ignored." %}

station_file	latitude	longitude	wsdin	csdin	Tb_HDD	Tb_CDD	Tb_GDD	rxnday	rnnmm	txtn	SPEI
sydney_observatory_hill_1936-2015.txt	-33.86	151.21	3	3	18	18	10	3	30	2	24
{% for column in columns %}{% endfor %}
{% translate "The columns, in this order" %}
{% translate "Column" %}{% translate "Meaning" %}
{{ column.name }}{{ column.label }}

{% translate "Each station file must be named in the station_file column exactly, including capitals and the extension. The station's name, used for its results folder, is the file name without its extension." %}

{% translate "Station files have the same six-column format as for a single station: year, month, day, precipitation (mm), maximum and minimum temperature (°C), with -99.9 for missing values." %} {% translate "Download an example station file" %}

{% translate "Read the guide to batch processing" %}

{% if recent %}

{% translate "Your recent batches" %}

{% endif %}
{% endblock %}