{% extends "base.html" %} {% load i18n static ui help %} {% comment %} A gridded run's set-up (#85; the GridSetup board, #293): one page of sections divided by hairlines (Files, Variables, What to calculate, Base period, Indices, Output files, and Computing closed) beside the summary panel at the inline end, which is the check and holds the one Start button. As the form changes, htmx posts it to gridded:checks and swaps in the panel (gridded/_summary.html) with the parts of the form that follow it, out of band; without JavaScript the form posts and the page draws the same panel. Before the run starts: "Gridded / New run / set-up" over the run's name as the h1, with Rename, and "Choose other files". Once it has started, the run's Set-up tab (#289): the run's context bar, and the panel describes the results until a setting changes; starting again keeps them until the new ones are ready. Locally, Browse beside the thresholds file and the copy folder opens New run's folder listing under the field (#320, gridded/_browse_field.html). Context from views.setup_context (and views.browse_context while browsing). {% endcomment %} {% block title %}{% blocktranslate with name=run_name %}Set-up: {{ name }}{% endblocktranslate %}{% endblock %} {% block head %}{% endblock %} {% block content %}
{% if run.jobs %} {% include "gridded/_run_bar.html" %} {% else %} {% include "components/context_bar.html" with title=run_name heading=True breadcrumb=setup_breadcrumb title_template="gridded/_setup_title.html" lead_template="" provenance="" provenance_end="" actions="gridded/_setup_actions.html" tabs="" below="" step_previous="" step_next="" flow=True %} {% endif %}
{% csrf_token %} {% if panel.button %}{# The form's default button, first in it (#320): Enter starts, as the Start button does, but opens the folder typed while Browse's listing is open, not a Browse button. #}{% endif %}
{% include "components/form_errors.html" with form=form %}

{% translate "Files" %}

{% include "gridded/_files_table.html" with header=True %}

{% blocktranslate trimmed %}Header opens the file's ncdump -h: dimensions, variables and attributes. Only headers and coordinates are read here; the data are read when the run starts.{% endblocktranslate %}

{% translate "Variables" %}

{% translate "Which variable is which. Climpact guessed from the names, standard names and units; change any that are wrong." %}

{% for row in variable_rows %} {% include "gridded/_variable_cells.html" %} {% endfor %}
{% translate "The variables Climpact needs, the variable chosen for each, its units and how Climpact reads them" %}
{% translate "Climpact needs" %} {% translate "Variable in the files" %} {% translate "Units in the file" %} {% translate "Read as" %} {% translate "Check" %}
{{ row.field }}
{% include "gridded/_units_help.html" %} {% include "gridded/_together.html" %}

{% translate "What to calculate" %}

{% section_help "gridded.task" quiet=True %}
{% for choice in form.task %} {% endfor %}
{% with field=form.task %}{% include "components/field_errors.html" %}{% endwith %}
{{ form.thresholds_source.label }} {% for choice in form.thresholds_source %}{% endfor %}
{% if local %}
{% with field=form.thresholds_path %}{% include "components/field_errors.html" %}{% endwith %} {% translate "for the thresholds file" as browse_for %} {% include "gridded/_browse_field.html" with field=form.thresholds_path %}
{% else %} {% blocktranslate asvar thresholds_hint with size=max_upload_mb %}netCDF, up to {{ size }} MB.{% endblocktranslate %} {% include "components/dropzone.html" with field=form.thresholds_upload hint=thresholds_hint %} {% if form.thresholds_uploaded %}

{% blocktranslate with name=form.thresholds_uploaded %}Loaded: {{ name }}. Choose another file to replace it.{% endblocktranslate %}

{% endif %} {% endif %}

{% translate "Base period" %}

{% include "gridded/_year_field.html" with field=form.base_start %} {% include "gridded/_year_field.html" with field=form.base_end %} {% include "gridded/_timeline.html" %}
{% include "gridded/_coverage.html" %}

{% translate "Indices" %} {% include "gridded/_index_count.html" %}

{% with field=form.indices %}{% include "components/field_errors.html" %}{% endwith %}
{% for group in index_groups %}
{{ group.label }} {{ group.items|length }} {% for item in group.items %} {% endfor %}
{% endfor %}

{% translate "Parameters of the numbered indices" %} {% translate "Climpact for R's gridded defaults" %}

{% section_help "gridded.settings" quiet=True %}
{% for param in params %}
{{ param.field }}{{ param.unit }} {% with field=param.field %}{% include "components/field_errors.html" %}{% endwith %}
{% endfor %}

{% translate "Output files" %}

{% section_help "gridded.output" quiet=True %}
{% with field=form.template %}{% include "components/field_errors.html" %}{% endwith %} {{ form.template }} {% include "gridded/_template_example.html" %}
{% include "components/field.html" with field=form.thresholds_name %}
{% include "components/field.html" with field=form.institution %} {% include "components/field.html" with field=form.institution_id narrow=True %}

{% translate "Written into every file's global attributes, with the base period, Climpact's version and these settings." %}

{% if form.copy_to %}
{% with field=form.copy_to %}{% include "components/field_errors.html" %}{% endwith %} {% translate "for the folder to copy the results to" as browse_for %} {% include "gridded/_browse_field.html" with field=form.copy_to %}
{% endif %}
{% translate "Computing" %} {% include "gridded/_computing_line.html" %}{% icon "chevron-down" %}

{% translate "For large grids, or a computer short of memory." %}

{% section_help "gridded.computing" quiet=True %}
{% if form.workers %}{% include "components/field.html" with field=form.workers narrow=True %}{% endif %} {% include "components/field.html" with field=form.max_values narrow=True %} {% include "components/field.html" with field=form.rechunk %} {% if form.tmp_dir %}{% include "components/field.html" with field=form.tmp_dir %}{% endif %}
{% if not run.jobs %}{% include "gridded/_retention.html" %}{% endif %}

{% translate "Header" %}


    
{% endblock %}