keplerian_mask
Build a 0/1 FITS mask cube for a thin rotating disk on a template cube grid, using mass, inclination, position angle, and velocity to select voxels.
Instructions
Build a Keplerian mask cube for a thin disk on the grid of a template FITS cube.
Disk coordinates: x_d = dRA sin(PA) + dDec cos(PA), y_d = (-dRA cos(PA) + dDec sin(PA)) / cos(i), r = sqrt(x_d^2 + y_d^2) with dRA (east) and dDec offsets in arcsec from the disk centre (default: the reference pixel of the cube). PA is east of north to the REDSHIFTED major axis. v_los = v_sys + sqrt(G M / r) sin(i) x_d / r. A voxel is in the mask if r_min <= r <= r_max and |v_chan - v_los| <= line_width_kms + dv/2. Each channel is then dilated by an elliptical beam (dilate_beams x beam FWHM). Writes a 0/1 FITS cube (spectral axis increasing) to out_path (default .keplerian_mask.fits next to the cube). Paths must lie inside the allowed folder (env ALMA_MCP_WORKDIR, default the server's working directory); an existing file is refused unless overwrite=true. Limits: thin disk only (no elevated emission surface, so 12CO back sides can fall outside); a mask built from assumed M*, i, PA biases weak-line maps toward that model.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"fits_path": "<fits_path>",
"m_star_msun": "<m_star_msun>",
"inclination_deg": "<inclination_deg>",
"pa_deg": "<pa_deg>",
"distance_pc": "<distance_pc>",
"v_sys_kms": "<v_sys_kms>",
"r_max_au": "<r_max_au>"
},
"name": "keplerian_mask"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pa_deg | Yes | ||
| out_path | No | ||
| r_max_au | Yes | ||
| r_min_au | No | ||
| fits_path | Yes | ||
| overwrite | No | ||
| v_sys_kms | Yes | ||
| distance_pc | Yes | ||
| m_star_msun | Yes | ||
| dilate_beams | No | ||
| center_ra_deg | No | ||
| rest_freq_ghz | No | ||
| center_dec_deg | No | ||
| line_width_kms | No | ||
| inclination_deg | Yes |