earthkit.data.utils.parts

Classes

Part

Represent a file part.

PathAndParts

SimplePart

Functions

check_urls_and_parts(urls, parts)

Check if urls and parts are compatible.

compress_parts(parts)

ensure_urls_and_parts(urls, parts[, compress])

Module Contents

class earthkit.data.utils.parts.Part(path, offset, length)

Represent a file part.

length
offset
path
classmethod resolve(parts, directory=None)
class earthkit.data.utils.parts.PathAndParts(path, parts)
compress = None
classmethod from_paths(path, parts)
is_empty()
parts
path
sequence = None
sorted()
update(path)
zipped()
class earthkit.data.utils.parts.SimplePart

Bases: tuple

length
offset
earthkit.data.utils.parts.check_urls_and_parts(urls, parts)

Check if urls and parts are compatible.

When any of the urls contain a part parts must be None.

earthkit.data.utils.parts.compress_parts(parts)
earthkit.data.utils.parts.ensure_urls_and_parts(urls, parts, compress=True)