Upload a dataset and initialize a model#
Datasets stores an uploaded file and stages its referenced bytes under data/; it does not convert the format or choose a scientific loader. The browser upload limit is 50 MiB per file. The existing launch packet contains synthetic JSON inputs. A separate prepared recording case below uses a bounded ZIP/NetCDF field; its native runs are not yet accepted. Files such as .mat, .nc, .h5, .csv, .txt, .dat, .exp, .tif and .zip need a reader in your saved script and its dependencies in the selected execution image.
Bring your own format#
Upload the file, reference it in an example you own, then read data/<filename> in your saved script. The following reader calls illustrate file APIs; they are not evidence that every library or file variant has passed an AWS model run.
Format |
ISSM (MATLAB) |
Icepack (Python) |
|---|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Notes that apply to every format:
One dataset is one file. To bring a folder, zip it, upload the zip, and extract it at the top of your script as shown above.
Archives are not unpacked for you. A
.ziparrives indata/as a.zip.The browser limit is 50 MiB per file. Split or subset larger data before uploading.
Nothing is inferred from the file. Uploading and referencing make the file available; they do not choose a model or initialize it.
Text formats can be opened in the Editor. Binary formats are listed as
dataand cannot be edited there.
Interactive Icepack HDF5 walkthrough#
The 251-second silent walkthrough gives the action, purpose and expected state on screen and in the readable step panel. Optional guided mode pauses only after a complete recorded step; choose Continue when ready. The checklist is for you to mark after your own action.
It shows the actual source import, HDF5 upload/reference, explicit target and native submission, Results and saved archive. The same bounded schema/loader qualifications below apply. Separate setup/result takes and reading holds shorten waits; a later shared Launch-button closeup is explicitly control guidance, followed by the original accepted HDF5 submission. No new model run was used to make this wider recording.
Watch · pause · try it
Icepack: initialize from HDF5
Import your scripts and gridded fields, run the native model, then inspect and save its results.
Guided mode pauses after each recorded confirmation. Try the action, then Continue. Mark the checklist yourself after doing each step.
· notes stay in this page visit
Your goal: initialize and run Icepack
Do this:
Run a synthetic shelf from your own gridded fields, then save the initial/final maps and native results.
Download run.py, initial_fields.py and icepack-shelf-initial.h5 from this tutorial page.
Open CryoLauncher and sign in. Use an approved connected cloud account with its resources prepared.
The following steps select this tutorial’s model and example.
Why: Keep the source inputs, inspect native fields, and save a complete result package. An owned example keeps scripts, dataset references and results together.
Look for: Your workspace keeps scripts, datasets, run history and results together.
Start with your approved cloud account already connected and its cloud resources prepared. Shared application orientation; the case-specific configuration follows.
1. Open the cloud workspace
Do this:
Choose Cloud → Advanced → Icepack.
You will create a separate workspace example for this HDF5 run.
Choose Icepack as the model.
Next, create a new owned workspace example with a separate name for this HDF5 run.
Why: Cloud uses your connected account; Advanced enables your owned scripts and datasets. The selected example controls the source files and dataset references used for launch.
Look for: The next step gives your HDF5 run a separate name.
Keep the three supplied tutorial files together on your computer.
2. Create your own example
Do this:
Enter a new name, then choose New example.
The new example has an empty file list, ready for your Python files.
Why: An owned workspace separates your files from the supplied application example.
Look for: Wait for the created-workspace message and empty file list.
The recorded example is pilot-icepack-h5-1118.
3. Select both Python files
Do this:
Choose script files. In your file picker, select run.py and initial_fields.py, then choose Open.
Check that the button now shows two selected files.
Why: Selection picks local files; importing is the step that saves them in this example.
Look for: Check that two script files are selected.
You will import both files into the same workspace example.
4. Import the selected scripts
Do this:
Choose Import script files.
Wait for Imported run.py, initial_fields.py. Files are saved.
The file selector now contains run.py; the import confirmation lists both imported files.
Why: Import saves the selected source files; it does not submit a model run.
Look for: Imported run.py, initial_fields.py. Files are saved.
If your example already contains run.py, enable Replace existing script files first. For seeded or existing files, use Replace existing script files before importing.
5. Use run.py as the entry point
Do this:
Set Run target to run.py.
This script calls initial_fields.py to validate and read your HDF5 input.
Why: Run target selects the entry script; other imported files can act as helpers.
Look for: The script calls initial_fields.py to read and validate your HDF5 input.
Importing files saves them; launching is a separate step.
6. Choose your HDF5 input
Do this:
In Datasets choose Choose data files.
In your file picker select icepack-shelf-initial.h5 and choose Open. Check that one file is selected.
Why: Selecting a file prepares it for upload; it is not in the dataset registry yet.
Look for: Check that one data file is selected.
Next, upload the selected file into your workspace.
7. Upload the selected data file
Do this:
Choose Upload. Wait for Uploaded: icepack-shelf-initial.h5.
Check that the new HDF5 filename appears in your dataset list.
Why: Upload stores the dataset; the script must read its fields to initialize the model.
Look for: Uploaded: icepack-shelf-initial.h5.
The supplied file contains full thickness, base, surface, vx, vy and floating-mask grids.
8. Reference the file in this example
Do this:
Select icepack-shelf-initial.h5. Keep that filename as the reference alias, then choose Reference in example.
Read the reference confirmation: data/icepack-shelf-initial.h5.
When you launch, CryoLauncher copies the selected dataset into that path for run.py to read.
Why: A reference stages the chosen dataset under data/ when this example launches.
Look for: Your script will read data/icepack-shelf-initial.h5.
Your script will read data/icepack-shelf-initial.h5. The reference is attached to your current workspace example.
9. Review your configuration
Do this:
Choose Review & Launch.
Before submitting, check that the summary names your intended model and workspace example.
Check Model: ICEPACK and Example: pilot-icepack-h5-1118.
Keep run.py as the entry point, with the referenced HDF5 input attached.
Choose Launch cloud run when the readiness checks are ready.
Your HDF5 run now has its own Cloud Run card.
Wait for the job to finish; opening another tab does not cancel it.
Why: Review is the checkpoint for the selected case, inputs, resources and charges. Confirm the intended model and owned example before submitting the run. Confirmation starts a paid cloud run using the reviewed configuration. Submission, queue/startup and native model execution are separate stages.
Look for: Wait for completion; opening another tab does not cancel the job.
Review the current settings before you launch. This native run used 2 vCPU and 8 GiB. Control guide; the original accepted HDF5 run follows. This run used 2 vCPU and 8 GiB. Queue/startup and model timings are reported separately.
10. Open the completed results
Do this:
When the run shows Completed, open View results.
The native script performs one 0.01-year step with zero accumulation.
Why: Completion lets you retrieve and inspect this run’s saved native output.
Look for: This script runs one 0.01-year step with zero accumulation.
Next, render and save the fields from this completed HDF5 run.
11. Render a native field
Do this:
Choose Render to draw the selected field.
In Results choose solution icepack, choose velocity or thickness, then choose Render.
Use the field name and units to interpret the plot.
Why: The solution, field name and units identify what you are about to view. The solution, field name and units identify what you are viewing.
Look for: Velocity is in metres/year; thickness is in metres.
You can switch between thickness and velocity after the run finishes. Velocity is in metres/year; thickness is in metres.
12. Inspect the initialized fields
Do this:
Open initial-conditions.png in your saved results.
It shows thickness, surface and speed sampled from your uploaded grid onto the native mesh.
Why: The saved initial map lets you inspect what was sampled from the uploaded grid.
Look for: The uploaded 5 × 9 grid was sampled at all 25 native mesh vertices.
The supplied grid has 5 × 9 points and covers a 10 km × 10 km synthetic shelf.
13. Inspect the final thickness
Do this:
Open the final thickness figure and compare the colour scale with the initial map.
Final thickness is 300.022696–499.980847 m; its area-weighted mean is 403.649861 m.
Why: Use the colour scale and units to interpret the solved native thickness.
Look for: Final area-weighted mean: 403.649861 m; domain RMS speed: 133.908461 m/year.
The final domain RMS speed is 133.908461 m/year.
14. Generate your download link
Do this:
Choose Download results.
Wait for a new HTTPS download link for the current run.
Open the generated HTTPS link to save your results ZIP.
It contains the mesh, native fields, initial/final figures, metrics and runtime/RNG provenance.
Why: The archive keeps this run’s numeric outputs, figures and provenance together.
Look for: Keep all 12 archive members with your scripts and HDF5 input.
Use the freshly generated link to save the ZIP. Keep this 12-member archive and its manifest with your input files.
What this completed example establishes
Do this:
The five initialized fields matched an independent interpolation at all 25 native nodes; the mesh has 32 triangles.
These portable CG1 fields are numeric results, rather than a Firedrake checkpoint. This example is not an independent native repeat or an accuracy assessment.
Why: Keep the scientific qualifications and provenance with the accepted result.
Look for: Initial-field interpolation matched independently at every native node.
Submission → Batch start: 214.703 s; task: 46.352 s; script: 16.9818 s. Long waits are shortened in the video.
Use native-data-icepack-h5/run.py, initial_fields.py and datasets/icepack-shelf-initial.h5 from the input packet. Read captions · Download video
Video (MP4) · Captions (VTT) · Sanitized native source/data/runtime manifest · Guided video receipt
The uploaded grid has shape 5 × 9 over 10 km × 10 km, with coordinates and full thickness/base/surface/vx/vy fields in the schema below. The loader validates units, finite values, coverage, floating mask and hydrostatic geometry before scientific imports. Independent SciPy interpolation of the exact submitted file matched all five initialized fields at all 25 native nodes, with maximum absolute error 0 for each. Scalar and vector coordinate mappings were checked separately. This is pre-solve initialization equality; diagnostic velocity solving can change the initial guess.
This exact archive PNG shows initialized thickness, surface and speed. The saved NPZ retains the complete initialized numeric fields and explicit vector-node coordinates. Base/surface are validated and saved; they are not independent IceShelf solver arguments. The Results controls render retained native fields.
The native CG1 case takes one 0.01-year prognostic step between diagnostic solves, with zero accumulation and no damage physics. Its final export contains 25 vertices and 32 triangles with finite fields. Thickness is 300.022696–499.980847 m, the area-weighted mean is 403.649861 m, and domain RMS speed is 133.908461 m/year. Independent triangle integration matches the script metrics within 1e−8. This numeric export is not a Firedrake checkpoint.
The browser archive has 12 CRC-valid members, SHA-256
617b09e99d1b561951e072b7935f47c6edaf4bbd02e9cd0339e669740aad7e1e.
Actual script/helper/data hashes and pinned image are in the manifest. The
curated download below now preserves those same three scientific files,
including velocity_coordinates in the pre-solve NPZ writer. Submission to
Batch start took 214.703 s, the task 46.352 s, and the script-reported
interval 16.9818 s; recording waits are separate. No independent native
repeat, PC/AWS agreement, arbitrary-format compatibility or scientific accuracy
claim is made.
Primary HDF5 and MATLAB recording cases#
Download the native initial-condition packet.
It contains synthetic analytic floating shelves, matching model scripts, a
preview and the actual preparation-check record. These are not observational
community datasets, Firedrake checkpoints or serialized ISSM model objects.
The Icepack HDF5 case now has an accepted native run and reviewed tutorial. The ISSM MAT model/loader also has an accepted native run; its separate 235-second beginner MAT walkthrough has also passed visual review.
Model |
Upload and reference |
Script files to import into an owned example |
|---|---|---|
Icepack |
|
|
ISSM |
|
|
Use Choose script files → Import script files for source files, and
Choose data files → Upload → Reference in example for data. Keep each data
reference’s baseline filename, confirm the staged path, save all source files
and choose run.py or runme.m as the run target. Reuse the existing reviewed
MATLAB/Connector configuration for ISSM. Upload alone does not initialize a
model; the supplied script must read the referenced file.
Both formats use schema cryostack.shelf-initial-fields.v1, the matching model
label and synthetic=1. Ice/water densities are 917/1028 kg m⁻³ and temperature
is 253.15 K. Nine x and five y coordinates span a 10 km square; every field has
shape (ny,nx)=(5,9).
HDF5 dataset |
MAT |
Units |
|---|---|---|
|
|
m |
|
|
m |
|
|
m |
|
|
m/year |
|
|
1 (floating) |
HDF5 units are dataset attributes and metadata is in root attributes. MAT v5
stores metadata in the initial_conditions struct and unit labels in its
units struct. MATLAB reads it with load; Icepack’s helper uses h5py/NumPy.
The supplied floating geometry satisfies
base = -rho_ice/rho_water * thickness and surface = base + thickness.
Icepack interpolates the complete thickness, velocity, base and surface fields
to the native mesh. The initialized h0 and u0 enter the existing diagnostic
and prognostic FlowSolver calls. b0 / s0 are saved and checked for
hydrostatic consistency; IceShelf assumes flotation, so they are not separate
solver arguments. ISSM uses load / interp2 to initialize
md.geometry.thickness, .base, .surface and md.initialization.vx, .vy,
.vel at every mesh vertex before the unchanged SSA Stressbalance solve.
This eastward full-field MAT case places its calving-front contour at the east
edge, x=L, consistent with its positive x velocity and thickness decreasing
along x. The earlier canonical/JSON teaching cases have different initial
conditions; their source and provenance are not changed to match this case.
The prepared MAT parameter file applies the uploaded synthetic vx/vy values to
existing finite velocity constraints after SetIceShelfBC, while retaining NaN
calving-front entries. It does not label synthetic values as observations. This
boundary correction has now been exercised in the retained native MAT run. The MAT walkthrough distinguishes inferred observable-boundary checks from opaque saved constraint arrays.
Both scripts save outputs/initial-conditions.png and complete initialized
fields before solving: NPZ for Icepack, MAT for ISSM. Inspect thickness,
freeboard and speed in the plot and then inspect the native solver’s results.
The -plus15m data variant adds 15 m everywhere, adjusts base/surface
hydrostatically and preserves velocity. Replace the baseline reference with
that variant under the same baseline alias for a comparison; do not create
duplicate aliases. A new variant run needs its own resource/cost review.
The packet records 16 offline checks, including all 45 source-grid nodes, 187 interpolation nodes, full-field/geometry consistency, malformed-input rejection and independent round trips of both MAT structs. Four additional calving-contour checks verify the east-front geometry and outward velocity in this MAT case. These are actual file/loader checks, not native solver or MATLAB-runtime acceptance. The recording matrix keeps those outcomes separate. The older JSON launch packet below remains a different worked example.
Additional prepared ZIP and NetCDF cases#
These two additional cases exercise a supplied spatial thickness field rather than infer a format from its extension. They are prepared for the recording matrix; the new solver runs, MATLAB helper execution and recordings are still pending. Ten input/reader contract checks and independent SciPy reads of the four NetCDF fixtures passed during preparation. Those checks do not qualify arbitrary NetCDF or ZIP files for a native model run.
Case |
Referenced data |
Saved script/helper files |
Model initialization |
|---|---|---|---|
Icepack |
|
|
Read the single |
ISSM |
|
|
Read coordinates and thickness with MATLAB |
The fixture contract is NetCDF classic CDF-1 with fixed-size variables,
not a general NetCDF4/HDF5 importer. Its global attributes are
schema="cryostack.native-shelf-netcdf.v1", synthetic=1 and the matching
model="icepack" or model="issm". Coordinates x(x) and y(y) are metres,
start at zero and increase strictly. The supplied non-square grid has nine x
coordinates and five y coordinates over 10 km × 10 km. thickness(y,x) is a
finite positive field in metres. The file also supplies scalar variables with
explicit units: temperature_K (K), mesh_nx / mesh_ny / timesteps (1),
mesh_spacing_m (m), inflow_velocity_m_per_year (m/year) and dt_years
(year). The loaders check this schema, dimensions, units and recording mesh
bounds; uploading alone performs none of those scientific checks.
The normal field has 410 m at its center. A companion changed-field fixture
adds 15 m everywhere and has a 425 m center. These distinguish full-field
initialization from a loader that only uses minimum/maximum thickness. A
successful recording must also show the NATIVE_DATA loading/initialization
log, native solver completion, exported fields and an opened results archive.
Do not substitute the older JSON packet’s file while claiming the ZIP/NetCDF
case passed. These recording inputs are separate from the downloadable JSON
launch packet below.
Worked example with the launch packet#
The rest of this page uses one synthetic JSON input per model. Reuse the upload/reference controls for another file, then separately validate that its reader, units, dimensions and model initialization work in the selected image.
The launch packet uses explicitly synthetic JSON inputs in metres, kelvin, and metres per year. These are small shelf demonstrations, not observational data or validated scientific benchmarks.
Files to use#
Download the launch packet. Extract it locally. Choose datasets/issm-shelf-small-v1.json for ISSM or datasets/icepack-shelf-small-v1.json for Icepack. Keep the schema, model, and units fields intact.
Steps#
Complete the matching Basic tutorial, then select Advanced. Create a user example and install the supplied model files as described in the Advanced tutorial.
In Datasets, choose the matching input with Choose data files, then click the separate Upload button. Check the upload outcome and dataset list; selecting a file alone does not store it. Use this control for the model input data, not the editor’s Choose script files.
Confirm the filename and nonzero size appear in the dataset list. The browser limit is 50 MiB per file. The supplied Icepack validator additionally rejects JSON inputs over 2 MiB; the supplied ISSM loader has no separate size check.
Select the saved file, then Reference in example. Leave “reference as” blank to stage it as
data/<filename>. Read the exact staged path in the feedback and use that path in the script; do not adddata/twice or use an absolute PC path. If the selected example is a read-only application example, clone it to My Workspace first; referencing is disabled until you select an example you own.Open the script in Editor. Confirm it loads
data/issm-shelf-small-v1.jsonordata/icepack-shelf-small-v1.json. With your own data, this is where you replace the loader with the reader for your format from the table above.Save, prepare cloud, review and launch. The supplied loader checks model, units, dimensions, finite values, thickness, mesh bounds, and supported step count before allocating the mesh.
Verify a native model solve, step log, figure, and
outputs/reference-metrics.json. Download results.
Safe negative checks#
Upload an empty JSON file, malformed JSON, negative thickness, a wrong-model file, and a missing-field fixture from datasets/edge. Reference each under the expected input filename in a separate test example. Initialization must fail with a useful message; no successful scientific result should be claimed. Prefer running the validator locally before submitting a deliberately invalid input to AWS.
Re-upload the same basename: it must be skipped unless Overwrite existing is explicitly checked. Two inputs must not share a reference alias. A missing referenced dataset must block staging; re-upload it rather than relying on an old run copy.
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.
Screenshot slot: capture the selected model/example, completed run, and results panel using a participant test account. Exclude license fields, account identifiers, tokens, and private paths.
Recording: see the recording matrix for the reviewed video and the evidence required for this workflow.

