Newer
Older
[](https://csst.readthedocs.io/en/latest/?badge=latest)
## homepage
*Gitlab*: [https://csst-tb.bao.ac.cn/code/csst-l1/csst_proto](https://csst-tb.bao.ac.cn/code/csst-l1/csst_proto)
`csst_proto` can be installed with the following shell command
```bash
git clone https://csst-tb.bao.ac.cn/code/csst-l1/csst_proto.git
pip install -r requirements.txt
python setup.py install
```
or a single-line command
```bash
sh -c "$(curl -fsSL https://csst-tb.bao.ac.cn/code/csst-l1/csst_proto/-/raw/main/install.sh)"
## instruction
A simple example on how to use this package:
```python
import numpy as np
from csst_proto import flip_image, print_data
from astropy.io import fits
# read an L0 image
img = fits.getdata("CSST_L0_img.fits")
# flip the image
img_flipped = flip_image(img=img)
```
## algorithm
The `csst_proto` uses an awesome algorithm based on `numpy.ndarray` indices to flip images.