File Input and Output
FITS Input
DISCO accepts standard FITS files conforming to the ALMA imaging output convention. The following header keywords are read and utilised:
Keyword |
Usage |
|---|---|
|
Pixel scale in degrees per pixel. The absolute value is multiplied by 3600 to yield arcseconds per pixel. |
|
Flux density units. If |
|
Synthesised beam major and minor axes in degrees. Used for beam area computation, SNR scoring, inner radius estimation, beam homogenisation, and brightness temperature conversion. |
|
Beam position angle in degrees. Used for beam kernel construction. |
|
Rest frequency in Hz. Used for brightness temperature conversion.
Fallback: searches |
|
ISO-T observation date string. Used for Gaia proper-motion epoch. |
|
Modified Julian Date of observation. Fallback for |
|
Image dimensions in pixels. |
WCS keywords ( |
Used for pixel ↔ ICRS coordinate transformations. |
Multi-dimensional FITS cubes (e.g. with Stokes and frequency axes) are
handled by numpy.squeeze, which collapses all degenerate axes to
produce a 2D image.
CLI Output Files
The CLI pipeline writes the following files to <output_dir>/ for each
processed group. All paths are relative to the group output directory.
Radial Profile Plot
Filename |
Description |
|---|---|
|
Matplotlib figure (dpi=150, white background) showing normalised
radial profiles for all images in the group, with the optimised
geometry annotated in the title (inclination ± uncertainty,
PA ± uncertainty). One line per FITS file, labelled by band if a
|
CSV Exports (--csv on)
Filename |
Contents |
|---|---|
|
Global geometric parameters. Columns: |
|
Per-image metadata. Columns: |
|
Tabulated radial profile data. For each image (column group labelled
by band): |
Debug Output (--debug on)
Filename |
Contents |
|---|---|
|
PNG (dpi=150) of the deprojected image of the reference file, with a white cross at the optimised centroid and a dashed cyan circle at the outer radius. |
GUI Session Files
The GUI supports saving and restoring sessions as JSON files. The session file schema is:
{
"filename": "<base FITS filename>",
"params": {
"cx": <float>,
"cy": <float>,
"incl": <float>,
"pa": <float>,
"rout": <float>,
"fit_rmin": <float>,
"fit_rmax": <float>
},
"timestamp": "<ISO-8601 string>",
"pixelScale": <float>
}
On restore, the stored parameters are applied immediately and the
referenced FITS file is reloaded from the upload directory via
POST /load_local.
GUI FITS Downloads
Any pipeline output image type ("data", "deproj", "model",
"residuals", "polar") can be downloaded as a FITS file via
GET /download_fits?type=<type>. The returned FITS file carries the
original header from the loaded FITS file.
GUI CSV Export
The handleDownloadCSV function in AnalysisDashboard.jsx produces
a three-column CSV file (radial_profile.csv) with the following columns:
Column |
Units |
Source |
|---|---|---|
|
arcsec |
|
|
Jy/beam |
|
|
K |
|