{% from "_roughness_help.html" import roughness_help %}
{% from "_afm_help.html" import afm_help %}
{% extends "base.html" %}
{% from "_geometry_view.html" import geometry_view %}
{% block title %}New grating{% endblock %}
{% block body %}
Etched grating profiles with optional coating layers Upload a two-column x/z scan and preprocess one period before using it as a profile grating. Accepted formats: .csv, .tsv, .txt, and .dat. Use a text file with two numeric columns (x and z), separated by commas, tabs, semicolons, or spaces. A header row is optional. Stored AFM scan: {{ defaults.afm_source_filename or 'Download scan' }}. Choose a new file to replace it.New grating
Import AFM profile
{% if preview and preview.ok %}Ready{% else %}{{ preview.error if preview else "Preview unavailable" }}{% endif %}
{{ (preview.warnings|default([]))|join(' ') if preview else '' }}