#!/usr/bin/env python # encoding: utf-8 """ Glance config file to compare cloud products from Geocat to output from CONUS by Justin Otkin Created by Hong Zhang 20110405. Copyright (c) 2010 University of Wisconsin SSEC. All rights reserved. """ import glance.filters as filters # general settings to control how reports are created settings = {} settings['useThreadsToControlMemory'] = True settings['shouldIncludeImages'] = True settings['useSharedRangeForOriginal'] = True settings['doFork'] = False settings['detail_DPI'] = 300 # info on the latitude and longitude variables that will be used lat_lon_info = {} lat_lon_info['longitude'] = 'pixel_longitude' lat_lon_info['latitude'] = 'pixel_latitude' lat_lon_info['longitude_alt_name_in_b'] = 'lon' lat_lon_info['latitude_alt_name_in_b'] = 'lat' lat_lon_info['lon_lat_epsilon'] = 0.01 # per variable defaults defaultValues = { 'epsilon': 0.0, 'epsilon_failure_tolerance': None, 'nonfinite_data_tolerance': None, 'missing_value_alt_in_b': -999 } # a list of all the variables to analyze # setOfVariables = {} setOfVariables['longitude'] = { # this entry should correspond to the name in the data file 'variable_name': 'pixel_longitude', 'alternate_name_in_B': 'lon' } setOfVariables['latitude'] = { # this entry should correspond to the name in the data file 'variable_name': 'pixel_latitude', 'alternate_name_in_B': 'lat' } setOfVariables['cloud_top_pressure'] = { # this entry should correspond to the name in the data file 'variable_name': 'baseline_cld_hght_seviri_cloud_top_pressure', 'alternate_name_in_B': 'CTOP_PRES', # note: will only be applied to file A data 'data_filter_function_a': (lambda data: filters.set_to_value_between_bounds(data, -32768, 100, 1000)), # note: will only be applied to file B data 'data_filter_function_b': (lambda data: filters.set_to_value_between_bounds(data, -999, 100, 1000)) } setOfVariables['cloud_top_temperature'] = { # this entry should correspond to the name in the data file 'variable_name': 'baseline_cld_hght_seviri_cloud_top_temperature', 'alternate_name_in_B': 'CTOP_TEMP', # note: will only be applied to file A data 'data_filter_function_a': (lambda data: filters.set_to_value_between_bounds(data, -32768, 200, 300)), # note: will only be applied to file B data 'data_filter_function_b': (lambda data: filters.set_to_value_between_bounds(data, -999, 200, 300)) }