pyimcom.compress.compressutils_wrapper

Functions

compress_one_block(cfg, layer_pars_dic, ibx, iby)

Helper function to compress one block of the IMCOM output.

compress_all_blocks(cfg, layer_pars_dic, workers[, ...])

Helper function to compress all blocks of the IMCOM output in parallel.

Module Contents

compress_one_block(cfg, layer_pars_dic, ibx, iby)[source]

Helper function to compress one block of the IMCOM output.

Parameters:
  • cfg (pyimcom.config.Config) – The IMCOM configuration.

  • layer_pars_dic (dict) – A dictionary of layer parameters, where the keys are the layer names and the values are dictionaries of parameters for that layer.

  • ibx (int) – Block x index.

  • iby (int) – Block y index.

Returns:

fout – The file name of the compressed output file for this block. (None if the file was missing.)

Return type:

str

compress_all_blocks(cfg, layer_pars_dic, workers, require_all=False)[source]

Helper function to compress all blocks of the IMCOM output in parallel.

Parameters:
  • cfg (pyimcom.config.Config) – The IMCOM configuration.

  • layer_pars_dic (dict) – A dictionary of layer parameters, where the keys are the layer names and the values are dictionaries of parameters for that layer.

  • workers (int) – The number of parallel workers to use for compression.

  • require_all (boolean, optional) – If True, raises an exception for missing files (default of False just moves on).

Return type:

None