convert_astronomy
Convert FITS astronomy files to JSON or CSV, extracting headers and selected HDU data for analysis. Requires astropy for full FITS data extraction.
Instructions
Convert astronomy data formats: FITS→JSON (header extraction). For full FITS data extraction, requires astropy.
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": {
"inputPath": "<inputPath>",
"outputPath": "<outputPath>"
},
"name": "convert_astronomy"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hdu | No | Header Data Unit index (optional, default 0) | |
| inputPath | Yes | Absolute path to input astronomy file | |
| outputPath | Yes | Absolute path for output file (include extension) | |
| inputFormat | No | Input format (auto-detected if not provided) | |
| outputFormat | No | Output format |