Skip to content

Latest commit

 

History

History
56 lines (43 loc) · 1.47 KB

File metadata and controls

56 lines (43 loc) · 1.47 KB

Export And Quality Metrics

Use these commands after training has produced one or more .nf2 files.

Export A Cartesian Result

nf2-export "./runs/sharp_cea_377/extrapolation_result.nf2" \
  --format vtk \
  --out "./runs/sharp_cea_377/exports/field.vtk" \
  --Mm_per_pixel 0.72 \
  --height_range 0 80 \
  --metrics j alpha free_energy_fft

Use --format npz for Python analysis or --format hdf5 for a portable scientific data file. VTK output is useful for ParaView.

Export A Spherical Result

nf2-export "./runs/spherical_hmi/extrapolation_result.nf2" \
  --format vtk \
  --out "./runs/spherical_hmi/exports/field.vtk" \
  --metrics j alpha free_energy_fft

Export A Series

nf2-export "./runs/multi_height_series/*.nf2" \
  --format hdf5 \
  --out-dir "./runs/multi_height_series/exports" \
  --Mm_per_pixel 0.72 \
  --height_range 0 100 \
  --metrics j alpha free_energy_fft \
  --overwrite

Cartesian Quality Metrics

nf2-metrics "./runs/sharp_cea_377/extrapolation_result.nf2" \
  --Mm_per_pixel 0.72 \
  --height_range 0 80

Spherical Quality Metrics

nf2-metrics "./runs/spherical_hmi/extrapolation_result.nf2" \
  --spherical_sampling 32 64 128 \
  --radius_range 1.0 1.3 \
  --latitude_range -60 60

The printed metrics include mean and RMS divB, mean and RMS divB/B, current-weighted theta_J, sigma_J/CWsin, total magnetic energy E_tot, Cartesian FFT free magnetic energy E_free, and E_free/E_tot.