This demo notebook demonstrates the following:
In [4]:
import opsimsummary as oss
In [1]:
from opsimsummary import OpSimOutput
In [25]:
import os
We use a small opsim output package for demonstration that is shipped with the package.
In [10]:
opsimdb = os.path.join(oss.__path__[0], 'example_data', 'enigma_1189_micro.db')
In [ ]:
In [12]:
opsout = OpSimOutput.fromOpSimDB(opsimdb, subset='unique_all')
In [1]:
opsout.propIDDict
In [14]:
opsout.summary['ditherInRA'] = opsout.summary.ditheredRA -opsout.summary.fieldRA
opsout.summary['ditherInDec'] = opsout.summary.ditheredDec -opsout.summary.fieldDec
In [16]:
opsout.summary.query('propID == 366').ditherInRA.unique()
Out[16]:
In [17]:
opsout.summary.query('propID == 366').ditherInDec.unique()
Out[17]:
In [18]:
opsout.summary.query('propID == 364').ditherInRA.unique()
Out[18]:
In [19]:
opsout.summary.query('propID == 364').ditherInDec.unique()
Out[19]:
In [20]:
opsout_likemaf = OpSimOutput.fromOpSimDB(opsimdb, subset='unique_all', zeroDDFDithers=False)
In [21]:
opsout_likemaf.summary['ditherInRA'] = opsout_likemaf.summary.ditheredRA -opsout_likemaf.summary.fieldRA
opsout_likemaf.summary['ditherInDec'] = opsout_likemaf.summary.ditheredDec -opsout_likemaf.summary.fieldDec
In [24]:
opsout_likemaf.summary.query('propID == 366').ditherInRA.unique()
Out[24]:
In [ ]: