intake_stac.StacItem
- class intake_stac.StacItem(*args, **kwargs)[source]
Maps STAC Item to Intake (Sub)Catalog https://pystac.readthedocs.io/en/latest/api.html#item-spec
- __init__(stac_obj, **kwargs)
Initialize the catalog.
- Parameters
- stac_obj: stastac.STACObject
A pystac.STACObject pointing to a STAC object
- kwargsdict, optional
Passed to intake.Catalog.__init__
Methods
__init__
(stac_obj, **kwargs)Initialize the catalog.
close
()Close open resources corresponding to this data source.
configure_new
(**kwargs)Create a new instance of this source with altered arguments
describe
()Description from the entry spec
discover
()Open resource and populate the source attributes.
export
(path, **kwargs)Save this data for sharing with other people
filter
(func)Create a Catalog of a subset of entries based on a condition
force_reload
()Imperative reload data now
from_dict
(entries, **kwargs)Create Catalog from the given set of entries
from_url
(url, **kwargs)Initialize the catalog from a STAC url.
get
(**kwargs)Create a new instance of this source with altered arguments
get_persisted
()items
()Get an iterator over (key, source) tuples for the catalog entries.
keys
()Entry names in this catalog as an iterator (alias for __iter__)
persist
([ttl])Save data from this source to local persistent storage
pop
(key)Remove entry from catalog and return it
read
()Load entire dataset into a container and return it
read_chunked
()Return iterator over container fragments of data source
read_partition
(i)Return a part of the data corresponding to i-th partition.
reload
()Reload catalog if sufficient time has passed
save
(url[, storage_options])Output this catalog to a file as YAML
search
(text[, depth])serialize
()Serialize the catalog to yaml.
set_cache_dir
(cache_dir)stack_bands
(bands[, path_as_pattern, concat_dim])Stack the listed bands over the
band
dimension.to_dask
()Return a dask container for this data source
to_spark
()Provide an equivalent data object in Apache Spark
values
()Get an iterator over the sources for catalog entries.
walk
([sofar, prefix, depth])Get all entries in this catalog and sub-catalogs
yaml
()Return YAML representation of this data-source
Attributes
auth
cache
cache_dirs
cat
classname
container
description
dtype
entry
gui
Source GUI, with parameter selection and plotting
has_been_persisted
The base class does not interact with persistence
hvplot
Returns a hvPlot object to provide a high-level plotting API.
is_persisted
The base class does not interact with persistence
kwargs
name
npartitions
on_server
partition_access
plot
Returns a hvPlot object to provide a high-level plotting API.
plots
List custom associated quick-plots
shape
version