#!/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['cal slope'] = { # this entry should correspond to the name in the data file 'variable_name': 'calibration_slope' } setOfVariables['cal slope degrade'] = { # this entry should correspond to the name in the data file 'variable_name': 'calibration_slope_degrade' } setOfVariables['cal offset'] = { # this entry should correspond to the name in the data file 'variable_name': 'calibration_offset' } 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['cal solar const'] = { # this entry should correspond to the name in the data file 'variable_name': 'calibration_solar_constant' } 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['ch 1 refl'] = { # this entry should correspond to the name in the data file 'variable_name': 'channel_1_reflectance', '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 2 refl'] = { # this entry should correspond to the name in the data file 'variable_name': 'channel_2_reflectance', '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 3 refl'] = { # this entry should correspond to the name in the data file 'variable_name': 'channel_3_reflectance', '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 4 refl'] = { # this entry should correspond to the name in the data file 'variable_name': 'channel_4_reflectance', '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 5 refl'] = { # this entry should correspond to the name in the data file 'variable_name': 'channel_5_reflectance', '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 6 refl'] = { # this entry should correspond to the name in the data file 'variable_name': 'channel_6_reflectance', '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 refl'] = { # this entry should correspond to the name in the data file 'variable_name': 'channel_7_reflectance', '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 emiss'] = { # this entry should correspond to the name in the data file 'variable_name': 'channel_7_emissivity', '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 bt'] = { # this entry should correspond to the name in the data file 'variable_name': 'channel_7_brightness_temperature', '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 bt'] = { # this entry should correspond to the name in the data file 'variable_name': 'channel_8_brightness_temperature', '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 9 bt'] = { # this entry should correspond to the name in the data file 'variable_name': 'channel_9_brightness_temperature', '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 bt'] = { # this entry should correspond to the name in the data file 'variable_name': 'channel_10_brightness_temperature', '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 bt'] = { # this entry should correspond to the name in the data file 'variable_name': 'channel_11_brightness_temperature', '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 bt'] = { # this entry should correspond to the name in the data file 'variable_name': 'channel_12_brightness_temperature', '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 13 bt'] = { # this entry should correspond to the name in the data file 'variable_name': 'channel_13_brightness_temperature', '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 bt'] = { # this entry should correspond to the name in the data file 'variable_name': 'channel_14_brightness_temperature', '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 bt'] = { # this entry should correspond to the name in the data file 'variable_name': 'channel_15_brightness_temperature', '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 bt'] = { # this entry should correspond to the name in the data file 'variable_name': 'channel_16_brightness_temperature', '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 }