stac2odc operations¶
Essentially, stac2odc offers two operations, each responsible for transforming STAC data into ODC objects. The functions are presented below.
STAC-Collection to ODC-Product¶
The first operation available on stac2odc is the collection2product that enables the conversion of STAC-Collections into ODC-Products. The CLI can be seen below.
stac2odc collection2product¶
Function to convert a STAC Collection JSON to ODC Product YAML
stac2odc collection2product [OPTIONS]
Options
-
-c,--collection<collection>¶ Required Collection name (Ex. CB4MOSBR_64_3M_STK).
-
-i,--instrument<instrument>¶ Required Instrument type.
-
-t,--type<type>¶ Required Metadata type.
-
-p,--code<code>¶ Required Platform code.
-
-f,--format<format>¶ Format name
-
--units<units>¶ Units.
-
--url<url>¶ BDC STAC url.
-
--stac-version<stac_version>¶ Set the STAC version (e. g. 0.9.0
-
-o,--outfile<outfile>¶ Output file
-
--ignore<ignore>¶ List of bands to ignore
-
--pre-collection¶ Defines whether the collection belongs to the pre-collection
-
--verbose¶ Enable verbose mode
-
--access-token<access_token>¶ Personal Access Token of the BDC Auth
STAC-Item to ODC-Dataset¶
The second possible operation with stac2odc is item2dataset, which allows the conversion from STAC-Item to ODC-Dataset.
stac2odc item2dataset¶
Function to convert a STAC Collection JSON to ODC Dataset YAML
stac2odc item2dataset [OPTIONS]
Options
-
-c,--collection<collection>¶ Required Collection name (Ex. CB4MOSBR_64_3M_STK).
-
-i,--instrument<instrument>¶ Required Instrument type.
-
-p,--code<code>¶ Required Plataform code.
-
-f,--format<format>¶ Format name.
-
--units<units>¶ Units.
-
--url<url>¶ BDC STAC url.
-
--stac-version<stac_version>¶ Set the STAC version (e. g. 0.9.0
-
--basepath<basepath>¶ Repository base path
-
-o,--outpath<outpath>¶ Output path
-
--ignore<ignore>¶ List of bands to ignore
-
-m,--max-items<max_items>¶ Required Max items
-
--pre-collection¶ Defines whether the collection belongs to the pre-collection
-
--verbose¶ Enable verbose mode
-
--download¶ Enable download file
-
--download-out<download_out>¶ Path to download dir
-
--advanced-filter<advanced_filter>¶ Search STAC Items with specific parameters
-
--access-token<access_token>¶ Personal Access Token of the BDC Auth