def hogs_all_stands(): ''' page for plotting hogs photographed at all stands''' if request.method == 'POST': days = request.form['days'] else: days = 'ALL' animal = 'hogs' time, df, days = web_get_data.all_stands(animal, days) web_plot_data.plot_all_stands(df, animal, days) templateData = {'time' : time} return render_template('hogs_all_stands.html', **templateData)
def hogs_time_histogram(): ''' page for plotting observations by the hour for a stand''' days = request.form.get('days', 'ALL') stand = request.form.get('stand', 'ALL') print('Stand = ' +stand) print('Days = ' +days) animal = 'hogs' time, df, num_days = web_get_data.all_stands(animal, days) web_plot_data.stand_time_histogram(df, animal, num_days, stand) templateData = {'time' : time} return render_template('hogs_time_histogram.html', **templateData)
def hogs_days_plot(): ''' page for plotting hogs observations by day''' days = request.form.get('days', 'ALL') stand = request.form.get('stand', 'ALL') print('Stand = ' +stand) print('Days = ' +days) animal = 'hogs' time, df, num_days = web_get_data.all_stands(animal, days) web_plot_data.days_plot(df, animal, num_days, stand) templateData = {'time': time} return render_template('hogs_days_plot.html', **templateData)
def deer_lunar_plot(): ''' page for plotting deer observations by the lunar cycle''' days = request.form.get('days', 'ALL') stand = request.form.get('stand', 'ALL') print('Stand = ' +stand) print('Days = ' +days) animal = 'deer' time, df, num_days = web_get_data.all_stands(animal, days) web_plot_data.lunar_plot(df, animal, num_days, stand) templateData = {'time': time} return render_template('deer_lunar_plot.html', **templateData)