#!/usr/bin/env python # encoding: utf-8 """ Created by Graeme Martin 20100216. Copyright (c) 2010 University of Wisconsin SSEC. All rights reserved. """ import glance.filters as filters import glance.constants as constants # general settings to control how reports are created settings = {} settings['useThreadsToControlMemory'] = False settings['shouldIncludeImages'] = True #settings['useSharedRangeForOriginal'] = True settings['doFork'] = False # info on the latitude and longitude variables that will be used lat_lon_info = {} # the name of the longitude variable lat_lon_info['longitude'] = 'Longitude' # the name of the latitude variable lat_lon_info ['latitude'] = 'Latitude' # per variable defaults defaultValues = { # the acceptable difference between file A and file B 'epsilon': 0.001, # the value to be interpreted as "missing" data 'missing_value': -999., # the allowed fraction of epsilon comparison failure # None indicates that variables should not be tested # on nearness of epsilon comparison 'epsilon_failure_tolerance': None, # the allowed fraction of non-finite data that differs # None indicates that variables should not be tested # on non-finite data similarity 'nonfinite_data_tolerance': None } # a list of all the variables to analyze # # If you wish to analyze all possible variables, # do not place any entries in the setOfVariables (ie. just # leave it as an empty dictionary) setOfVariables = {} setOfVariables['volash_ash_emiss'] = { # this entry should correspond to the name in the data file 'variable_name': 'AshEmiss', # the acceptable difference between file A and file B 'epsilon': .01, # the value to be interpreted as "missing" data for framework file 'missing_value': -999., 'data_filter_function_a': (lambda data: filters.set_to_value_between_bounds(data, -999, 0, 1.05)), 'data_filter_function_b': (lambda data: filters.set_to_value_between_bounds(data, -999, 0, 1.05)), # the allowed fraction of epsilon comparison failure # None indicates that variables should not be tested # on nearness of epsilon comparison 'epsilon_failure_tolerance': None, # the allowed fraction of non-finite data that differs # None indicates that variables should not be tested # on non-finite data similarity 'nonfinite_data_tolerance': None }