#!/usr/bin/env python # encoding: utf-8 """ This configuration describes the mapping between the vol ash product variable names in GEOCAT and the AIT Framework. This file makes use of the general mapping encoded in "geocatToFWAIT-CloudAndOzoneMap.py". Created by Eva Schiffer August 2009. Copyright (c) 2009 University of Wisconsin SSEC. All rights reserved. """ # we will be using the info in this file for most of our setup import geocatToFWAIT_CloudAndOzoneMap as GtoF import glance.filters as filters settings = {} settings.update(GtoF.settings) lat_lon_info = {} lat_lon_info.update(GtoF.lat_lon_info) defaultValues = {} defaultValues.update(GtoF.defaultValues) # a list of all the variables to analyze setOfVariables = {} setOfVariables.update(GtoF.setOfVariables) # add fog only data setOfVariables['Fog Mask'] = { 'variable_name': 'goesr_fog_fog_mask', 'alternate_name_in_B': 'Fog_Mask' } setOfVariables['Fog Prob'] = { 'variable_name': 'goesr_fog_fog_probability', 'alternate_name_in_B': 'Fog_Prob', 'data_filter_function_a': (lambda data: filters.set_to_value_between_bounds(data,-999,0, 100)), 'data_filter_function_b': (lambda data: filters.set_to_value_between_bounds(data,-999, 0, 100)) } setOfVariables['Fog Depth'] = { 'variable_name': 'goesr_fog_fog_depth', 'alternate_name_in_B': 'Fog_Depth', 'data_filter_function_a': (lambda data: filters.set_to_value_between_bounds(data,-999, 0, 1500)), 'data_filter_function_b': (lambda data: filters.set_to_value_between_bounds(data,-999, 0, 1500)) }