# MAPIR Scripts

## MAPIR Scripts

- [Welcome](https://mapir.gitbook.io/mapir-scripts/master.md): Welcome to our collection of Python scripts for the MAPIR cameras.
- [SETUP: DO THIS FIRST](https://mapir.gitbook.io/mapir-scripts/setup-do-this-first.md): To run the scripts in this guide please follow the below instructions:
- [Convert RAW+JPG to TIFF](https://mapir.gitbook.io/mapir-scripts/survey3-cameras/convert-raw+jpg-to-tiff.md): Convert the Survey3 RAW+JPG pair of images into TIFF images
- [White Balance](https://mapir.gitbook.io/mapir-scripts/survey3-cameras/white-balance.md): Correct the RAW image color balance of the Survey3 RGB images
- [Vignette (Flat Field) Correction](https://mapir.gitbook.io/mapir-scripts/survey3-cameras/vignette-flat-field-correction.md): Correct the vignette of the Survey3 images
- [PWM Control (from RasPi)](https://mapir.gitbook.io/mapir-scripts/survey3-cameras/pwm-control-from-raspi.md): Python scripts to control the Survey3 using a Raspberry Pi computer
- [Convert RAW(.mapir) to TIFF](https://mapir.gitbook.io/mapir-scripts/kernel2-cameras/convert-raw-.mapir-to-tiff.md): Use the following information to convert the Kernel2 RAW images into TIFF images.
- [White Balance](https://mapir.gitbook.io/mapir-scripts/kernel2-cameras/white-balance.md): Correct the RAW image color balance of the Kernel2 RGB images
- [Vignette (Flat Field) Correction](https://mapir.gitbook.io/mapir-scripts/kernel2-cameras/vignette-flat-field-correction.md): Correct the vignette of the Kernel2 images
- [Connect to Kernel2 (TCP)](https://mapir.gitbook.io/mapir-scripts/kernel2-cameras/connect-to-kernel2-tcp.md): Send commands to connect to the Kernel2 camera array modules
- [Change Camera Settings](https://mapir.gitbook.io/mapir-scripts/kernel2-cameras/kernel2-camera-control.md): Send TCP commands to control the Kernel2 camera modules


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information, you can query the documentation dynamically by asking a question.
Perform an HTTP GET request on a page URL with the `ask` query parameter:
```
GET https://mapir.gitbook.io/mapir-scripts/master.md?ask=<question>
```
The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.
Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
