def run_station_finder(self, form_cleaned): vX_list = [] for el_idx, variable in enumerate(form_cleaned['variables']): el,base_temp = WRCCUtils.get_el_and_base_temp(variable) vX_list.append(str(WRCCData.ACIS_ELEMENTS_DICT[el]['vX'])) by_type = WRCCData.ACIS_TO_SEARCH_AREA[form_cleaned['area_type']] val = form_cleaned[WRCCData.ACIS_TO_SEARCH_AREA[form_cleaned['area_type']]] dr = [form_cleaned['start_date'],form_cleaned['end_date']] ec = form_cleaned['variables_constraints'] dc = form_cleaned['dates_constraints'] edc = ec + '_' + dc station_json, f_name = AcisWS.station_meta_to_json(by_type, val, el_list=vX_list,time_range=dr, constraints=edc) return station_json, f_name
def run_station_finder(self, form_cleaned): vX_list = [] for el_idx, element in enumerate(form_cleaned["elements"]): el, base_temp = WRCCUtils.get_el_and_base_temp(element) vX_list.append(str(WRCCData.ACIS_ELEMENTS_DICT[el]["vX"])) by_type = WRCCData.ACIS_TO_SEARCH_AREA[form_cleaned["area_type"]] val = form_cleaned[WRCCData.ACIS_TO_SEARCH_AREA[form_cleaned["area_type"]]] dr = [form_cleaned["start_date"], form_cleaned["end_date"]] ec = form_cleaned["elements_constraints"] dc = form_cleaned["dates_constraints"] edc = ec + "_" + dc station_json, f_name = AcisWS.station_meta_to_json( by_type, val, el_list=vX_list, time_range=dr, constraints=edc ) return station_json, f_name