Module Expr Str Import alias Import alias Import alias Import alias Import alias ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias Assign NameStore Num Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad If UnaryOpNot AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assert CompareEq Call NameLoad NameLoad NameLoad Str Expr Call NameLoad AttributeLoad NameLoad attr NameLoad Str Str Assign NameStore Dict Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assert NameLoad BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str BinOpMod Str SubscriptLoad NameLoad Index Str Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call NameLoad NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str Str Assign SubscriptStore NameLoad Index Str Str Assign SubscriptStore NameLoad Index Str Num Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr Num attr Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr Num attr Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore BinOpMult Call AttributeLoad NameLoad attr BinOpSub NameLoad NameLoad BinOpAdd NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num AttributeLoad Call AttributeLoad NameLoad attr Num attr Call AttributeLoad SubscriptLoad NameLoad Index Str attr Str Assert NameLoad BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call NameLoad AttributeLoad NameLoad attr NameLoad Str Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str NameLoad Assign SubscriptStore NameLoad Index NameLoad NameLoad Return NameLoad decorator_list decorator_list If CompareEq NameLoad Str body FunctionDef arguments args NameParam NameParam defaults AttributeLoad NameLoad attr body If UnaryOpNot NameLoad body Return NameLoad Return Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list Assign NameStore Call NameLoad If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assert BoolOpAnd AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Assert AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Expr Call NameLoad AttributeLoad NameLoad attr NameLoad Str Str Expr Call AttributeLoad NameLoad attr Str Call NameLoad NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str For NameStore NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad keyword SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index Num Index Str keyword NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad
N/A N/A 
Created on 21/02/2013

@author: u76345
 N/A os N/A sys N/A logging N/A re N/A numpy datetime datetime time osgeo gdal agdc.stacker Stacker EOtools.utils log_multiline EOtools.stats temporal_stats N/A SCALE_FACTOR 10000 N/A console_handler N/A N/A logging StreamHandler N/A sys stdout N/A N/A N/A console_handler setLevel N/A logging INFO N/A console_formatter N/A N/A logging Formatter %(message)s N/A N/A N/A console_handler setFormatter console_formatter N/A logger N/A N/A logging getLogger __name__ N/A N/A N/A logger level N/A N/A N/A N/A logger setLevel N/A logging DEBUG N/A N/A N/A logger addHandler console_handler NDVIStacker N/A Stacker N/A N/A  Subclass of Stacker
    Used to implement specific functionality to create stacks of derived datasets.
     derive_datasets N/A N/A self input_dataset_dict stack_output_info tile_type_info N/A N/A N/A N/A N/A type input_dataset_dict dict input_dataset_dict must be a dict N/A N/A log_multiline N/A logger debug input_dataset_dict input_dataset_dict N/A output_dataset_dict N/A N/A nbar_dataset_info N/A input_dataset_dict N/A NBAR N/A nbar_dataset_path N/A nbar_dataset_info N/A tile_pathname N/A pqa_mask N/A N/A self get_pqa_mask N/A N/A input_dataset_dict N/A PQA N/A tile_pathname N/A nbar_dataset N/A N/A gdal Open nbar_dataset_path N/A nbar_dataset N/A Unable to open dataset %s nbar_dataset N/A N/A N/A logger debug Opened NBAR dataset %s nbar_dataset_path N/A no_data_value -32767 N/A output_stack_path N/A N/A N/A os path join N/A self output_dir NDVI_pqa_masked.vrt N/A output_tile_path N/A N/A N/A os path join N/A self output_dir N/A N/A re sub \.\w+$ N/A _NDVI%s N/A tile_type_info N/A file_extension N/A N/A N/A os path basename nbar_dataset_path N/A output_dataset_info N/A dict nbar_dataset_info N/A N/A output_dataset_info N/A tile_pathname output_tile_path N/A N/A output_dataset_info N/A band_name NDVI with PQA mask applied N/A N/A output_dataset_info N/A band_tag NDVI-PQA N/A N/A output_dataset_info N/A tile_layer 1 N/A near_ir_band_data N/A N/A N/A N/A nbar_dataset GetRasterBand 4 ReadAsArray N/A visible_band_data N/A N/A N/A N/A nbar_dataset GetRasterBand 3 ReadAsArray N/A N/A N/A logger debug near_ir_band_data = %s near_ir_band_data N/A N/A N/A logger debug visible_band_data = %s visible_band_data N/A N/A N/A logger debug SCALE_FACTOR = %s SCALE_FACTOR N/A data_array N/A N/A N/A numpy true_divide N/A near_ir_band_data visible_band_data N/A near_ir_band_data visible_band_data SCALE_FACTOR N/A N/A N/A self apply_pqa_mask data_array pqa_mask no_data_value N/A gdal_driver N/A N/A gdal GetDriverByName N/A tile_type_info N/A file_format N/A output_dataset N/A N/A gdal_driver Create output_tile_path N/A nbar_dataset RasterXSize N/A nbar_dataset RasterYSize 1 N/A N/A N/A nbar_dataset GetRasterBand 1 DataType N/A N/A N/A tile_type_info N/A format_options split , N/A output_dataset N/A Unable to open output dataset %s output_dataset N/A N/A N/A output_dataset SetGeoTransform N/A N/A nbar_dataset GetGeoTransform N/A N/A N/A output_dataset SetProjection N/A N/A nbar_dataset GetProjection N/A output_band N/A N/A output_dataset GetRasterBand 1 N/A N/A N/A output_band WriteArray data_array N/A N/A N/A output_band SetNoDataValue no_data_value N/A N/A N/A output_band FlushCache N/A output_dataset_metadata N/A N/A nbar_dataset GetMetadata N/A output_dataset_metadata N/A N/A N/A N/A output_dataset SetMetadata output_dataset_metadata N/A N/A log_multiline N/A logger debug output_dataset_metadata output_dataset_metadata N/A N/A N/A output_dataset FlushCache N/A N/A N/A logger info Finished writing %s output_tile_path N/A N/A output_dataset_dict N/A output_stack_path output_dataset_info N/A output_dataset_dict N/A N/A N/A N/A __name__ __main__ N/A date2datetime N/A N/A input_date time_offset N/A N/A time min N/A N/A N/A input_date N/A N/A None N/A N/A N/A datetime combine input_date time_offset N/A N/A ndvi_stacker N/A NDVIStacker N/A N/A ndvi_stacker debug N/A N/A N/A N/A console_handler setLevel N/A logging DEBUG N/A N/A N/A ndvi_stacker x_index N/A ndvi_stacker y_index You must specify Tile X/Y-index (-x/-y or --x_index/--y_index) N/A N/A ndvi_stacker output_dir Output directory not specified (-o or --output) N/A stack_info_dict N/A N/A ndvi_stacker stack_derived x_index N/A ndvi_stacker x_index y_index N/A ndvi_stacker y_index stack_output_dir N/A ndvi_stacker output_dir start_datetime N/A date2datetime N/A ndvi_stacker start_date N/A time min end_datetime N/A date2datetime N/A ndvi_stacker end_date N/A time max satellite N/A ndvi_stacker satellite sensor N/A ndvi_stacker sensor N/A N/A log_multiline N/A logger debug stack_info_dict stack_info_dict N/A N/A N/A logger info Finished creating %d temporal stack files in %s. N/A len stack_info_dict N/A ndvi_stacker output_dir N/A N/A N/A logger info Beginning creation of statistics N/A vrt_stack_path stack_info_dict N/A N/A stats_dataset_path N/A N/A vrt_stack_path replace .vrt _stats_envi N/A N/A N/A temporal_stats_numexpr_module main vrt_stack_path stats_dataset_path noData N/A N/A N/A stack_info_dict N/A vrt_stack_path N/A 0 N/A nodata_value provenance True N/A N/A N/A logger info Finished creating stats file %s stats_dataset_path