scripts/download_sen12.py
def _makeFilterList(self):
        '''Helper function that builds a filter list based off of the configuration file'''
        filters_before = None
        filters_after = None

        def _build_filters(filter_list):
            filters = []
            for f in filter_list:
                key = list(f.keys())[0]
                op = list(list(f.values())[0].keys())[0]
                val = list(list(f.values())[0].values())[0]
                filters.append(getattr(ee.Filter, op)(key, val))

            return filters

        if 'filters_before' in self.sensor:
            filters_before = _build_filters(self.sensor['filters_before'])

        if 'filters_after' in self.sensor:
            filters_after = _build_filters(self.sensor['filters_after'])

        return filters_before, filters_after
Helper function that builds a filter list based off of the configuration file
Helper function that builds a filter list based off of the configuration file
Helper function that builds a filter list based off of the configuration file
def _makeFilterList(self):
        filters_before = None
        filters_after = None
        def _build_filters(filter_list):
            filters = []
            for f in filter_list:
                key = list(f.keys())[0]
                op = list(list(f.values())[0].keys())[0]
                val = list(list(f.values())[0].values())[0]
                filters.append(getattr(ee.Filter, op)(key, val))
            return filters
        if 'filters_before' in self.sensor:
            filters_before = _build_filters(self.sensor['filters_before'])
        if 'filters_after' in self.sensor:
            filters_after = _build_filters(self.sensor['filters_after'])
        return filters_before, filters_after
def _makeFilterList ( self ) : filters_before = None filters_after = None def _build_filters ( filter_list ) : filters = [ ] for f in filter_list : key = list ( f . keys ( ) ) [ 0 ] op = list ( list ( f . values ( ) ) [ 0 ] . keys ( ) ) [ 0 ] val = list ( list ( f . values ( ) ) [ 0 ] . values ( ) ) [ 0 ] filters . append ( getattr ( ee . Filter , op ) ( key , val ) ) return filters if 'filters_before' in self . sensor : filters_before = _build_filters ( self . sensor [ 'filters_before' ] ) if 'filters_after' in self . sensor : filters_after = _build_filters ( self . sensor [ 'filters_after' ] ) return filters_before , filters_after
Helper function that builds a filter list based off of the configuration file
Helper function that builds a filter list based off of the configuration file
'''Helper function that builds a filter list based off of the configuration file'''
self