#!/usr/bin/env python # encoding: utf-8 """ Glance config file for Geocat v0.8 functionality test comparisons. Created by Graeme Martin 20100223. 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 # info on the latitude and longitude variables that will be used lat_lon_info = {} lat_lon_info['lon_lat_epsilon'] = 0.0001 satzenFilter = (lambda data, filterData: filters.filter_based_on_additional_data_set_min_max_bounds(data, filterData, missingValue=-32768, minOkFilterValue=-100, maxOkFilterValue=70)) # per variable defaults defaultValues = {} # 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['fk2 planck'] = { # this entry should correspond to the name in the data file 'variable_name': 'fk2_planck' } setOfVariables['relaz'] = { # this entry should correspond to the name in the data file 'variable_name': 'pixel_relative_azimuth_angle', 'variable_to_filter_on_a':'pixel_satellite_zenith_angle', 'variable_to_filter_on_b':'pixel_satellite_zenith_angle', 'variable_based_filter_a': satzenFilter, 'variable_based_filter_b': satzenFilter } setOfVariables['satzen'] = { # this entry should correspond to the name in the data file 'variable_name': 'pixel_satellite_zenith_angle', 'variable_to_filter_on_a':'pixel_satellite_zenith_angle', 'variable_to_filter_on_b':'pixel_satellite_zenith_angle', 'variable_based_filter_a': satzenFilter, 'variable_based_filter_b': satzenFilter } setOfVariables['fk1 planck'] = { # this entry should correspond to the name in the data file 'variable_name': 'fk1_planck' } setOfVariables['lon'] = { # this entry should correspond to the name in the data file 'variable_name': 'pixel_longitude', 'variable_to_filter_on_a':'pixel_satellite_zenith_angle', 'variable_to_filter_on_b':'pixel_satellite_zenith_angle', 'variable_based_filter_a': satzenFilter, 'variable_based_filter_b': satzenFilter } setOfVariables['surface type'] = { # this entry should correspond to the name in the data file 'variable_name': 'pixel_surface_type', 'variable_to_filter_on_a':'pixel_satellite_zenith_angle', 'variable_to_filter_on_b':'pixel_satellite_zenith_angle', 'variable_based_filter_a': satzenFilter, 'variable_based_filter_b': satzenFilter } setOfVariables['eco type'] = { # this entry should correspond to the name in the data file 'variable_name': 'pixel_ecosystem_type', 'variable_to_filter_on_a':'pixel_satellite_zenith_angle', 'variable_to_filter_on_b':'pixel_satellite_zenith_angle', 'variable_based_filter_a': satzenFilter, 'variable_based_filter_b': satzenFilter } setOfVariables['bc1 planck'] = { # this entry should correspond to the name in the data file 'variable_name': 'bc1_planck' } setOfVariables['solzen'] = { # this entry should correspond to the name in the data file 'variable_name': 'pixel_solar_zenith_angle', 'variable_to_filter_on_a':'pixel_satellite_zenith_angle', 'variable_to_filter_on_b':'pixel_satellite_zenith_angle', 'variable_based_filter_a': satzenFilter, 'variable_based_filter_b': satzenFilter } setOfVariables['lat'] = { # this entry should correspond to the name in the data file 'variable_name': 'pixel_latitude', 'variable_to_filter_on_a':'pixel_satellite_zenith_angle', 'variable_to_filter_on_b':'pixel_satellite_zenith_angle', 'variable_based_filter_a': satzenFilter, 'variable_based_filter_b': satzenFilter } setOfVariables['bc2 planck'] = { # this entry should correspond to the name in the data file 'variable_name': 'bc2_planck' } setOfVariables['channel wavenumber'] = { # this entry should correspond to the name in the data file 'variable_name': 'channel_wavenumber' } setOfVariables['satzen'] = { # this entry should correspond to the name in the data file 'variable_name': 'pixel_satellite_zenith_angle', 'variable_to_filter_on_a':'pixel_satellite_zenith_angle', 'variable_to_filter_on_b':'pixel_satellite_zenith_angle', 'variable_based_filter_a': satzenFilter, 'variable_based_filter_b': satzenFilter } setOfVariables['nwp x index'] = { # this entry should correspond to the name in the data file 'variable_name': 'nwp_x_index', 'variable_to_filter_on_a':'pixel_satellite_zenith_angle', 'variable_to_filter_on_b':'pixel_satellite_zenith_angle', 'variable_based_filter_a': satzenFilter, 'variable_based_filter_b': satzenFilter } setOfVariables['nwp y index'] = { # this entry should correspond to the name in the data file 'variable_name': 'nwp_y_index', 'variable_to_filter_on_a':'pixel_satellite_zenith_angle', 'variable_to_filter_on_b':'pixel_satellite_zenith_angle', 'variable_based_filter_a': satzenFilter, 'variable_based_filter_b': satzenFilter } setOfVariables['ch 7 brightness temperature clear'] = { # this entry should correspond to the name in the data file 'variable_name': 'channel_7_brightness_temperature_clear', 'variable_to_filter_on_a':'pixel_satellite_zenith_angle', 'variable_to_filter_on_b':'pixel_satellite_zenith_angle', 'variable_based_filter_a': satzenFilter, 'variable_based_filter_b': satzenFilter } setOfVariables['ch 8 brightness temperature clear'] = { # this entry should correspond to the name in the data file 'variable_name': 'channel_8_brightness_temperature_clear', 'variable_to_filter_on_a':'pixel_satellite_zenith_angle', 'variable_to_filter_on_b':'pixel_satellite_zenith_angle', 'variable_based_filter_a': satzenFilter, 'variable_based_filter_b': satzenFilter } setOfVariables['ch 10 brightness temperature clear'] = { # this entry should correspond to the name in the data file 'variable_name': 'channel_10_brightness_temperature_clear', 'variable_to_filter_on_a':'pixel_satellite_zenith_angle', 'variable_to_filter_on_b':'pixel_satellite_zenith_angle', 'variable_based_filter_a': satzenFilter, 'variable_based_filter_b': satzenFilter } setOfVariables['ch 11 brightness temperature clear'] = { # this entry should correspond to the name in the data file 'variable_name': 'channel_11_brightness_temperature_clear', 'variable_to_filter_on_a':'pixel_satellite_zenith_angle', 'variable_to_filter_on_b':'pixel_satellite_zenith_angle', 'variable_based_filter_a': satzenFilter, 'variable_based_filter_b': satzenFilter } setOfVariables['ch 12 brightness temperature clear'] = { # this entry should correspond to the name in the data file 'variable_name': 'channel_12_brightness_temperature_clear', 'variable_to_filter_on_a':'pixel_satellite_zenith_angle', 'variable_to_filter_on_b':'pixel_satellite_zenith_angle', 'variable_based_filter_a': satzenFilter, 'variable_based_filter_b': satzenFilter } setOfVariables['ch 14 brightness temperature clear'] = { # this entry should correspond to the name in the data file 'variable_name': 'channel_14_brightness_temperature_clear', 'variable_to_filter_on_a':'pixel_satellite_zenith_angle', 'variable_to_filter_on_b':'pixel_satellite_zenith_angle', 'variable_based_filter_a': satzenFilter, 'variable_based_filter_b': satzenFilter } setOfVariables['ch 15 brightness temperature clear'] = { # this entry should correspond to the name in the data file 'variable_name': 'channel_15_brightness_temperature_clear', 'variable_to_filter_on_a':'pixel_satellite_zenith_angle', 'variable_to_filter_on_b':'pixel_satellite_zenith_angle', 'variable_based_filter_a': satzenFilter, 'variable_based_filter_b': satzenFilter } setOfVariables['ch 16 brightness temperature clear'] = { # this entry should correspond to the name in the data file 'variable_name': 'channel_16_brightness_temperature_clear', 'variable_to_filter_on_a':'pixel_satellite_zenith_angle', 'variable_to_filter_on_b':'pixel_satellite_zenith_angle', 'variable_based_filter_a': satzenFilter, 'variable_based_filter_b': satzenFilter }