def getDistPlot1__For(district_name): # district_name = "DHAKA" # with open('Data/District/web_plot_1/'+district_name+".json", 'r') as f: # plot_data = json.load(f) # return jsonify(plot_data) # return BD_MapLoader.testPlotly() return DistrictDataLoader.getPlot1__For(district_name)
def getheatmap__combined(): # mapdata = BD_MapLoader.getRandomHeatMap() mapdata = DistrictDataLoader.get_risk_data() mapdata_list = [] for district in mapdata: obj = copy.deepcopy(mapdata[district]) obj['district'] = district mapdata_list.append(obj) mapdata_list = sorted(mapdata_list, key=itemgetter(DistrictDataLoader.present), reverse=True) return jsonify(mapdata_list)
def get_dt_before_15(): return jsonify(DistrictDataLoader.get_dt_before_15())
def latest_dt(): return jsonify(DistrictDataLoader.get_latest_dt())
def get_dt_value__For(district): return jsonify(DistrictDataLoader.get_dt_value__For(district))
def get_rt_value_arnab(): return jsonify(DistrictDataLoader.get_rt_value())
def before_15_rt__arnab(): return jsonify(DistrictDataLoader.get_rt_before_15())
def getForcastTable__For(district_name): return jsonify(DistrictDataLoader.getForcastTable__For(district_name))
def getZoneRisk__For(district_name): return DistrictDataLoader.getZoneRisk__For(district_name)
def getDistPlot2__For(district_name): return DistrictDataLoader.getPlot2__For(district_name)
def getheatmap__array(): mapdata = DistrictDataLoader.getRiskMap__Array() return jsonify(mapdata)
def getheatmap__future(): mapdata = DistrictDataLoader.getRiskMap__future() return jsonify(mapdata)
def getheatmap(): # mapdata = BD_MapLoader.getRandomHeatMap() mapdata = DistrictDataLoader.getRiskMap__present() return jsonify(mapdata)