# psf-fwhm-converter is an astronomical math MCP. AI Agent Connect

> psf-fwhm-converter gives your AI agent the mathematical tools needed for precise astronomical image analysis. It handles the heavy lifting of translating between Gaussian PSF representations, decomposing elliptical parameters, and calculating convolution results. Use it to determine resolving power or convert between sigma, FWHM, and angular scales instantly.

## Overview
- **Category:** mathematics
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_ECVcN43X9wDpAYruoHkIofXOAd4drvYUcHvTJv4n/ai-agent-connect
- **Tags:** psf, gaussian, astronomy, convolution, geometry

## Description

You can use this MCP to automate the tedious mathematical conversions required in astronomical imaging. Instead of manually calculating how a FWHM value translates to an angular scale or sigma, you tell your AI client the parameters and get the result. It handles the geometry of elliptical PSFs by breaking them down into covariance matrices and principal axes. If you need to model how two shapes interact, the MCP performs the convolution of two Gaussian PSFs to find the resulting shape. It also calculates the minimum detectable resolving angular scale, which is vital for understanding the limits of your imaging data. This tool is built for researchers who need to move quickly between different PSF representations like variance and angular scale without getting boggedance down in the underlying formulas.

## Tools

### convert_gaussian_parameters
Use this to switch between different Gaussian PSF metrics such as sigma, FWHM, and variance.

### analyze_elliptical_psf
This tool breaks down elliptical PSF parameters into their geometric components like principal axes and covariance matrices.

### convolve_gaussian_psfs
This tool calculates the specific shape resulting from the convolution of two Gaussian PSFs.

### get_resolving_power
This tool determines the minimum detectable angular separation for your imaging setup.

## Prompt Examples

**Prompt:** 
```
Convert a FWHM of 5.0 pixels to sigma with a plate scale of 0.1 arcsec/pixel.
```

**Response:** 
```
The sigma value is 2.1213 pixels, and the angular sigma is 0.2121 arcseconds.
```

**Prompt:** 
```
What is the resolving angular scale for a PSF with 4.0 pixels FWHM and a plate scale of 0.5 arcsec/pixel?
```

**Response:** 
```
The resolving angular scale is 2.0 arcseconds.
```

**Prompt:** 
```
Convolve two Gaussian PSFs with sigmas of 2.0 and 3.0 pixels.
```

**Response:** 
```
The combined PSF has a sigma of 3.6056 pixels, a FWHM of 8.5028 pixels, and a variance of 13.0 pixels.
```

## Capabilities

### Gaussian Metric Conversion
Your agent uses this to move between sigma, FWHM, and variance values.

### Elliptical Geometry Decomposition
Your agent uses this to extract principal axes and covariance matrices from PSF parameters.

### PSF Convolution
Your agent performs this to find the resulting shape when two Gaussian PSFs are combined.

### Resolving Power Calculation
Your agent uses this to find the minimum detectable angular scale in an image.

## Use Cases

### Image Modeling
Convolve two Gaussian PSFs to predict how a combined signal will appear in your data.

### Resolution Limits
Calculate the minimum detectable angular separation to understand your instrument's limits.

### Parameter Translation
Convert pixel-based FWHM values into angular scales using a specific plate scale.

### Geometric Analysis
Decompose elliptical PSF parameters to analyze the orientation and shape of stellar images.

## Benefits

- Eliminates manual conversion errors between sigma and FWHM.
- Speeds up the modeling of convolved PSF shapes.
- Automates the decomposition of elliptical geometry into usable matrices.

## How It Works

Connecting this MCP to your client gives your agent immediate access to specialized math tools.

1. Connect your preferred MCP client to Vinkius.
2. Provide the PSF parameters or metrics to your AI agent.
3. Your agent calls the specific tool needed for the calculation.
4. The MCP returns the precise mathematical result to your agent.
5. Your agent presents the final value or data structure to you.

## Frequently Asked Questions

**What kind of PSF metrics can this MCP convert?**
It handles conversions between sigma, FWHM, variance, and angular scale.

**Can I use this with Claude or Cursor?**
Yes, this MCP works with any MCP-compatible client including Claude, Cursor, and Windsurf.

**Does this MCP handle elliptical shapes?**
Yes, it can decompose elliptical PSF parameters into principal axes and covariance matrices.

**How do I calculate the combined shape of two PSFs?**
You can use the convolve_gaussian_psfs tool to find the resulting shape of two Gaussian PSFs.

**Is there a way to find the resolving power?**
Yes, the get_resolving_power tool determines the minimum detectable angular separation.

**How can I convert FWHM to sigma?**
You can use the `convert_gaussian_parameters` tool by setting the `input_type` to 'fwhm' and providing the desired `input_value` and `plate_scale`.

**Can I calculate the combined shape of two PSFs?**
Yes, the `convolve_gaussian_psfs` tool calculates the resulting sigma, FWHM, and variance when two Gaussian PSFs are combined.

**How do I get the covariance matrix for an elliptical PSF?**
Use the `analyze_elliptical_psf` tool with the major axis, minor axis, and position angle to retrieve the covariance matrix and other geometric properties.
