# Extinction Corrected Photometry AI Agent Connect

> Extinction Corrected Photometry MCP handles the math for atmospheric extinction. It lets your AI client adjust observed magnitudes and fluxes by factoring in airmass, extinction coefficients, and color terms. You can calculate total magnitude loss or validate airmass ranges to ensure your data stays within scientific standards, all while maintaining rigorous uncertainty propagation.

## Overview
- **Category:** science
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_GtoKYVXoXEjr8SS5ENmipne0N1QUc3TPl5YyqriT/ai-agent-connect
- **Tags:** astronomy, photometry, extinction, airmass, physics

## Description

You can use this MCP to clean up astronomical data by removing the effects of the Earth's atmosphere. When you observe stars, the atmosphere absorbs and scatters light, which changes the brightness you actually record. This MCP gives your AI client the specific tools needed to reverse those effects. 

You can adjust observed magnitudes and fluxes based on specific airmass and extinction coefficient values. The math includes covariance-aware error analysis, so you aren't only getting a single number, but a result that accounts for uncertainty propagation. It also helps you stay within bounds by checking if your airmass readings are scientifically valid. Instead of manually calculating extinction for each observation, you hand the raw data to your agent and let it handle the corrections.

## Tools

### apply_flux_extinction
This tool corrects an observed flux value for atmospheric extinction. It handles the linear flux corrections required for accurate data.

### apply_magnitude_extinction
This tool adjusts observed magnitudes by accounting for both atmospheric extinction and color effects. It's built for precise magnitude corrections.

### calculate_atmospheric_extinction
This tool determines the total magnitude loss caused by the atmosphere. It's used to find the specific extinction value for a given observation.

### validate_airmass_range
This tool checks if a provided airmass falls within the standard scientific range of 1.0 to 3.0. It flags values that are considered extrapolated.

## Prompt Examples

**Prompt:** 
```
Correct a magnitude of 15.2 with an airmass of 1.5, an extinction coefficient of 0.15, and a magnitude uncertainty of 0.02.
```

**Response:** 
```
The corrected magnitude is 15.02 with a total uncertainty of 0.023.
```

**Prompt:** 
```
Calculate the total atmospheric extinction for an airmass of 2.0 and an extinction coefficient of 0.12.
```

**Response:** 
```
The total extinction is 0.24 magnitudes.
```

**Prompt:** 
```
Is an airmass of 0.5 within the standard valid range?
```

**Response:** 
```
No, an airmass of 0.5 is flagged as extrapolated because it is below the standard range of 1.0 to 3.0.
```

## Capabilities

### Magnitude Correction
Your agent uses this to adjust observed magnitudes for color and atmospheric effects.

### Flux Adjustment
The AI client applies linear corrections to observed flux values.

### Extinction Calculation
Your agent calculates the total magnitude loss from the atmosphere.

### Airmass Validation
The tool checks if airmass data is within the acceptable 1.0 to 3.0 range.

### Error Propagation
The MCP performs covariance-aware error analysis for all calculations.

## Use Cases

### Data Cleaning
You give your agent a list of observed magnitudes to correct for atmospheric effects.

### Quality Control
You use the airmass validation tool to check if your observations are within reliable limits.

### Flux Normalization
Your agent applies linear corrections to flux measurements to account for airmass.

### Error Estimation
You calculate corrected values while the MCP automatically manages the uncertainty math.

## Benefits

- Automates uncertainty propagation and covariance-aware error analysis.
- Validates airmass data against standard scientific bounds.
- Corrects for both magnitude and flux using specific extinction coefficients.
- Handles color term adjustments during magnitude correction.

## How It Works

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

1. Connect your preferred MCP-compatible client to Vinkius.
2. Provide your observational data like magnitude, airmass, or flux to your agent.
3. Your agent selects the correct tool to perform the specific extinction correction.
4. The MCP runs the calculation with full error propagation.
5. Your agent delivers the corrected, scientifically valid result.

## Frequently Asked Questions

**What is the standard airmass range for this MCP?**
The standard scientifically acceptable airmass range is 1.0 to 3.0. Values outside this range are flagged as extrapolated.

**Does this MCP handle error propagation?**
Yes, all calculations include uncertainty propagation and covariance-aware error analysis.

**Can I correct both magnitude and flux?**
Yes, there are separate tools for magnitude adjustments and linear flux corrections.

**How do I use this with Claude or Cursor?**
You connect your client to Vinkius once, and the tools become available for your agent to call directly.

**Does it account for color terms?**
Yes, the magnitude extinction tool specifically accounts for color effects.

**How does this tool handle measurement errors?**
The tools use uncertainty propagation to combine errors from the observed magnitude/flux, airmass, and extinction coefficients into a final total uncertainty.

**What is considered an extrapolated airmass?**
Using `validate_airmass_range`, airmass values significantly outside the standard 1.0 to 3.0 range are flagged as extrapolated to indicate reduced reliability.

**Can I correct for color terms?**
Yes, `apply_magnitude_extinction` accepts optional color term and object color parameters to correct for instrument-filter mismatches.
