Options:
  -h --help     Show this screen.
"""
from docopt import docopt

import pandas as pd
import os.path
import os
import struct
from glob import glob
from jsonlinesreader import JsonLinesReader
from fact.credentials import create_factdb_engine
from tqdm import tqdm

db = create_factdb_engine()
event_integer_value_order = [
    'Night',
    'Run',
    'Event',
    'Trigger',
]

NAMES = None

event_double_value_order = ['Az_deg', 'Zd_deg']


def main(inpath, outpath):
    night, run = night_run_from_inpath(inpath)
    runinfo = get_runinfo(night, run)
示例#2
0
def download_latest():
    factdb = credentials.create_factdb_engine()
    return pd.read_sql_table(table_name="RunInfo",
                             con=factdb,
                             columns=RUNINFO_KEYS)