#!/usr/bin/env python # encoding: utf-8 """ This configuration describes the mapping between the cloud and ozone product variable names in GEOCAT and the AIT Framework. This also inludes a filter to clean up some aberrant data for temporary testing purposes and should not be used for general comparisons. Created by Eva Schiffer August 2009. Copyright (c) 2009 University of Wisconsin SSEC. All rights reserved. """ import numpy as np import glance.filters as filters # various general settings to control how reports are created settings = {} # whether or not images should be generated and shown in the report settings['shouldIncludeImages'] = True # should we create multiple processes to make more than one image at a time? # turning on this option can cause glance to use a very large amount of system # resources (if your data set is particularly large, your machine may not have # enough), but will speed up image generation in cases where your data set is # relatively small or your machine is very powerful settings['doFork'] = False # the names of the latitude and longitude variables lat_lon_info = {} lat_lon_info['longitude'] = 'pixel_longitude' lat_lon_info['latitude'] = 'pixel_latitude' # the alternate names of the latitude and longitude in file B lat_lon_info['longitude_alt_name_in_b'] = 'pixel_longitude' lat_lon_info ['latitude_alt_name_in_b'] = 'pixel_latitude' # If the latitude and longitude are more different than this, we need to be # warned that there is something bad going on lat_lon_info['lon_lat_epsilon'] = 0.0 # per variable defaults defaultValues = { # this default is for our variables, type variables # like cloud mask will have individual epsilons # definied in their entries below 'epsilon': 0.0, # we will accept up to 1% of difference between the files # before we start looking more carefully at the problem 'epsilon_failure_tolerance': 0.0, # we will not accept any non finite data difference between the files 'nonfinite_data_tolerance': 0.0, # we only need to see plots of the variable data if the # variable fails comparison 'only_plot_on_fail': True } # a list of all the variables to analyze setOfVariables = {} # general variables setOfVariables['Latitude'] = { 'variable_name': 'pixel_latitude', } setOfVariables['Longitude'] = { 'variable_name': 'pixel_longitude', } setOfVariables['OT Grid Mag'] = { 'variable_name': 'overshootcouplet_overshooting_top_grid_magnitude', 'epsilon': 0.1, } setOfVariables['OT Grid BT14'] = { 'variable_name': 'overshootcouplet_overshooting_top_grid_bt14', 'epsilon': 0.1, } setOfVariables['OT Grid Flag'] = { 'variable_name': 'overshootcouplet_overshooting_top_grid_flag', 'epsilon': 0.1, } setOfVariables['OT Grid ID'] = { 'variable_name': 'overshootcouplet_overshooting_top_grid_ID_number', 'epsilon': 0.1, } setOfVariables['OT Num Anvil'] = { 'variable_name': 'overshootcouplet_overshooting_top_grid_number_of_anvil_pixels', 'epsilon': 0.1, } setOfVariables['TC BT14 Diff'] = { 'variable_name': 'overshootcouplet_overshooting_couplet_grid_bt14_difference', 'epsilon': 0.1, } setOfVariables['TC Grid Flg'] = { 'variable_name': 'overshootcouplet_overshooting_couplet_grid_flag', 'epsilon': 0.1, } setOfVariables['TC Match Grid ID'] = { 'variable_name': 'overshootcouplet_overshooting_couplet_grid_matching_ID', 'epsilon': 0.1, } setOfVariables['TC QA'] = { 'variable_name': 'overshootcouplet_overshooting_couplet_qa_flag', 'epsilon': 0.1, } setOfVariables['OT QA'] = { 'variable_name': 'overshootcouplet_overshooting_top_qa_flag', 'epsilon': 0.1, }