# Find Misalignment

## Step 1: Take observations

You can use `pocs run alignment` to take a series of pictures that samples the sky. This procedure will produce a series of pictures for use in the analysis steps below. There are a number of configurable options but the default should be fine for a first step:

```sh
$ pocs run alignment --help
Usage: pocs run alignment [OPTIONS]

 Runs POCS in alignment mode.
 Not specifying coordinates is the same as the following:     -c 40,90 -c 55,60 -c 55,120 -c 70,210 -c 70,330

╭─ Options ────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ --coords         -c      TEXT     Alt/Az coordinates to use, e.g. 40,55 [default: None]                      |
│ --exptime        -e      FLOAT    Exposure time in seconds. [default: 30.0]                                  │
│ --num-exposures  -n      INTEGER  Number of exposures. [default: 5]                                          │
│ --field-name     -f      TEXT     Name of field. [default: PolarAlignment]                                   │
│ --help                            Show this message and exit.                                                │
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
```

## Step 2: Download drift data from the observations

* Beginner's tutorial on how to create, open and run a Jupyter notebook: <https://www.dataquest.io/blog/jupyter-notebook-tutorial/>
* Download the Jupyter notebook file `PANOPTES - 03 Drift Observation Polar Alignment.ipynb` in this [link](https://drive.google.com/drive/folders/14kkXs1TpZZruQF1LR08h_mK0bik6dmQn?usp=share_link) to your local laptop/computer.
* Follow the steps in the Jupyter Notebook, run one cell at a time consecutively until you reach the end of the notebook.

## Step 3: Fix misalignment in your mount

* Use the alt (deg) and az (deg) values obtained from the notebook to do the polar alignment as described in [Fix Misalignment](/build/deploy/polar-alignment/polar-aligning-panoptes/fix-misalignment.md).

{% content-ref url="/pages/cxvTcvnnw9A5h0X5kTpk" %}
[Fix Misalignment](/build/deploy/polar-alignment/polar-aligning-panoptes/fix-misalignment.md)
{% endcontent-ref %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://www.projectpanoptes.org/build/deploy/polar-alignment/polar-aligning-panoptes/find-misalignment.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.
