# Airmass & Extinction Calculator AI Agent Connect

> Airmass & Extinction Calculator handles the heavy lifting for atmospheric physics. Your AI client uses this MCP to determine airmass through plane-parallel, secant, or Kasten-Young models, calculate total light loss, and adjust observed flux to account for atmospheric extinction.

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

## Description

If you are working with astronomical data, you know that the atmosphere is a constant variable that messes with your readings. This MCP gives your AI agent the math it needs to account for that interference. Instead of manually running models, you can ask your agent to calculate airmass using specific geometric assumptions like the Kasten-Young model. It handles the math for total light loss in magnitudes and can adjust your observed flux to find the true brightness at the top of the atmosphere. You can even run comparative tests to see how different airmass models change your results, making it easier to choose the right model for your specific observation conditions.

## Tools

### calculate_airmass
This tool calculates atmospheric airmass using plane-parallel, secant, or Kasten-Young models.

### calculate_extinction
Use this to find the total atmospheric extinction in magnitudes.

### compare_airmass_models
This tool compares different airmass models for the same geometric setup.

### correct_flux
This tool adjusts observed flux to account for atmospheric extinction.

## Prompt Examples

**Prompt:** 
```
Calculate the airmass for a zenith angle of 30 degrees using the Kasten-Young model.
```

**Response:** 
```
The calculated airmass using the Kasten-Young model for a 30-degree zenith angle is 1.156.
```

**Prompt:** 
```
What is the total extinction if the airmass is 1.5, the coefficient is 0.2, the pressure ratio is 1.0, and precipitable water is 5mm?
```

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

**Prompt:** 
```
Correct an observed flux of 1000 units with a total extinction of 0.5 magnitudes.
```

**Response:** 
```
The corrected flux at the top of the atmosphere is 3162.28 units.
```

## Capabilities

### Atmospheric Modeling
Your agent selects between plane-parallel, secant, or Kasten-Young models to find airmass.

### Extinction Calculation
Your agent determines the total magnitude of light lost to the atmosphere.

### Flux Correction
Your agent adjusts observed brightness values to account for atmospheric interference.

### Model Comparison
Your agent compares different geometric models to check for variations in airmass results.

## Use Cases

### Observational Correction
An astronomer uses your agent to correct flux values after a night of observing.

### Model Validation
A researcher compares Kasten-Young and secant models to see which fits their data better.

### Atmospheric Analysis
A scientist calculates total extinction based on pressure ratios and precipitable water.

### Zenith Angle Calculations
Your agent determines airmass for specific zenith angles during scheduled observations.

## Benefits

- Automates complex atmospheric math within your agent chat.
- Provides multiple airmass models for higher precision.
- Corrects observed flux values for atmospheric extinction automatically.

## How It Works

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

1. Connect your AI client to the Vinkius platform.
2. Your agent detects the available airmass and extinction tools.
3. You provide the observation parameters like zenith angle or flux.
4. Your agent runs the specific model or calculation.
5. You receive the corrected data directly in your chat.

## Frequently Asked Questions

**What airmass models are supported?**
The MCP supports plane-parallel, secant, and Kasten-Young models.

**Can I use this to correct brightness values?**
Yes, you can use the correct_flux tool to adjust observed flux for atmospheric extinction.

**How do I compare different airmass assumptions?**
Use the compare_airmass_models tool to see how different models affect your airmass results for the same geometry.

**What kind of clients can use this MCP?**
Any MCP-compatible client like Claude, Cursor, Windsurf, or VS Code can use these tools.

**Does this calculate extinction in magnitudes?**
Yes, the calculate_extinction tool provides the total atmospheric extinction in magnitudes.

**Which airmass model should I use?**
Use `calculate_airmass` with 'plane-parallel' for near-zenith observations, 'secant' for simple approximations, or 'kasten-young' for high-precision near-horizon calculations.

**How do I correct my observed light intensity?**
You can use the `correct_flux` tool by providing the observed flux and the total extinction magnitude calculated via `calculate_extinction`.

**Can I compare different models at once?**
Yes, the `compare_airmass_models` tool provides a side-by-side comparison of plane-parallel, secant, and Kasten-Young results for a given geometry.
