biopal.agb.main_AGB.CoreProcessingAGB#

class biopal.agb.main_AGB.CoreProcessingAGB(configuration_file)#

CoreProcessingAGB APP

CoreProcessingAGB is the second of the two sub-APPs called by AboveGroundBiomass processor.

It computes the AGB product starting from stack inputs generated by “StackBasedProcessingAGB” APP. It is automatically called in the default run (see Getting Started and Tutorial documentation sections), or can be manually launched (stand alone) following sequence: dataset_query -> StackBasedProcessingAGB -> CoreProcessingAGB

See also

biopal.dataset_query.dataset_query.dataset_query

it’s the first APP to be called in the manual sequence

StackBasedProcessingAGB

it’s the APP which prepares the input for this APP

Notes

Stand alone “CoreProcessingAGB” APP launch. It is possible to launch many istances of “CoreProcessingAGB” APP without need to re launch all the processor.

The app needs a configuration file updated with object paths (updated during “StackBasedProcessingAGB” APP run) and can be customized to run different core processings with same stack based pre processing from StackBasedProcessingAGB.

Examples

Manual AGB chain execution

>>> from biopal.dataset_query.dataset_query import dataset_query
>>> from biopal.AGB.main_AGB import StackBasedProcessingAGB, CoreProcessingAGB
>>> dq_obj = dataset_query()
>>> input_file_up1 = dq_obj.run( input_file )
>>> sbp_obj = StackBasedProcessingAGB( config_file )
>>> input_file_up2, config_file_up = sbp_obj.run( input_file_up1 )

At this point, the CoreProcessingAGB can be launched with different configuration parameters, modifying config_file_up

>>> agbp_obj = CoreProcessingAGB( config_file_up )
>>> agbp_obj.run( input_file_up2 )
  • input_file: path of the BioPAL input file

  • input_file_up1: same of input_file with also the “stack_based_processing” section

  • input_file_up2: same of input_file_up1 with also the “core_processing_agb” section

  • config_file: path of the BioPAL configuration file

  • config_file_up: same of config_file, with paths updated

Attributes:
configuration_filestr

path of the Configuration_File.xml file

Methods

run( input_file_path )

run the CoreProcessingAGB APP

name

(str) name of the APP

__init__(configuration_file)#

Methods

__init__(configuration_file)

name()

run(input_file_xml)