STAC-CLIENT(1)

πŸ¦‹ STAC-CLIENT β€” section 1 of the manual, bestie πŸ¦‹

okay so first things first, the page you're reading is STAC-CLIENT(1) β€” that's the stac-client manual page, section 1, the user commands one. And it's literally a tool for working with SpatioTemporal Asset Catalog (STAC) APIs. Spatio-temporal! Say it with me. Slay. 🌸


✨ NAME ✨

stac-client β€” the tool for working with SpatioTemporal Asset Catalog (STAC) APIs. That's the whole vibe. That's the mission. πŸ’…


πŸ’– DESCRIPTION πŸ’–

Okay so here's the top-level situation. The usage is:

usage: stac-client [-h] [--version] {collections,search} ...

It's STAC Client. That's the description, short and sweet, main character energy only.

πŸŽ€ positional arguments πŸŽ€

  • {collections,search} β€” pick your fighter.

And what do those fighters do, you ask? Let me tell you:

  • collections β€” Get all collections in this Catalog. Every single one. Collect them like PokΓ©mon. πŸ”₯
  • search β€” Perform new search of items. Fresh search, new items, let's go.

🧚 options 🧚

  • -h, --help β€” show this help message and exit. The classic. The icon. The one you run first every time, no cap.
  • --version β€” Print version and exit. She tells you who she is and then she leaves. Queen behavior. πŸ‘‘

πŸŽ€ DESCRIPTION πŸŽ€ β€” the collections era

Now we get into the collections subcommand, and here's her usage:

usage: stac-client collections [-h] [--logging LOGGING]

[--headers [HEADERS ...]]
       [--add-conforms-to
       [{CORE,COLLECTIONS,FEATURES,ITEM_SEARCH,CONTEXT,FIELDS,SORT,QUERY,FILTER}
       ...]]  [--remove-conforms-to
       [{CORE,COLLECTIONS,FEATURES,ITEM_SEARCH,CONTEXT,FIELDS,SORT,QUERY,FILTER}
       ...]]  [--clear-conforms-to] [--error
       [{no-conforms-to,does-not-conform-to,missing-link,fallback-to-pystac}
       ...]]  [--ignore
       [{no-conforms-to,does-not-conform-to,missing-link,fallback-to-pystac}
       ...]]  [--save SAVE] url

ik it looks like a lot but we're gonna walk through every single crumb of it, don't worry 🫢

πŸ’œ positional arguments πŸ’œ

  • url β€” Root Catalog URL. You gotta tell her where the catalog lives, bestie. It's the whole point.

πŸ’œ options πŸ’œ

  • -h, --help β€” show this help message and exit. hi bestie πŸ‘‹
  • --logging LOGGING β€” set your log level: DEBUG, INFO, WARN, ERROR, CRITICAL. Default is INFO. So if you want the gossip (DEBUG) you gotta ask for it.
  • --headers [HEADERS ...] β€” Additional request headers, as KEY=VALUE pairs. Default: None. Little extras you send along with the request. πŸŽ€
  • --add-conforms-to [{CORE,COLLECTIONS,FEATURES,ITEM_SEARCH,CONTEXT,FIELDS,SORT,QUERY,FILTER} ...] β€” Specify conformance classes to add to client. Default: None. She's manifesting extra capabilities. ✨
  • --remove-conforms-to [{CORE,COLLECTIONS,FEATURES,ITEM_SEARCH,CONTEXT,FIELDS,SORT,QUERY,FILTER} ...] β€” Specify conformance classes to remove from client. Default: None. And she can un-manifest them too. It's giving editing the timeline.
  • --clear-conforms-to β€” fr fr the original page just lists this one with no description attached, so I'm not gonna make one up. She's mysterious. She's simply there. πŸ’…

⚠️ warnings behavior ⚠️

  • --error [{no-conforms-to,does-not-conform-to,missing-link,fallback-to-pystac} ...] β€” Error on all stac-client warnings or specific warnings. Default: None. Choose violence, bestie. πŸ”₯
  • --ignore [{no-conforms-to,does-not-conform-to,missing-link,fallback-to-pystac} ...] β€” Ignore all stac-client warnings or specific warnings. Default: None. Or choose ✨ peace ✨ and simply not perceive them.

πŸ“ output options πŸ“

  • --save SAVE β€” Filename to save collections to. Default: None. So she can put the collections in a little jar and keep them forever. πŸ“

πŸ”₯ DESCRIPTION πŸ”₯ β€” the search era

And now the big one, the search subcommand. Her usage:

usage: stac-client search [-h] [--logging LOGGING] [--headers [HEADERS
...]]

[--add-conforms-to
[{CORE,COLLECTIONS,FEATURES,ITEM_SEARCH,CONTEXT,FIELDS,SORT,QUERY,FILTER}
...]]
       [--remove-conforms-to
       [{CORE,COLLECTIONS,FEATURES,ITEM_SEARCH,CONTEXT,FIELDS,SORT,QUERY,FILTER}
       ...]]  [--clear-conforms-to] [-c [COLLECTIONS ...]]  [--ids [IDS
       ...]] [--bbox BBOX BBOX BBOX BBOX] [--intersects INTERSECTS]
       [--datetime DATETIME] [--query [QUERY ...]] [-q [Q ...]]
       [--filter FILTER] [--filter-lang FILTER_LANG] [--sortby [SORTBY
       ...]]  [--fields [FIELDS ...]] [--limit LIMIT] [--max-items
       MAX_ITEMS] [--method METHOD] [--error
       [{no-conforms-to,does-not-conform-to,missing-link,fallback-to-pystac}
       ...]]  [--ignore
       [{no-conforms-to,does-not-conform-to,missing-link,fallback-to-pystac}
       ...]]  [--matched] [--save SAVE] url

yes it's long. no we're not skipping any of it. let's go πŸ¦‹

🌈 positional arguments 🌈

  • url β€” Root Catalog URL. Same energy as before: tell her where the catalog is.

🌈 options 🌈

  • -h, --help β€” show this help message and exit.
  • --logging LOGGING β€” DEBUG, INFO, WARN, ERROR, CRITICAL. Default: INFO.
  • --headers [HEADERS ...] β€” Additional request headers (KEY=VALUE pairs). Default: None.
  • --add-conforms-to [{CORE,COLLECTIONS,FEATURES,ITEM_SEARCH,CONTEXT,FIELDS,SORT,QUERY,FILTER} ...] β€” Specify conformance classes to add to client. Default: None.
  • --remove-conforms-to [{CORE,COLLECTIONS,FEATURES,ITEM_SEARCH,CONTEXT,FIELDS,SORT,QUERY,FILTER} ...] β€” Specify conformance classes to remove from client. Default: None.
  • --clear-conforms-to β€” again, the original gives no description here, so no invented lore from me. just a little guy standing there. πŸ™ˆ

πŸ” search options πŸ”

  • -c [COLLECTIONS ...], --collections [COLLECTIONS ...] β€” One or more collection IDs. Default: None.
  • --ids [IDS ...] β€” One or more Item IDs. It ignores other parameters, so know that when you use it. Default: None.
  • --bbox BBOX BBOX BBOX BBOX β€” Bounding box, in the order min lon, min lat, max lon, max lat. Yes, four values. Yes, all of them. Default: None.
  • --intersects INTERSECTS β€” GeoJSON Feature or geometry (file or string). Default: None.
  • --datetime DATETIME β€” Single datetime or begin and end datetime (e.g., 2017-01-01/2017-02-15). Default: None.
  • --query [QUERY ...] β€” Query properties of form KEY=VALUE (>=,<=,=,<>,>,< supported). Default: None.
  • -q [Q ...] β€” DEPRECATED. Use --query instead. Query properties of form KEY=VALUE (<, >, <=, >=, = supported). Default: None. Babygirl this one is deprecated, ok? the new one is right there. use the new one. 🫢
  • --filter FILTER β€” Filter on queryables using language specified in filter-lang parameter. Default: None.
  • --filter-lang FILTER_LANG β€” Filter language used within the filter parameter. Default: cql2-json.
  • --sortby [SORTBY ...] β€” Sort by fields. Default: None.
  • --fields [FIELDS ...] β€” Control what fields get returned. Default: None. Pick and choose. Curate your feed. ✨
  • --limit LIMIT β€” Page size limit. Default: None.
  • --max-items MAX_ITEMS β€” Max items to retrieve from search. Default: None.
  • --method METHOD β€” GET or POST. Default: POST.

⚠️ warnings behavior ⚠️

  • --error [{no-conforms-to,does-not-conform-to,missing-link,fallback-to-pystac} ...] β€” Error on all stac-client warnings or specific warnings. Default: None.
  • --ignore [{no-conforms-to,does-not-conform-to,missing-link,fallback-to-pystac} ...] β€” Ignore all stac-client warnings or specific warnings. Default: None.

πŸ“ output options πŸ“

  • --matched β€” Print number matched. Default: False.
  • --save SAVE β€” Filename to save Item collection to. Default: None.

lowkey the whole page is just: point her at a URL, tell her what you want, and she handles it. highkey iconic. πŸ’–

okay that's the whole thing, bestie, every flag, every default, every conformance class, nothing skipped, nothing invented, we ate and left no crumbs πŸ‘‘

this has been stac-client version 0.7.3, from August 2023 β€” mwah, take care of her, bye bestie πŸŽ€πŸ’…πŸ¦‹

πŸ“¦ where this page comes from