Commit f6a42ef5 authored by Alexandre Beelen's avatar Alexandre Beelen
parents c6c7635e a2237f6f
......@@ -9,6 +9,47 @@
* raw catalogs are also present
* fits votable and ds9 reg are produced
## Usage
### IDL
You must clone the repository and read the fits files with ``mrdfits```
```idl
GOODS_dir = 'GOODSN/cat/'
GOODSH_cat = mrdfits(GOODS_DIR + 'GOODSH_DR1.fits', 1)
N2CLS_cat = mrdfits(GOODS_DIR + 'Geach2017.fits', 1)
```
### Python
You can use clone the repository and read the datafiles
```python
from astropy.table import Table
GOODS_dir = 'GOODSN/cat/'
GOODSH_cat = Table.read(GOODS_dir + 'GOODSH_DR1.fits')
N2CLS_cat = Table.read(GOODS_dir + 'Geach2017.fits')
```
or use the ``astropy.utils.data.download_file`` helper to access the catalog :
```python
from astropy.utils.data import download_file
from astropy.table import Table
GOODS_dir = 'https://gitlab.lam.fr/N2CLS/AncillaryData/raw/master/GOODSN/cat/'
GOODSH_cat = Table.read(download_file(GOODS_dir + 'GOODSH_DR1.fits', cache=True))
N2CLS_cat = Table.read(download_file(GOODS_dir + 'Geach2017.fits', cache=True))
```
## GOODS
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment