Nodes ▸ Generators ▸ Reader ▸ HDF 3D

MAS File

Reads MAS model output from one file, a directory of time steps, a psi-data-utils sample run or the export cache folder. It knows MAS quantities, units and mesh staggering. The Directory and Cache Directory sources scan a filename pattern for the quantities you list; the psi-data-utils (run) source takes a whole sample run and fetches its files on demand. For every directory-style source, Time Mode chooses the step: By Sequence takes a sequence number, By Date the file nearest a date (a Directory or Cache Directory source needs the origin date t0) and By Time the file nearest an elapsed time. The Cache Directory source reads the folder an Exporter's Cache Directory destination writes to, and a reader watching that folder notices new files when an export finishes.

MAS File

Inputs

None.

Parameter ports

Added from the Parameters pane (⊕). While connected, each drives its parameter.

PortAcceptsModeDescription
time_index primitive(number) opt-in
drives time_index
Drives the Sequence parameter while connected
time primitive(time) opt-in
drives time
Drives the Date parameter while connected
time_value primitive(number) opt-in
drives time_value
Drives the Time parameter while connected

Outputs

generator(reader)

Parameters

The Parameters pane shows only the parameters relevant to the current settings.

ParameterKindDefaultChoices / rangeUnitNotes
Source
source
choice path path | psi-data-utils | directory | cache | psi-data-utils-run
Path
path
path none
Dataset
dataset
choice none MAS corona | MAS heliosphere | PFSS | Quantities | Examples
File
file
choice none
Directory
directory
directory none
Pattern
pattern
pattern {var}{seq:03d}.h5
t0 (optional)
t0
datetime none
Sequence Scale
sequence_scale
choice linear linear | geometric | explicit | table
dt
dt
float 1 0 to FNORMT
Ratio
ratio
float 2 0 to
Deltas
deltas
strlist ()
Table Path
table_path
path none
Time Mode
time_mode
choice index index | value | elapsed
Sequence
time_index
int none 0 to , step 1 ⇄ port
Date (nearest file)
time
datetime none ⇄ port
Time (nearest file)
time_value
float none FNORMT ⇄ port
Quantities
quantities
quantities ()
Target Dataset
target
choice none
Variable
variable
choice none vr | vt | vp | br | bt | bp | jr | jt | jp | t | te | tp | rho | p | ep | em | zp | zm | heat
Quantity Unit
unit
str none
Mesh Staggering
mesh
str none

Used by

Browse all templates using MAS File