crop_file#

mhm_tools.pre.crop_mhm_setup.crop_file(input_file, mask_ds, latslice, lonslice, output_path, input_path, overwrite, available_mem_gib, force_header_creation=False, chunking=False, output_var=None, no_cropping=False, lat_order='decreasing', output_suffix=None, mask_all=False, resolutions=None)[source]#

Crops one file by lat and lon slice and may mask it with the mask dataarray.