# Bring your own script or extend an example

## Choose your model and download its inputs

- **Cloud Icepack:** follow the reviewed Python/JSON walkthrough below.
- **Cloud ISSM:** follow the separate [247-second MATLAB own-script walkthrough](issm_own_script.md). Download its {download}`native ISSM own-script input packet <native-issm-own-script-inputs.zip>` and extract it. The three scripts are under `examples/soft_launch/issm/`; the JSON is under `examples/soft_launch/datasets/`. These four scientific files exactly match the successful submitted ISSM run. This packet is separate from the HDF5/MAT full-field download.

- **Remote Icepack:** use the [HPC Python own-script walkthrough](remote_icepack_own_script.md).
- **Remote ISSM:** use the [HPC MATLAB own-script walkthrough](remote_issm_own_script.md).

The Remote guides use the same scientific source bytes with an explicit dataset alias and your own HPC allocation.

## Reviewed Icepack own-script recording

This 266-second walkthrough shows the actual **New example → Choose script files → Import script files** route, dataset reference, explicit target selection, native launch, results and saved/opened archive. The recorded new example had no editable files; examples with existing files require the explicit replacement option described below. It uses `run.py`, `validate_dataset.py` and `data/icepack-shelf-small-v1.json`.

<link rel="stylesheet" href="videos/cryostack-pilot-player-20261119.css">
<section id="pilot-icepack-own-script-player" data-cryostack-pilot-player data-pilot-cinema="false" role="region" aria-labelledby="pilot-icepack-own-script-title">
  <header class="pilot-heading"><p class="pilot-eyebrow">Watch · pause · try it</p><h2 id="pilot-icepack-own-script-title">Icepack: bring your own Python script</h2><p>Import both source files, reference the JSON input, select run.py and inspect the native output.</p></header>
  <div class="pilot-stage" id="pilot-icepack-own-script-stage"><video id="pilot-icepack-own-script-video" controls playsinline muted preload="metadata" poster="videos/icepack-own-script-figure-01-wide.png" aria-label="Icepack: bring your own Python script guided tutorial"><source src="videos/icepack-own-script-wide.mp4" type="video/mp4"><track kind="captions" src="videos/icepack-own-script-wide.vtt" srclang="en" label="English captions"><a href="videos/icepack-own-script-wide.mp4">Download the tutorial video</a>.</video></div>
  <div class="pilot-controls"><button type="button" data-pilot-guided-start data-pilot-enhancement class="pilot-primary" aria-pressed="false" hidden>Start guided walkthrough</button><label class="pilot-guided-option" data-pilot-enhancement hidden><input type="checkbox" data-pilot-guided-toggle> Pause after each step</label><button type="button" data-pilot-try data-pilot-enhancement hidden>Pause and try this step</button><button type="button" data-pilot-cinema data-pilot-enhancement aria-pressed="false" aria-expanded="false" aria-controls="pilot-icepack-own-script-player" hidden>Cinema view</button><a class="pilot-action" href="https://cryostack.eas.gatech.edu/cryolauncher/" target="_blank" rel="noopener noreferrer">Open CryoLauncher ↗</a><a class="pilot-action" href="https://cryostack.eas.gatech.edu/applications/icesheets/soft_launch/videos/native-icepack-own-script-inputs.zip">Download inputs (.zip)</a><span class="pilot-step-count" data-pilot-count>15 chapters</span></div>
  <p class="pilot-guided-help" data-pilot-guided-help hidden>Guided mode pauses after each recorded confirmation. Try the action, then Continue. Mark the checklist yourself after doing each step.</p>
  <div class="pilot-learning"><nav class="pilot-chapters" aria-label="Icepack: bring your own Python script chapters"><h3>Chapters</h3><ol><li><a data-pilot-chapter href="#pilot-icepack-own-script-step-00" aria-label="Go to 00:00: Your goal: run your own Icepack script"><span class="pilot-time">00:00</span><span>Your goal: run your own Icepack script</span></a></li><li><a data-pilot-chapter href="#pilot-icepack-own-script-step-01" aria-label="Go to 00:24: 1. Open an Advanced workspace"><span class="pilot-time">00:24</span><span>1. Open an Advanced workspace</span></a></li><li><a data-pilot-chapter href="#pilot-icepack-own-script-step-02" aria-label="Go to 00:33: 2. Create your workspace example"><span class="pilot-time">00:33</span><span>2. Create your workspace example</span></a></li><li><a data-pilot-chapter href="#pilot-icepack-own-script-step-04" aria-label="Go to 00:59: 3. Select both Python files"><span class="pilot-time">00:59</span><span>3. Select both Python files</span></a></li><li><a data-pilot-chapter href="#pilot-icepack-own-script-step-06" aria-label="Go to 01:20: 4. Import the scripts"><span class="pilot-time">01:20</span><span>4. Import the scripts</span></a></li><li><a data-pilot-chapter href="#pilot-icepack-own-script-step-08" aria-label="Go to 01:41: 5. Use run.py as the entry point"><span class="pilot-time">01:41</span><span>5. Use run.py as the entry point</span></a></li><li><a data-pilot-chapter href="#pilot-icepack-own-script-step-09" aria-label="Go to 01:51: 6. Select the JSON configuration"><span class="pilot-time">01:51</span><span>6. Select the JSON configuration</span></a></li><li><a data-pilot-chapter href="#pilot-icepack-own-script-step-12" aria-label="Go to 02:23: 7. Understand the short experiment"><span class="pilot-time">02:23</span><span>7. Understand the short experiment</span></a></li><li><a data-pilot-chapter href="#pilot-icepack-own-script-step-13" aria-label="Go to 02:35: 8. Review the cloud configuration"><span class="pilot-time">02:35</span><span>8. Review the cloud configuration</span></a></li><li><a data-pilot-chapter href="#pilot-icepack-own-script-step-16" aria-label="Go to 03:02: 9. Open the completed native results"><span class="pilot-time">03:02</span><span>9. Open the completed native results</span></a></li><li><a data-pilot-chapter href="#pilot-icepack-own-script-step-17" aria-label="Go to 03:11: 10. Render a saved field"><span class="pilot-time">03:11</span><span>10. Render a saved field</span></a></li><li><a data-pilot-chapter href="#pilot-icepack-own-script-step-19" aria-label="Go to 03:30: 11. Inspect the final thickness"><span class="pilot-time">03:30</span><span>11. Inspect the final thickness</span></a></li><li><a data-pilot-chapter href="#pilot-icepack-own-script-step-20" aria-label="Go to 03:42: 12. Inspect speed and direction"><span class="pilot-time">03:42</span><span>12. Inspect speed and direction</span></a></li><li><a data-pilot-chapter href="#pilot-icepack-own-script-step-21" aria-label="Go to 03:54: 13. Save your result archive"><span class="pilot-time">03:54</span><span>13. Save your result archive</span></a></li><li><a data-pilot-chapter href="#pilot-icepack-own-script-step-23" aria-label="Go to 04:12: What this example establishes"><span class="pilot-time">04:12</span><span>What this example establishes</span></a></li></ol></nav><div class="pilot-instructions" data-pilot-instructions><p class="pilot-check-progress" data-pilot-enhancement hidden><output data-pilot-progress aria-live="polite">0 of 15 steps checked</output> · notes stay in this page visit</p><article class="pilot-step" data-pilot-step id="pilot-icepack-own-script-step-00"><h3 id="pilot-icepack-own-script-step-00-title" tabindex="-1">Your goal: run your own Icepack script</h3><p><strong>Do this:</strong></p><p>Run a short Python shelf experiment, inspect its fields and save a complete results ZIP.</p><p>Have run.py, validate_dataset.py and icepack-shelf-small-v1.json ready.</p><p>Open CryoLauncher and sign in. Use an approved connected cloud account with its resources prepared.</p><p>The following steps select this tutorial’s model and example.</p><p><strong>Why:</strong> Keep the source inputs, inspect native fields, and save a complete result package. Your workspace keeps scripts, dataset references and results together.</p><p><strong>Look for:</strong> Your workspace keeps scripts, datasets, run history and results together.</p><p class="pilot-note">Start with your approved cloud account connected and its resources prepared. Shared application orientation; the case-specific configuration follows.</p><label class="pilot-check" for="pilot-icepack-own-script-step-00-check"><input id="pilot-icepack-own-script-step-00-check" type="checkbox" data-pilot-check aria-labelledby="pilot-icepack-own-script-step-00-title pilot-icepack-own-script-step-00-label"><span id="pilot-icepack-own-script-step-00-label">I’ve checked this step</span></label></article><article class="pilot-step" data-pilot-step id="pilot-icepack-own-script-step-01"><h3 id="pilot-icepack-own-script-step-01-title" tabindex="-1">1. Open an Advanced workspace</h3><p><strong>Do this:</strong></p><p>Choose Cloud → Advanced → Icepack.</p><p>You will keep this custom experiment in its own editable workspace.</p><p><strong>Why:</strong> Choose the intended interface, model and example before editing or launching a run.</p><p><strong>Look for:</strong> Use a separate editable workspace for your script.</p><p class="pilot-note">This short 10 km shelf experiment is separate from the canonical spin-up example.</p><label class="pilot-check" for="pilot-icepack-own-script-step-01-check"><input id="pilot-icepack-own-script-step-01-check" type="checkbox" data-pilot-check aria-labelledby="pilot-icepack-own-script-step-01-title pilot-icepack-own-script-step-01-label"><span id="pilot-icepack-own-script-step-01-label">I’ve checked this step</span></label></article><article class="pilot-step" data-pilot-step id="pilot-icepack-own-script-step-02"><h3 id="pilot-icepack-own-script-step-02-title" tabindex="-1">2. Create your workspace example</h3><p><strong>Do this:</strong></p><p>Enter a new name, then choose New example.</p><p>Enter a new name and choose New example.</p><p>Wait for the created-workspace confirmation and empty file list.</p><p><strong>Why:</strong> An owned example stores your files separately from the supplied application source.</p><p><strong>Look for:</strong> This example is pilot-icepack-script-1118.</p><p class="pilot-note">You will create a separate editable workspace. This example is named pilot-icepack-script-1118.</p><label class="pilot-check" for="pilot-icepack-own-script-step-02-check"><input id="pilot-icepack-own-script-step-02-check" type="checkbox" data-pilot-check aria-labelledby="pilot-icepack-own-script-step-02-title pilot-icepack-own-script-step-02-label"><span id="pilot-icepack-own-script-step-02-label">I’ve checked this step</span></label></article><article class="pilot-step" data-pilot-step id="pilot-icepack-own-script-step-04"><h3 id="pilot-icepack-own-script-step-04-title" tabindex="-1">3. Select both Python files</h3><p><strong>Do this:</strong></p><p>Choose script files. In your file picker select run.py and validate_dataset.py, then choose Open.</p><p>The script picker changes from zero to two selected files.</p><p>You are ready to import the script and its validator.</p><p><strong>Why:</strong> Selecting local files prepares them for import; importing saves them in this example.</p><p><strong>Look for:</strong> Selected files are not saved until you import them.</p><p class="pilot-note">Keep both Python files in the same example. Files are selected first; importing saves them.</p><label class="pilot-check" for="pilot-icepack-own-script-step-04-check"><input id="pilot-icepack-own-script-step-04-check" type="checkbox" data-pilot-check aria-labelledby="pilot-icepack-own-script-step-04-title pilot-icepack-own-script-step-04-label"><span id="pilot-icepack-own-script-step-04-label">I’ve checked this step</span></label></article><article class="pilot-step" data-pilot-step id="pilot-icepack-own-script-step-06"><h3 id="pilot-icepack-own-script-step-06-title" tabindex="-1">4. Import the scripts</h3><p><strong>Do this:</strong></p><p>Choose Import script files.</p><p>Wait for Imported run.py, validate_dataset.py. Files are saved.</p><p>The file selector now contains the runnable Python script.</p><p><strong>Why:</strong> Import saves the selected source files in this example; it does not launch the model.</p><p><strong>Look for:</strong> The file selector now contains the runnable script.</p><p class="pilot-note">If your example already contains run.py, enable Replace existing script files first. Replace only the existing files you intend to update.</p><label class="pilot-check" for="pilot-icepack-own-script-step-06-check"><input id="pilot-icepack-own-script-step-06-check" type="checkbox" data-pilot-check aria-labelledby="pilot-icepack-own-script-step-06-title pilot-icepack-own-script-step-06-label"><span id="pilot-icepack-own-script-step-06-label">I’ve checked this step</span></label></article><article class="pilot-step" data-pilot-step id="pilot-icepack-own-script-step-08"><h3 id="pilot-icepack-own-script-step-08-title" tabindex="-1">5. Use run.py as the entry point</h3><p><strong>Do this:</strong></p><p>Set Run target to run.py.</p><p>The validator checks JSON schema, model, units and bounds before the scientific libraries are imported.</p><p><strong>Why:</strong> Run target selects the entry script; other imported files can act as helpers.</p><p><strong>Look for:</strong> The validator checks the JSON before loading the scientific libraries.</p><p class="pilot-note">Importing files does not launch a run.</p><label class="pilot-check" for="pilot-icepack-own-script-step-08-check"><input id="pilot-icepack-own-script-step-08-check" type="checkbox" data-pilot-check aria-labelledby="pilot-icepack-own-script-step-08-title pilot-icepack-own-script-step-08-label"><span id="pilot-icepack-own-script-step-08-label">I’ve checked this step</span></label></article><article class="pilot-step" data-pilot-step id="pilot-icepack-own-script-step-09"><h3 id="pilot-icepack-own-script-step-09-title" tabindex="-1">6. Select the JSON configuration</h3><p><strong>Do this:</strong></p><p>In Datasets select icepack-shelf-small-v1.json.</p><p>If it is not listed yet, add it with Choose data files → Upload first.</p><p>Choose Reference in example.</p><p>Read the reference confirmation.</p><p>At launch, the JSON is copied to data/icepack-shelf-small-v1.json for the script to read.</p><p><strong>Why:</strong> Select the dataset that this script will reference and read at launch. A reference stages this dataset under data/ when the selected example launches.</p><p><strong>Look for:</strong> The script reads data/icepack-shelf-small-v1.json.</p><p class="pilot-note">This workflow uses JSON configuration; gridded initial fields have their own tutorial. The script reads data/icepack-shelf-small-v1.json. The reference belongs to this workspace example.</p><label class="pilot-check" for="pilot-icepack-own-script-step-09-check"><input id="pilot-icepack-own-script-step-09-check" type="checkbox" data-pilot-check aria-labelledby="pilot-icepack-own-script-step-09-title pilot-icepack-own-script-step-09-label"><span id="pilot-icepack-own-script-step-09-label">I’ve checked this step</span></label></article><article class="pilot-step" data-pilot-step id="pilot-icepack-own-script-step-12"><h3 id="pilot-icepack-own-script-step-12-title" tabindex="-1">7. Understand the short experiment</h3><p><strong>Do this:</strong></p><p>The domain is 10 km × 10 km with 4 × 4 subdivisions and CG1 thickness/velocity.</p><p>The script runs a diagnostic solve, one 0.01-year step, then another diagnostic solve.</p><p><strong>Why:</strong> The unchanged saved figure preserves the complete map, axes and colour scale.</p><p><strong>Look for:</strong> One 0.01-year step; temperature 253.15 K; zero accumulation.</p><p class="pilot-note">Temperature is 253.15 K; accumulation is zero.</p><label class="pilot-check" for="pilot-icepack-own-script-step-12-check"><input id="pilot-icepack-own-script-step-12-check" type="checkbox" data-pilot-check aria-labelledby="pilot-icepack-own-script-step-12-title pilot-icepack-own-script-step-12-label"><span id="pilot-icepack-own-script-step-12-label">I’ve checked this step</span></label></article><article class="pilot-step" data-pilot-step id="pilot-icepack-own-script-step-13"><h3 id="pilot-icepack-own-script-step-13-title" tabindex="-1">8. Review the cloud configuration</h3><p><strong>Do this:</strong></p><p>Choose Review &amp; Launch. Check the model, workspace example, run.py target and resources.</p><p>Choose Launch cloud run when the readiness checks are ready.</p><p>This confirmation starts the run.</p><p>The new run card names pilot-icepack-script-1118.</p><p>Allow it to finish, then open View results.</p><p><strong>Why:</strong> Review confirms the intended model, source, resources and charges before submission. This confirmation stages the reviewed inputs and starts a paid cloud job. Submission, queue/startup and native model execution are separate stages.</p><p><strong>Look for:</strong> The native job used 2 vCPU and 8 GiB.</p><p class="pilot-note">You should be reviewing the custom script example. Control guide; the following card belongs to this tutorial’s original native run. The native job used 2 vCPU and 8 GiB.</p><label class="pilot-check" for="pilot-icepack-own-script-step-13-check"><input id="pilot-icepack-own-script-step-13-check" type="checkbox" data-pilot-check aria-labelledby="pilot-icepack-own-script-step-13-title pilot-icepack-own-script-step-13-label"><span id="pilot-icepack-own-script-step-13-label">I’ve checked this step</span></label></article><article class="pilot-step" data-pilot-step id="pilot-icepack-own-script-step-16"><h3 id="pilot-icepack-own-script-step-16-title" tabindex="-1">9. Open the completed native results</h3><p><strong>Do this:</strong></p><p>The job completed successfully with exit code 0.</p><p>Open Results for this custom script run.</p><p><strong>Why:</strong> A completed native job and its recorded provenance provide execution evidence.</p><p><strong>Look for:</strong> Submission → start: 220.087 s; task: 48.192 s; script: 15.6633 s.</p><p class="pilot-note">Submission → Batch start: 220.087 s; task: 48.192 s; script: 15.6633 s.</p><label class="pilot-check" for="pilot-icepack-own-script-step-16-check"><input id="pilot-icepack-own-script-step-16-check" type="checkbox" data-pilot-check aria-labelledby="pilot-icepack-own-script-step-16-title pilot-icepack-own-script-step-16-label"><span id="pilot-icepack-own-script-step-16-label">I’ve checked this step</span></label></article><article class="pilot-step" data-pilot-step id="pilot-icepack-own-script-step-17"><h3 id="pilot-icepack-own-script-step-17-title" tabindex="-1">10. Render a saved field</h3><p><strong>Do this:</strong></p><p>Results opens with an initial preview. Select a field and use Render when needed.</p><p>This native export has 25 vertices and 32 triangles.</p><p>Thickness and velocity are finite CG1 fields; accumulation is zero.</p><p><strong>Why:</strong> The solution, field name, units and mesh counts identify what you are viewing.</p><p><strong>Look for:</strong> 25 vertices / 32 triangles; finite CG1 thickness and velocity.</p><p class="pilot-note">Use the displayed field name and units. Velocity is in metres/year; thickness is in metres.</p><label class="pilot-check" for="pilot-icepack-own-script-step-17-check"><input id="pilot-icepack-own-script-step-17-check" type="checkbox" data-pilot-check aria-labelledby="pilot-icepack-own-script-step-17-title pilot-icepack-own-script-step-17-label"><span id="pilot-icepack-own-script-step-17-label">I’ve checked this step</span></label></article><article class="pilot-step" data-pilot-step id="pilot-icepack-own-script-step-19"><h3 id="pilot-icepack-own-script-step-19-title" tabindex="-1">11. Inspect the final thickness</h3><p><strong>Do this:</strong></p><p>Open the full saved thickness figure.</p><p>Thickness is 300.023425–499.981468 m, with area-weighted mean 400.006923 m.</p><p><strong>Why:</strong> The unchanged saved figure preserves the complete map, axes and colour scale.</p><p><strong>Look for:</strong> Area-weighted mean thickness: 400.006923 m.</p><p class="pilot-note">Keep the original scientific PNG with your results.</p><label class="pilot-check" for="pilot-icepack-own-script-step-19-check"><input id="pilot-icepack-own-script-step-19-check" type="checkbox" data-pilot-check aria-labelledby="pilot-icepack-own-script-step-19-title pilot-icepack-own-script-step-19-label"><span id="pilot-icepack-own-script-step-19-label">I’ve checked this step</span></label></article><article class="pilot-step" data-pilot-step id="pilot-icepack-own-script-step-20"><h3 id="pilot-icepack-own-script-step-20-title" tabindex="-1">12. Inspect speed and direction</h3><p><strong>Do this:</strong></p><p>Colour shows speed and arrows show direction.</p><p>The domain RMS speed is 130.141951 m/year; independent field integration agrees with the script metric.</p><p><strong>Why:</strong> The unchanged saved figure preserves the complete map, axes and colour scale.</p><p><strong>Look for:</strong> Domain RMS speed: 130.141951 m/year; arrows show direction.</p><p class="pilot-note">The figure is the unchanged downloaded archive member.</p><label class="pilot-check" for="pilot-icepack-own-script-step-20-check"><input id="pilot-icepack-own-script-step-20-check" type="checkbox" data-pilot-check aria-labelledby="pilot-icepack-own-script-step-20-title pilot-icepack-own-script-step-20-label"><span id="pilot-icepack-own-script-step-20-label">I’ve checked this step</span></label></article><article class="pilot-step" data-pilot-step id="pilot-icepack-own-script-step-21"><h3 id="pilot-icepack-own-script-step-21-title" tabindex="-1">13. Save your result archive</h3><p><strong>Do this:</strong></p><p>Choose Download results, then open the fresh HTTPS link.</p><p>Save the 11-member ZIP containing fields, mesh, figures, metrics and runtime/RNG provenance.</p><p><strong>Why:</strong> The archive keeps this run’s numeric outputs, figures and provenance together.</p><p><strong>Look for:</strong> Keep it with your script, validator and JSON.</p><p class="pilot-note">Keep the ZIP with your script, validator and JSON. Use the current run’s generated link.</p><label class="pilot-check" for="pilot-icepack-own-script-step-21-check"><input id="pilot-icepack-own-script-step-21-check" type="checkbox" data-pilot-check aria-labelledby="pilot-icepack-own-script-step-21-title pilot-icepack-own-script-step-21-label"><span id="pilot-icepack-own-script-step-21-label">I’ve checked this step</span></label></article><article class="pilot-step" data-pilot-step id="pilot-icepack-own-script-step-23"><h3 id="pilot-icepack-own-script-step-23-title" tabindex="-1">What this example establishes</h3><p><strong>Do this:</strong></p><p>The initial velocity guess rises from 100 to 200 m/year; 200 is not an imposed outflow speed.</p><p>This one-step fixture has no damage field or transient time axis. Its retained output checks are separate from an independent native repeat or accuracy assessment.</p><p><strong>Why:</strong> Keep the scientific input definitions and numerical qualifications with the result.</p><p><strong>Look for:</strong> The 100→200 m/year initial guess is not an imposed outflow speed.</p><p class="pilot-note">The supplied script, validator and JSON were bound to the accepted native run.</p><label class="pilot-check" for="pilot-icepack-own-script-step-23-check"><input id="pilot-icepack-own-script-step-23-check" type="checkbox" data-pilot-check aria-labelledby="pilot-icepack-own-script-step-23-title pilot-icepack-own-script-step-23-label"><span id="pilot-icepack-own-script-step-23-label">I’ve checked this step</span></label></article><div class="pilot-step-nav" data-pilot-enhancement hidden><button type="button" data-pilot-prev>Previous step</button><button type="button" data-pilot-next>Next step</button><button type="button" class="pilot-primary" data-pilot-continue hidden>Continue to next step</button></div></div></div>
  <p class="pilot-footnote">Extract examples/soft_launch/icepack/run.py and validate_dataset.py. Upload the JSON from examples/soft_launch/datasets/ and reference data/icepack-shelf-small-v1.json. <a href="videos/icepack-own-script-wide.vtt">Read captions</a> · <a href="videos/icepack-own-script-wide.mp4">Download video</a></p>
  <p class="pilot-status" data-pilot-status role="status" aria-live="polite"></p><script type="application/json" data-pilot-metadata>{"schema": "cryostack.pilot.interactive-tutorial.v1", "title": "Icepack: bring your own Python script", "video_sha256": "eb69c8d172755e6170af55314afc13b5665c82b0ce9b4fac015db1e222e009ed", "duration_seconds": 266.0, "source_edit_receipt_sha256": "71d4bbc26f824760dfff0913f193c42d1039c3589455589ba8f107144e32f1da", "public_scene_chapters_sha256": "68385e703454d7765ce62e22e9c38fb2dc5dcc79b1086b828b40183ae9b7df94", "chapter_timing": "Receipt-bound logical chapters include control cue, actual transition and confirmation; durations are video times.", "steps": [{"id": "step-00", "logical_id": "orientation", "title": "Your goal: run your own Icepack script", "start": 0.0, "end": 24.0, "instructions": ["Run a short Python shelf experiment, inspect its fields and save a complete results ZIP.", "Have run.py, validate_dataset.py and icepack-shelf-small-v1.json ready.", "Open CryoLauncher and sign in. Use an approved connected cloud account with its resources prepared.", "The following steps select this tutorial\u2019s model and example."], "why": "Keep the source inputs, inspect native fields, and save a complete result package. Your workspace keeps scripts, dataset references and results together.", "expected": "Your workspace keeps scripts, datasets, run history and results together.", "note": "Start with your approved cloud account connected and its resources prepared. Shared application orientation; the case-specific configuration follows.", "pauseAfter": false, "source_scene_ids": ["step-00", "start"]}, {"id": "step-01", "logical_id": "step-1", "title": "1. Open an Advanced workspace", "start": 24.0, "end": 33.0, "instructions": ["Choose Cloud \u2192 Advanced \u2192 Icepack.", "You will keep this custom experiment in its own editable workspace."], "why": "Choose the intended interface, model and example before editing or launching a run.", "expected": "Use a separate editable workspace for your script.", "note": "This short 10 km shelf experiment is separate from the canonical spin-up example.", "pauseAfter": true, "source_scene_ids": ["step-01"]}, {"id": "step-02", "logical_id": "step-2", "title": "2. Create your workspace example", "start": 33.0, "end": 59.0, "instructions": ["Enter a new name, then choose New example.", "Enter a new name and choose New example.", "Wait for the created-workspace confirmation and empty file list."], "why": "An owned example stores your files separately from the supplied application source.", "expected": "This example is pilot-icepack-script-1118.", "note": "You will create a separate editable workspace. This example is named pilot-icepack-script-1118.", "pauseAfter": true, "source_scene_ids": ["step-02", "step-03"]}, {"id": "step-04", "logical_id": "step-3", "title": "3. Select both Python files", "start": 59.0, "end": 80.0, "instructions": ["Choose script files. In your file picker select run.py and validate_dataset.py, then choose Open.", "The script picker changes from zero to two selected files.", "You are ready to import the script and its validator."], "why": "Selecting local files prepares them for import; importing saves them in this example.", "expected": "Selected files are not saved until you import them.", "note": "Keep both Python files in the same example. Files are selected first; importing saves them.", "pauseAfter": true, "source_scene_ids": ["step-04", "step-05"]}, {"id": "step-06", "logical_id": "step-4", "title": "4. Import the scripts", "start": 80.0, "end": 101.0, "instructions": ["Choose Import script files.", "Wait for Imported run.py, validate_dataset.py. Files are saved.", "The file selector now contains the runnable Python script."], "why": "Import saves the selected source files in this example; it does not launch the model.", "expected": "The file selector now contains the runnable script.", "note": "If your example already contains run.py, enable Replace existing script files first. Replace only the existing files you intend to update.", "pauseAfter": true, "source_scene_ids": ["step-06", "step-07"]}, {"id": "step-08", "logical_id": "step-5", "title": "5. Use run.py as the entry point", "start": 101.0, "end": 111.0, "instructions": ["Set Run target to run.py.", "The validator checks JSON schema, model, units and bounds before the scientific libraries are imported."], "why": "Run target selects the entry script; other imported files can act as helpers.", "expected": "The validator checks the JSON before loading the scientific libraries.", "note": "Importing files does not launch a run.", "pauseAfter": true, "source_scene_ids": ["step-08"]}, {"id": "step-09", "logical_id": "step-6", "title": "6. Select the JSON configuration", "start": 111.0, "end": 143.0, "instructions": ["In Datasets select icepack-shelf-small-v1.json.", "If it is not listed yet, add it with Choose data files \u2192 Upload first.", "Choose Reference in example.", "Read the reference confirmation.", "At launch, the JSON is copied to data/icepack-shelf-small-v1.json for the script to read."], "why": "Select the dataset that this script will reference and read at launch. A reference stages this dataset under data/ when the selected example launches.", "expected": "The script reads data/icepack-shelf-small-v1.json.", "note": "This workflow uses JSON configuration; gridded initial fields have their own tutorial. The script reads data/icepack-shelf-small-v1.json. The reference belongs to this workspace example.", "pauseAfter": true, "source_scene_ids": ["step-09", "step-10", "step-11"]}, {"id": "step-12", "logical_id": "step-7", "title": "7. Understand the short experiment", "start": 143.0, "end": 155.0, "instructions": ["The domain is 10 km \u00d7 10 km with 4 \u00d7 4 subdivisions and CG1 thickness/velocity.", "The script runs a diagnostic solve, one 0.01-year step, then another diagnostic solve."], "why": "The unchanged saved figure preserves the complete map, axes and colour scale.", "expected": "One 0.01-year step; temperature 253.15 K; zero accumulation.", "note": "Temperature is 253.15 K; accumulation is zero.", "pauseAfter": true, "source_scene_ids": ["step-12"]}, {"id": "step-13", "logical_id": "step-8", "title": "8. Review the cloud configuration", "start": 155.0, "end": 182.0, "instructions": ["Choose Review \u0026 Launch. Check the model, workspace example, run.py target and resources.", "Choose Launch cloud run when the readiness checks are ready.", "This confirmation starts the run.", "The new run card names pilot-icepack-script-1118.", "Allow it to finish, then open View results."], "why": "Review confirms the intended model, source, resources and charges before submission. This confirmation stages the reviewed inputs and starts a paid cloud job. Submission, queue/startup and native model execution are separate stages.", "expected": "The native job used 2 vCPU and 8 GiB.", "note": "You should be reviewing the custom script example. Control guide; the following card belongs to this tutorial\u2019s original native run. The native job used 2 vCPU and 8 GiB.", "pauseAfter": true, "source_scene_ids": ["step-13", "step-14", "step-15"]}, {"id": "step-16", "logical_id": "step-9", "title": "9. Open the completed native results", "start": 182.0, "end": 191.0, "instructions": ["The job completed successfully with exit code 0.", "Open Results for this custom script run."], "why": "A completed native job and its recorded provenance provide execution evidence.", "expected": "Submission \u2192 start: 220.087 s; task: 48.192 s; script: 15.6633 s.", "note": "Submission \u2192 Batch start: 220.087 s; task: 48.192 s; script: 15.6633 s.", "pauseAfter": true, "source_scene_ids": ["step-16"]}, {"id": "step-17", "logical_id": "step-10", "title": "10. Render a saved field", "start": 191.0, "end": 210.0, "instructions": ["Results opens with an initial preview. Select a field and use Render when needed.", "This native export has 25 vertices and 32 triangles.", "Thickness and velocity are finite CG1 fields; accumulation is zero."], "why": "The solution, field name, units and mesh counts identify what you are viewing.", "expected": "25 vertices / 32 triangles; finite CG1 thickness and velocity.", "note": "Use the displayed field name and units. Velocity is in metres/year; thickness is in metres.", "pauseAfter": true, "source_scene_ids": ["step-17", "step-18"]}, {"id": "step-19", "logical_id": "step-11", "title": "11. Inspect the final thickness", "start": 210.0, "end": 222.0, "instructions": ["Open the full saved thickness figure.", "Thickness is 300.023425\u2013499.981468 m, with area-weighted mean 400.006923 m."], "why": "The unchanged saved figure preserves the complete map, axes and colour scale.", "expected": "Area-weighted mean thickness: 400.006923 m.", "note": "Keep the original scientific PNG with your results.", "pauseAfter": true, "source_scene_ids": ["step-19"]}, {"id": "step-20", "logical_id": "step-12", "title": "12. Inspect speed and direction", "start": 222.0, "end": 234.0, "instructions": ["Colour shows speed and arrows show direction.", "The domain RMS speed is 130.141951 m/year; independent field integration agrees with the script metric."], "why": "The unchanged saved figure preserves the complete map, axes and colour scale.", "expected": "Domain RMS speed: 130.141951 m/year; arrows show direction.", "note": "The figure is the unchanged downloaded archive member.", "pauseAfter": true, "source_scene_ids": ["step-20"]}, {"id": "step-21", "logical_id": "step-13", "title": "13. Save your result archive", "start": 234.0, "end": 252.0, "instructions": ["Choose Download results, then open the fresh HTTPS link.", "Save the 11-member ZIP containing fields, mesh, figures, metrics and runtime/RNG provenance."], "why": "The archive keeps this run\u2019s numeric outputs, figures and provenance together.", "expected": "Keep it with your script, validator and JSON.", "note": "Keep the ZIP with your script, validator and JSON. Use the current run\u2019s generated link.", "pauseAfter": true, "source_scene_ids": ["step-21", "step-22"]}, {"id": "step-23", "logical_id": "step-Keep", "title": "What this example establishes", "start": 252.0, "end": 266.0, "instructions": ["The initial velocity guess rises from 100 to 200 m/year; 200 is not an imposed outflow speed.", "This one-step fixture has no damage field or transient time axis. Its retained output checks are separate from an independent native repeat or accuracy assessment."], "why": "Keep the scientific input definitions and numerical qualifications with the result.", "expected": "The 100\u2192200 m/year initial guess is not an imposed outflow speed.", "note": "The supplied script, validator and JSON were bound to the accepted native run.", "pauseAfter": true, "source_scene_ids": ["step-23"]}]}</script>
</section>
<script defer src="videos/cryostack-pilot-player-20261119.js"></script>
<p><a href="videos/icepack-own-script-wide-manifest.json">Wide recording receipt</a> · <a href="videos/icepack-own-script-wide-logical-chapters.json">Step metadata</a></p>


<a href="videos/icepack-own-script-wide.mp4">Video (MP4)</a> · <a href="videos/icepack-own-script-wide.vtt">Captions (VTT)</a> · <a href="videos/icepack-own-script-run-manifest.json">Sanitized native run manifest</a> · <a href="videos/icepack-own-script-video-manifest.json">Video and archive receipt</a>

The synthetic case is a **10 km × 10 km** shelf with a structured 4 × 4 subdivision mesh (25 vertices, 32 triangles), CG1 fields, temperature **253.15 K**, zero accumulation and no damage physics. The initial thickness decreases from 500 to 300 m along the flow direction. The initial velocity guess increases from 100 to 200 m/year; 200 m/year is not a prescribed outflow speed. The script takes one **0.01-year** prognostic step between diagnostic velocity solves.

The saved fields are finite, with thickness **300.023425–499.981468 m**, area-weighted mean thickness **400.006923 m**, and domain RMS speed **130.141951 m/year**. Independent integration of the exported triangle fields matches the script metrics. The downloaded archive is 191,386 bytes with 11 CRC-valid members; its SHA-256 is `77717148aa3087180b29f1396e339c4befcde0e313b6ac9bc0c964f3eedc6185`. Submitted script/helper/data hashes match the prepared files and predate submission. The actual image is digest-pinned, and runtime versions/global RNG-state hashes are retained in the sanitized manifest. Original seeds and library-owned generators remain unknown; no repeated-run or PC/AWS agreement is claimed.

<a href="videos/icepack-own-script-thickness.png"><img src="videos/icepack-own-script-thickness.png" alt="Native Icepack own-script thickness in meters over a 10 km square shelf" style="max-width:100%;height:auto"></a>
<a href="videos/icepack-own-script-velocity.png"><img src="videos/icepack-own-script-velocity.png" alt="Native Icepack own-script speed in meters per year over a 10 km square shelf" style="max-width:100%;height:auto"></a>

These two full figures are exact files from the accepted archive. Submission to Batch start took **220.087 s**; the Batch task took **48.192 s**. The script's reported interval was **15.663 s**. Edited recording pauses are separate from those measured intervals. This case establishes this bounded script/input workflow, not arbitrary dependency or user-script compatibility. The separate [ISSM own-script guide](issm_own_script.md) now has its own reviewed native run, 247-second video and exact four-file download.

## Steps

1. Keep a local copy of your original example and expected output. Record the scientific software versions and input checksums. Remove credentials and machine-specific absolute paths.
2. In **Advanced**, open **Editor**. Enter a new example name in **name for new / rename / save-as / clone**, then click **New example**. To extend an application example, enter a new name and click **Clone to My Workspace**. Keep the application copy unchanged.
3. Use **Choose script files**, then **Import script files**, to save your UTF-8 source and helper files into that owned example. Enable **Replace existing script files** only when replacing files already present, such as seeded `run.py` or `runme.m`; otherwise existing files are preserved and import reports the conflict. Each imported file must be at most 2 MiB and use one of `.cfg`, `.ini`, `.json`, `.m`, `.md`, `.par`, `.py`, `.sh`, `.toml`, `.txt`, `.yaml` or `.yml`. Notebooks, binary files, folders, path-bearing names and symlinks are not script imports. Confirm the saved filenames, then explicitly select `run.py` or `runme.m` as **Run target**. Importing neither selects that target nor starts a run. You can still select an existing file for manual edits and **Save**, or use **New file** for an absent filename.
4. Upload reusable inputs through Datasets and reference them. Use relative `data/<filename>` paths in the script.
5. Make the script noninteractive: no prompts, GUI windows, internet downloads, or dependencies absent from the tested image. Write output into `outputs/`.
6. For Icepack, retain final Firedrake fields such as `h` and `u` in module globals so the structured exporter can discover them. A script hiding all state inside a function may finish with figures but no structured fields.
7. For ISSM, retain the solved `md` model for the result-export step and write any additional diagnostics explicitly.
8. Run locally in the matching model environment, then run the same saved files on AWS. Compare with [the reproducibility tutorial](comparison.md).
9. Change one parameter, save, and run again. Confirm both the run provenance and result respond to the change.

Do not compare the two models to one another as an equality test: the packet deliberately uses different native discretizations and solves.

## Expected outcome and evidence

A successful submission has a job ID. A successful model run finishes without a solver error. A complete tutorial also has retrievable logs, nonempty results, a readable figure, and a downloaded archive. Record all of these; a green job status alone is insufficient.

The earlier rehearsal used editor-created files and a separate completed job. Its timings and screenshot are historical evidence; the reviewed recording and exact artifact checks above describe the new imported-script run. Validate each new dependency and scientific comparison separately.

**Screenshot slot:** record the script creation/save controls with the file name
visible. Keep license fields, account identifiers and private paths off-screen.

**Recording:** see the [recording matrix](recording_matrix.md) for the reviewed video and the evidence required for this workflow.

[All soft-launch tutorials](../soft_launch.md) · [Troubleshooting](troubleshooting.md)
