# Telluric Mask Generator AI Agent Connect

> Telluric Mask Generator MCP calculates deterministic spectral masks based on Earth's atmospheric absorption. You provide telluric line centers, widths, and depths to pinpoint exactly which wavelength intervals are contaminated. It handles the math for finding masked regions, calculating clear spectral windows, and converting units to velocity scales.

## Overview
- **Category:** science
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_8gf9nNfTYoTgAvAlsiOuABO6OrWfrNftQKiAMKx0/ai-agent-connect
- **Tags:** telluric, spectral-mask, wavelength, astronomy, spectroscopy

## Description

You can use this MCP to automate the identification of spectral contamination caused by Earth's atmosphere. Instead of manually calculating how telluric lines affect your data, you feed the line parameters, centers, widths, and depths, directly to your AI client. The tool then determines which parts of your spectrum are unusable. 

It works by processing these parameters to generate specific wavelength intervals that need masking. You can also check for clear spectral windows to see where your data remains untouched by absorption. If your analysis requires velocity-based units rather than wavelengths, the MCP handles that conversion for you. It also provides a high-level audit of your masking rules, so you can verify exactly which lines were included or ignored based on your depth thresholds. This makes it a precise way to clean up spectroscopic data before further analysis.

## Tools

### get_mask_intervals
This tool generates the primary list of wavelength intervals that are considered masked. It identifies the specific regions contaminated by telluric lines.

### get_mask_summary
This tool provides a versioned, high-level audit of your masking parameters. It shows the resulting impact of the rules you applied.

### get_retained_coverage
This tool calculates the clear portions of the spectrum. It finds the spectral windows that are not affected by telluric absorption.

### get_velocity_scale
This tool converts wavelength-based mask information into velocity-based units. It makes it easier to work with velocity-dependent data.

## Prompt Examples

**Prompt:** 
```
Generate a mask for lines at 760.0, 760.1, and 760.2 nm with widths of 0.05, 0.05, and 0.05 nm, depths of 0.8, 0.7, and 0.9, within a range of 759.0 to 761.0 nm, using a velocity margin of 0.01 and a depth threshold of 0.1.
```

**Response:** 
```
The masked intervals are [759.94, 760.06], [760.04, 760.16], and [760.14, 760.26]. After merging overlaps, the continuous masked interval is [759.94, 760.26].
```

**Prompt:** 
```
What is the total velocity range for a window between 5000.0 and 5010.0 Angstroms?
```

**Response:** 
```
The total velocity range is 600.0 km/s.
```

**Prompt:** 
```
Give me a summary of the masking rules applied for a set of lines with depths [0.5, 0.05, 0.8] and a threshold of 0.1.
```

**Response:** 
```
The masking process applied 2 lines out of the 3 provided, as one line fell below the depth threshold. The resulting mask metrics have been calculated based on these active lines.
```

## Capabilities

### Interval Identification
Your agent uses this to find specific wavelength ranges that are contaminated.

### Coverage Calculation
Your agent calculates the clear spectral windows left after masking.

### Unit Conversion
Your agent switches between wavelength and velocity-based units.

### Rule Auditing
Your agent generates a summary of applied masking parameters and their impact.

## Use Cases

### Spectral Cleaning
You use the MCP to identify which parts of a spectrum are obscured by Earth's atmosphere.

### Velocity Scaling
You convert wavelength masks into velocity units for Doppler shift analysis.

### Data Integrity Audits
You generate a summary of masking rules to ensure your data processing is consistent.

### Window Optimization
You find the best spectral windows for observation by calculating retained coverage.

## Benefits

- Automates the calculation of contaminated wavelength intervals.
- Provides clear windows of usable spectrum through coverage calculations.
- Converts wavelength data to velocity units without manual math.
- Creates an audit trail of masking rules and depth thresholds.

## How It Works

Connect your AI client to Vinkius to start using these tools immediately.

1. Connect your preferred MCP-compatible client to Vinkius.
2. Provide telluric line parameters like center, width, and depth to your agent.
3. Your agent calls the specific tool to process your parameters.
4. Receive the calculated intervals, coverage, or velocity scales directly in your chat.

## Frequently Asked Questions

**What does this MCP do?**
It generates deterministic spectral masks based on telluric line parameters to help identify contaminated wavelength intervals.

**How do I use it with Claude or Cursor?**
You connect your client to the Vinkius platform, which hosts and manages the MCP for you. Once connected, your agent can call the tools directly.

**Can I convert wavelength to velocity?**
Yes, the get_velocity_scale tool converts wavelength-based mask information into velocity-based units.

**How does the depth threshold work?**
The depth threshold allows you to filter out lines. If a line's depth is below your specified threshold, it won't be included in the masking process.

**Does this help find usable parts of the spectrum?**
Yes, the get_retained_coverage tool calculates the clear portions of the spectrum that are not affected by telluric absorption.

**How do I identify contaminated wavelength regions?**
Use the `get_mask_intervals` tool with your line parameters to receive a list of specific wavelength intervals that are masked.

**Can I account for Doppler shifts in my mask?**
Yes, by providing a `velocityMargin` value to the masking tools, the server expands the effective width of each line to account for shifts.

**How do I see the parts of the spectrum that are usable?**
The `get_retained_coverage` tool calculates the clear portions of the spectrum that are not affected by the telluric absorption profiles.
