{% extends "base.html" %} {% load i18n static ui help %} {% comment %} New gridded run (#289 moved it here from /gridded/, which lists the runs; #292 redrew it to the GridNew board): a narrow page. Locally, the files on this computer: a folder listing with a checkbox per netCDF file and what its header holds (gridded/_listing.html), paths or patterns one disclosure away, and what is chosen with Read the files. Hosted, the upload with its limit stated first. Then the sample grid. Before a run there is a breadcrumb, no stepper. Context from views.new_context. {% endcomment %} {% block title %}{% translate "New gridded run" %}{% endblock %} {% block content %}
{% include "gridded/_breadcrumb.html" with crumbs="new" %}

{% translate "New gridded run" %}

{% translate "Daily netCDF files of maximum and minimum temperature and precipitation on one grid: one file per variable, one with all three, or a series split by years (joined along time). Climpact reads their headers first; nothing is calculated until you start." %}

{% if local %} {% include "components/form_errors.html" with form=upload_form %}{# an upload posted to gridded:upload anyway #}
{% csrf_token %} {# The form's default button, first in it: Enter in the folder field opens that folder, not the first folder link. #} {% include "components/form_errors.html" with form=paths_form %}

{% translate "Files on this computer" %}

{% include "gridded/_listing.html" %}
{% translate "Paste paths or a pattern instead" %}

{% blocktranslate with count=max_files trimmed %}One path per line; * and ? match many files (up to {{ count }}). Files are read where they are; nothing is copied.{% endblocktranslate %}

{% include "gridded/_chosen.html" %} {% translate "Read the files" as read_label %} {% include "components/button.html" with label=read_label type="submit" name="action" value="use" size="lg" %}
{% else %}
{% csrf_token %} {% include "components/form_errors.html" with form=upload_form %}

{% translate "Upload netCDF files" %}

{% with field=upload_form.files %}
{% include "components/field_errors.html" %}
{% endwith %}

{% blocktranslate trimmed %}Bigger grids: run Climpact on your own computer (pip install climpact-web), which reads files in place with no size limit, or cut the grid to your region first (cdo sellonlatbox).{% endblocktranslate %}

{% turnstile %}
{% translate "No files yet" %} {% translate "Read the files" as read_label %} {% include "components/button.html" with label=read_label type="submit" size="lg" %}
{% endif %}
{% csrf_token %} {% translate "No files to hand?" %} {% blocktranslate with size=sample_size|filesizeformat trimmed %}(3 × 4 cells, 1991–2010, {{ size }}){% endblocktranslate %}
{% endblock %}