Extractions
source module isofit.utils.extractions
Functions
-
extract_chunk — Extract a small chunk of the image
-
extractions — ...
source extract_chunk(lstart: int, lend: int, in_file: str, labels: np.array, flag: float, reducer: FunctionType, 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 : np.array — labels to use for data read
-
flag : float — nodata value of image
-
logfile — logging file name
-
loglevel — logging level
Returns
-
out_index — array of output indices (based on labels) out_data: array of output data
source 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')
...