#NEWLINE# def __init__( self , source_datacube = None , default_tile_type_id = 1 ) : #NEWLINE# #INDENT# 'Constructor\n        Arguments:\n            source_datacube: Optional DataCube object whose connection and data will be shared\n            tile_type_id: Optional tile_type_id value (defaults to 1)\n        ' #NEWLINE# if source_datacube : #NEWLINE# #INDENT# self . __dict__ = copy ( source_datacube . __dict__ ) #NEWLINE# args = self . parse_args ( ) #NEWLINE# for attribute_name in args . __dict__ . keys ( ) : #NEWLINE# #INDENT# attribute_value = args . __dict__ [ attribute_name ] #NEWLINE# self . __setattr__ ( attribute_name , attribute_value ) #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# DataCube . __init__ ( self ) #NEWLINE# #UNINDENT# try : #NEWLINE# #INDENT# self . start_date = datetime . strptime ( self . start_date , '%Y%m%d' ) . date ( ) #NEWLINE# #UNINDENT# except : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# self . start_date = datetime . strptime ( self . start_date , '%d/%m/%Y' ) . date ( ) #NEWLINE# #UNINDENT# except : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# self . start_date = datetime . strptime ( self . start_date , '%Y-%m-%d' ) . date ( ) #NEWLINE# #UNINDENT# except : #NEWLINE# #INDENT# self . start_date = None #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# try : #NEWLINE# #INDENT# self . end_date = datetime . strptime ( self . end_date , '%Y%m%d' ) . date ( ) #NEWLINE# #UNINDENT# except : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# self . end_date = datetime . strptime ( self . end_date , '%d/%m/%Y' ) . date ( ) #NEWLINE# #UNINDENT# except : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# self . end_date = datetime . strptime ( self . end_date , '%Y-%m-%d' ) . date ( ) #NEWLINE# #UNINDENT# except : #NEWLINE# #INDENT# self . end_date = None #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# try : #NEWLINE# #INDENT# self . thumbnail_size = int ( self . thumbnail_size ) #NEWLINE# #UNINDENT# except : #NEWLINE# #INDENT# self . thumbnail_size = 512 #NEWLINE# #UNINDENT# try : #NEWLINE# #INDENT# self . min_path = int ( self . min_path ) #NEWLINE# #UNINDENT# except : #NEWLINE# #INDENT# self . min_path = None #NEWLINE# #UNINDENT# try : #NEWLINE# #INDENT# self . max_path = int ( self . max_path ) #NEWLINE# #UNINDENT# except : #NEWLINE# #INDENT# self . max_path = None #NEWLINE# #UNINDENT# try : #NEWLINE# #INDENT# self . min_row = int ( self . min_row ) #NEWLINE# #UNINDENT# except : #NEWLINE# #INDENT# self . min_row = None #NEWLINE# #UNINDENT# try : #NEWLINE# #INDENT# self . max_row = int ( self . max_row ) #NEWLINE# #UNINDENT# except : #NEWLINE# #INDENT# self . max_row = None #NEWLINE# #UNINDENT# self . style_dict = { #NEWLINE# #INDENT# 'LabelStyle' : { #NEWLINE# #INDENT# 'color' : '9900ffff' , #NEWLINE# 'scale' : 1 , #NEWLINE# #UNINDENT# } , #NEWLINE# 'LineStyle' : { #NEWLINE# #INDENT# 'color' : '990000ff' , #NEWLINE# 'width' : 2 , #NEWLINE# #UNINDENT# } , #NEWLINE# 'PolyStyle' : { #NEWLINE# #INDENT# 'color' : '997f7fff' , #NEWLINE# 'fill' : 1 , #NEWLINE# 'outline' : 1 , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# }