xbout.lazyload.make_chunkinfo

xbout.lazyload.make_chunkinfo(metadata, keep_xboundaries=True, keep_yboundaries=True)[source]

Identify processor layout and the array slices to be extracted from each file. Handles single and double-null configurations.

metadata: dict

Dictionary of scalars read from the first processor’s file

keep_xboundaries: bool

Keep the MXG cells on inner and outer X boundaries

keep_yboundaries: bool

Keep MYG cells on all Y boundaries (upper and lower targets if DN)

Returns a dict that is used in make_lazy_array.

Parameters:
  • metadata (dict)

  • keep_xboundaries (bool)

  • keep_yboundaries (bool)