Commit 9de39b0f authored by Alexandre Beelen's avatar Alexandre Beelen

First commit for Mai 2018 run

parents
CATALOG N2CLS.sou
OBSERVATORY veleta
TIME 00:00 15-MAY-2018
HORIZON /SOURCE /NIGHT_MARKS
HARDCOPY ASTRO.EPS
\ No newline at end of file
import astroplan
from astropy.table import Table
from astropy.coordinates import SkyCoord, EarthLocation
from astropy.time import Time
from astroplan import FixedTarget, Observer
from astroplan.plots import plot_airmass
import matplotlib.pyplot as plt
plt.ion()
time = Time('2018-05-15 00:00:00')
sources = Table.read('N2CLS.sou', format='ascii.no_header', names=['name', 'sys', 'equinox', 'RA', 'DEC'])
sources['SkyCoord'] = SkyCoord(sources['RA'], sources['DEC'], unit=("hourangle", "deg"))
targets = []
for source in sources:
targets.append(FixedTarget(source['SkyCoord'], source['name']))
pico = Observer(EarthLocation.from_geodetic('-03:23:55.51', '37:04:06.29', 2850.0))
fig, ax = plt.subplots()
plot_airmass(targets, pico, time, ax=ax, brightness_shading=True, altitude_yaxis=True)
ax.legend()
fig.tight_layout()
fig.savefig('astroplan.png')
GOODSN EQ 2000 12:37:00.000 62:15:00.000
COSMOS EQ 2000 10:00:00.000 02:15:00.000
# Compute visibility of the N2CLS fields
## GILDAS/ASTRO
Change the date run in N2CLS.astro
run
```bash
astro @N2CLS.astro
```
## Astropy/astroplan
Change the date in run in N2CLS.py
run
```bash
python N2CLS.py
```
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