README.md 1.03 KiB
Newer Older
BO ZHANG's avatar
BO ZHANG committed
## csst_proto 
BO ZHANG's avatar
BO ZHANG committed
[![Documentation Status](https://readthedocs.org/projects/csst/badge/?version=latest)](https://csst.readthedocs.io/en/latest/?badge=latest)
 
BO ZHANG's avatar
BO ZHANG committed
CSST L1 pipeline prototype.
BO ZHANG's avatar
BO ZHANG committed

BO ZHANG's avatar
BO ZHANG committed
## homepage
*Gitlab*: [https://csst-tb.bao.ac.cn/code/csst-l1/csst_proto](https://csst-tb.bao.ac.cn/code/csst-l1/csst_proto)
BO ZHANG's avatar
BO ZHANG committed


BO ZHANG's avatar
BO ZHANG committed
## install
BO ZHANG's avatar
BO ZHANG committed

BO ZHANG's avatar
BO ZHANG committed
`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
BO ZHANG's avatar
BO ZHANG committed
cd csst_proto
BO ZHANG's avatar
BO ZHANG committed
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)"
BO ZHANG's avatar
BO ZHANG committed
```

BO ZHANG's avatar
BO ZHANG committed
## 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.