def download_reeks(request): 'Download de berekende reeks' x = request.GET.get('x') y = request.GET.get('y') startdatum = request.GET.get('startdatum') einddatum = request.GET.get('einddatum') GWS = maak_plotje2(x, y, startdatum, einddatum, 'csv')[0] startdatum = maak_plotje2(x, y, startdatum, einddatum, 'csv')[1] einddatum = maak_plotje2(x, y, startdatum, einddatum, 'csv')[2] return series_as_csv(GWS, x, y, startdatum, einddatum)
def ftmsql(request): 'Grondwaterstand-sql' x = request.GET.get('x') y = request.GET.get('y') startdatum = request.GET.get('startdatum') einddatum = request.GET.get('einddatum') data = maak_plotje2(x, y, startdatum, einddatum, 'plot') plotje = data[0] gt = data[1] ghg = data[2] glg = data[3] gvg = data[4] startdatum = data[5] einddatum = data[6] bergingscoefficient = data[7] drainweerstand = data[8] qbot =data[9] ontwateringsbasis = data[10] nummer_meteostation=data[11] naam_meteostation = data[12] return render_to_response("ftm/grafiek.html", { 'x':x, 'y':y, 'plotje': plotje, 'ghg':ghg, 'glg':glg, 'gvg':gvg, 'gt' :gt, 'startdatum':startdatum, 'einddatum':einddatum,'bergingscoefficient': bergingscoefficient, 'drainweerstand':drainweerstand, 'qbot':qbot, 'ontwateringsbasis':ontwateringsbasis, 'nummer_meteostation':nummer_meteostation, 'naam_meteostation':naam_meteostation})