isofit.utils.extractions

Functions

extract_chunk(lstart, lend, in_file, labels, flag, reducer)

Extract a small chunk of the image

extractions(inputfile, labels, output, chunksize, ...)

Module Contents

extract_chunk(lstart: int, lend: int, in_file: str, labels: numpy.array, flag: float, reducer: FunctionType, logfile=None, loglevel='INFO')[source]

Extract a small chunk of the image

Parameters:
  • lstart – line to start extraction at

  • lend – line to end extraction at

  • in_file – file to read image from

  • labels – labels to use for data read

  • flag – nodata value of image

  • logfile – logging file name

  • loglevel – logging level

Returns:

array of output indices (based on labels) out_data: array of output data

Return type:

out_index

extractions(inputfile, labels, output, chunksize, flag, reducer: FunctionType, n_cores: int = 1, ray_address: str = None, ray_redis_password: str = None, ray_temp_dir: str = None, ray_ip_head=None, logfile: str = None, loglevel: str = 'INFO')[source]