def gwn(result): """ Derive Groundwater Nitrogen and Phosphorus """ if 'error' in result: raise Exception(f'[gwn] {result["error"]}') result = parse(result) gr_nitr_conc, gr_phos_conc = groundwater_nitrogen_conc(result) return {'gr_nitr_conc': gr_nitr_conc, 'gr_phos_conc': gr_phos_conc}
def gwn(sjs_result): """ Derive Groundwater Nitrogen and Phosphorus """ if 'error' in sjs_result: raise Exception('[gwn] {}'.format(sjs_result['error'])) result = parse(sjs_result) gr_nitr_conc, gr_phos_conc = groundwater_nitrogen_conc(result) return {'gr_nitr_conc': gr_nitr_conc, 'gr_phos_conc': gr_phos_conc}