> For the complete documentation index, see [llms.txt](https://www.projectpanoptes.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://www.projectpanoptes.org/build/deploy/polar-alignment/polar-aligning-panoptes/find-misalignment.md).

# Find Misalignment

How to find polar alignment errors.

## 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
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 that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://www.projectpanoptes.org/build/deploy/polar-alignment/polar-aligning-panoptes/find-misalignment.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
