Esempio n. 1
0
def gerenciador(cont):    
    
    numberofChange = [kk for kk in params['conta'].keys()]

    if str(cont) in numberofChange:
        
        gee.switch_user(params['conta'][str(cont)])
        gee.init()        
        gee.tasks(n= params['numeroTask'], return_list= True)        
    
    elif cont > params['numeroLimit']:
        cont = 0
    
    cont += 1    
    return cont
Esempio n. 2
0
def gerenciador(cont, param):
    #0, 18, 36, 54]
    #=====================================#
    # gerenciador de contas para controlar#
    # processos task no gee               #
    #=====================================#
    numberofChange = [kk for kk in param['conta'].keys()]

    if str(cont) in numberofChange:

        gee.switch_user(param['conta'][str(cont)])
        gee.init()
        gee.tasks(n=param['numeroTask'], return_list=True)

    elif cont > param['numeroLimit']:
        cont = 0

    cont += 1
    return cont
import ee, gee
import argparse
import re

gee.init()

#
# CONFIG
#
CRS = "EPSG:4326"
SCALE = 27.829872698318393
Z_LEVELS = [
    156000, 78000, 39000, 20000, 10000, 4900, 2400, 1200, 611, 305, 152, 76, 38
]
MAX_PIXS = 65500
FULL_INTENSITY = 255
BANDS = ['intensity', 'blank', 'lossyear']
PROJECT_ROOT = 'projects/wri-datalab'
HANSEN_COMPOSITE_IMG = 'HansenComposite_18'
HANSEN_ZLEVEL_FOLDER = 'HansenZLevel_18'
GCE_TILE_ROOT = 'Hansen18'
THRESHOLDS = [10, 15, 20, 25, 30, 50, 75]
DEFAULT_GEOM_NAME = 'hansen_world'
DEFAULT_VERSION = 1
TEST_RUN = False
NOISY = True
Z_MAX = 12

#
# GEOMETRY
#