In [1]:
import wisps
import splat
import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
import astropy.units as u
%matplotlib inline
In [2]:
pnts=wisps.OBSERVED_POINTINGS
In [3]:
tabl=pd.DataFrame()
In [4]:
tabl['Pointing']=[x.name.replace('par', 'wisps-').upper() for x in pnts]
tabl['l']=[x.coord.galactic.l.to(u.deg) for x in pnts]
tabl['b']=[x.coord.galactic.b.to(u.deg) for x in pnts]
tabl['G141time']=[int(np.mean(x.exposure_time)) for x in pnts]
tabl['obsdate']=[x.observation_date[0] for x in pnts]
In [5]:
def round_float(x):
return np.round(x, 1)
In [6]:
mags_df=pd.DataFrame([x.mag_limits for x in pnts]).applymap(round_float)
In [7]:
df=tabl.join(mags_df)
In [8]:
df
Out[8]:
In [9]:
df.to_latex(wisps.LIBRARIES+'/pointings.tex', index=False, na_rep=' ')
In [10]:
#wisps.datasets['stars']
In [ ]: