Folder Structure#
ForMoSA touches a lot of files — model grids, adapted sub-grids, observation files, results, and plots. Keeping them organised from the start saves a surprising amount of grief later.
Recommended layout#
~/formosa_desk/
├── atm_grids/ # Native model grids (.nc files)
├── project/
│ └── sample_name/ # A homogeneous set of observations (same wavelength grid)
│ ├── adapted_grid/ # Adapted sub-grids (written by analysis.adapt())
│ └── target_name/ # One target
│ ├── data/ # Input .fits observation files
│ └── results/ # NS results, plots, and saved state
├── (ForMoSA/) # Source installation only
├── (PyMultiNest/) # Source installation only
└── (MultiNest/) # Source installation only
What goes where#
Directory |
Contents |
|---|---|
|
Downloaded model grid |
|
Sub-grids written by |
|
Your |
|
Everything ForMoSA writes: |
Mapping the layout to ConfigPath#
from ForMoSA.config.global_config import ConfigPath
config_path = ConfigPath(
model_path = "~/formosa_desk/atm_grids/BT-Settl.nc",
observation_path = ["~/formosa_desk/project/sample_name/target_name/data/obs.fits"],
adapt_store_path = "~/formosa_desk/project/sample_name/adapted_grid/",
result_path = "~/formosa_desk/project/sample_name/target_name/results/",
)
Note
adapt_store_path is intentionally shared between targets in the same sample.
If two targets were observed with the same instrument and wavelength grid,
the adapted sub-grid is identical — no need to recompute it.