Beispiel #1
0
def get_conflicts(engine, year,Eplot,Cplot,TwoD, plotall, deg):
    if not plotall:
        Cdata = get_locs_db(engine, 'conflict', 'where year = {}'.format(year))
        Clats, Clons = get_coords_from_loc_db(engine, Cdata, 'conflictlc')
        Elats, Elons = get_eclipse_coords(engine, year)
    else:
        Clats, Clons, Elats, Elons = plot_all(engine)
    return plot2D(Elats,Elons,Eplot,Clats,Clons,Cplot,TwoD,deg)
Beispiel #2
0
def makethevideo(engine,year,Eplot,Cplot, plotall):
    if not plotall:
        Cdata = get_locs_db(engine, 'conflict', 'where year = {}'.format(year))
        Clats, Clons = get_coords_from_loc_db(engine, Cdata, 'conflictlc')
        Elats, Elons = get_eclipse_coords(engine, year)
    else:
        Clats, Clons, Elats, Elons = plot_all(engine)
    plotme(Elats,Elons,Eplot,Clats,Clons,Cplot)
Beispiel #3
0
def get_conflist(engine, year):
    loctxt = ''
    locs = get_locs_db(engine, 'conflict', 'where year = {}'.format(year), 'order by location')
    for loc in locs:
        loctxt += loc[0] + '\n\n'
    return loctxt