#!/usr/bin/env python # encoding: utf-8 """ Glance config file to compare sfc emissivity output from Geocat to output from FWAIT Created by Graeme Martin 20101119. Copyright (c) 2010 University of Wisconsin SSEC. All rights reserved. """ import glance.filters as filters import numpy as np # 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['longitude'] = 'imager_prof_retr_msg_Lon_reduced' lat_lon_info['latitude'] = 'imager_prof_retr_msg_Lat_reduced' lat_lon_info['longitude_alt_name_in_b'] = 'Longitude' lat_lon_info['latitude_alt_name_in_b'] = 'Latitude' lat_lon_info['lon_lat_epsilon'] = 0.0001 # filter works on (m x n) array, and profiles are (nprof x m x n), so need to apply filter to each # level data[i,:,:] and aggregate output back into a 3D array #numClrPixelsFilter = (lambda data, filterData: np.array([filters.filter_based_on_additional_data_set_min_max_bounds( \ # data[i,:,:], filterData, missingValue=-999.0, minOkFilterValue=9, maxOkFilterValue=9) for i in range(data.shape[0]) ] ) ) # per variable defaults defaultValues = { 'epsilon': None, 'epsilon_failure_tolerance': None, 'nonfinite_data_tolerance': None, # 'missing_value_alt_in_b': -999.0 # glance should be able to get from variable attributes } # a list of all the variables to analyze # setOfVariables = {} setOfVariables['msg temperature profile'] = { # this entry should correspond to the name in the data file 'variable_name': 'imager_prof_retr_msg_Tprof', 'alternate_name_in_B': 'TempProf', } setOfVariables['msg water profile'] = { # this entry should correspond to the name in the data file 'variable_name': 'imager_prof_retr_msg_Wprof', 'alternate_name_in_B': 'RHProf', }