isofit.utils.extractions

extract_chunk(lstart, lend, in_file, labels, flag, logfile=None, loglevel='INFO')

Extract a small chunk of the image

Parameters:
  • lstart (int) – line to start extraction at

  • lend (int) – line to end extraction at

  • in_file (str) – file to read image from

  • labels (array) – labels to use for data read

  • flag (float) – 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, n_cores=1, ray_address=None, ray_redis_password=None, ray_temp_dir=None, ray_ip_head=None, logfile=None, loglevel='INFO')[source]