# Photometric Zero Point Calibration AI Agent Connect

> Photometric Zero Point Calibration MCP handles the heavy lifting of stellar photometry. Your AI client uses weighted least-squares regression to calculate zero points, atmospheric extinction, and color terms. It moves you from raw instrumental measurements to validated, calibrated magnitudes without manual math.

## Overview
- **Category:** science
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_A73Os0UeY5PBxe5lNH51Dw8gcOjUnk0kxDpmcgEW/ai-agent-connect
- **Tags:** photometry, astronomy, calibration, least-squares, stellar

## Description

You can stop manually calculating extinction coefficients and color terms. This MCP gives your AI agent the mathematical tools needed to process stellar photometry workflows. You start by feeding standard star data into the system to establish a calibration model. Once the model is set, your agent applies those parameters to new observations to get calibrated magnitudes. It handles the regression math for zero points and atmospheric effects, so you don't have to. You can also run statistical audits to check the goodness of fit or pull specific uncertainty values for error propagation. It's built for researchers who need to move from raw telescope data to publication-ready magnitudes using an AI-driven workflow.

## Tools

### apply_calibration
This tool converts instrumental magnitudes into calibrated magnitudes using your established model.

### calculate_calibration_model
It performs the primary mathematical fit to determine zero points, extinction, and color terms.

### generate_calibration_audit
This tool provides statistical validation to check the quality of your calibration.

### get_calibration_uncertainty
It extracts the zero point uncertainty so you can handle error propagation.

## Prompt Examples

**Prompt:** 
```
Calculate the calibration model for these standard stars: instrumental magnitudes [15.2, 14.8], catalog magnitudes [15.0, 14.5], airmasses [1.1, 1.2], color indices [0.5, 0.6], instrumental errors [0.02, 0.02], and catalog errors [0.01, 0.01].
```

**Response:** 
```
The derived zero point is 0.35, the extinction coefficient is 0.12, and the color term is 0.05.
```

**Prompt:** 
```
Apply this calibration model (zeroPoint: 0.35, extinctionCoefficient: 0.12, colorTerm: 0.05) to a target with instrumental magnitude 15.5, airmass 1.0, and color index 0.5.
```

**Response:** 
```
The calibrated magnitude is 15.25.
```

**Prompt:** 
```
What is the uncertainty of the zero point for this error object: {"zeroPoint": 0.01, "extinctionCoefficient": 0.005, "colorTerm": 0.002}?
```

**Response:** 
```
The zero point uncertainty is 0.01.
```

## Capabilities

### Model Calculation
Your agent uses weighted least-squares regression to find calibration parameters.

### Magnitude Conversion
Your agent applies calculated models to transform raw data into calibrated values.

### Statistical Validation
It generates audits to verify the goodness of fit for your calibration.

### Error Analysis
Your agent extracts zero point uncertainties for precise error propagation.

## Use Cases

### Standard Star Calibration
Use the model tool to derive parameters from a set of known standard stars.

### Target Magnitude Processing
Apply a previously calculated model to a new set of target observations.

### Quality Control
Run an audit after calibration to ensure the statistical fit is reliable.

### Error Propagation
Get the specific zero point uncertainty needed for downstream error analysis.

## Benefits

- Automates the weighted least-squares regression process.
- Reduces manual errors in extinction and color term calculations.
- Provides instant statistical validation of calibration quality.
- Simplifies error propagation through direct uncertainty extraction.

## How It Works

Connect your client to Vinkius and start processing photometry data immediately.

1. Connect your AI client to the Vinkius-hosted MCP.
2. Provide standard star data to calculate the calibration model.
3. Use the model to convert instrumental magnitudes to calibrated ones.
4. Verify the results with a statistical audit.

## Frequently Asked Questions

**What kind of math does this MCP use for calibration?**
It uses weighted least-squares regression to determine zero points, extinction coefficients, and color terms.

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

**How do I check if my calibration is accurate?**
You can use the generate_calibration_audit tool to get a statistical validation of the goodness of fit.

**Does this handle atmospheric extinction?**
Yes, the calibration model specifically calculates extinction coefficients as part of the fit.

**How is the zero point uncertainty retrieved?**
The get_calibration_uncertainty tool extracts this value specifically for error propagation tasks.

**How do I determine the calibration parameters?**
You can use the `calculate_calibration_model` tool. Provide the instrumental magnitudes, catalog magnitudes, airmasses, and color indices of your standard stars to receive the zero point, extinction, and color term.

**Can I verify the quality of my calibration?**
Yes, the `generate_calibration_audit` tool provides a statistical validation, including chi-squared statistics and a qualitative fit quality label.

**How do I apply a model to new data?**
Once you have your model parameters, use the `apply_calibration` tool with your new target instrumental magnitudes, airmasses, and color indices to get the calibrated results.
