🌀 data objects for Bash.
Project description
🌀 blue-objects
🌀 blue-objects
is an abstraction for cloud objects that are accessible in Python and Bash. For example, the Sentinel-2 datacube datacube-EarthSearch-sentinel_2_l1c-S2A_10UDC_20240731_0_L1C
and 🌐 @geo watch
outputs are objects.
installation
pip install blue-objects
use in Bash
@select
@catalog query copernicus sentinel_2 - . \
--count 10 \
--datetime 2024-07-30/2024-08-09 \
--lat 51.83 \
--lon -122.78
@select $(@catalog query read - . --count 1 --offset 3)
@datacube ingest scope=metadata+quick .
@publish tar .
from blue_geo/catalog/copernicus
.
use in Python
def map_function(
datacube_id: str,
object_name: str,
) -> bool:
success, target, list_of_files = load_watch(object_name)
if not success or not list_of_files:
return success
filename = list_of_files[0]
logger.info(
"{}.map: {} @ {} -> {}".format(
NAME,
target,
datacube_id,
object_name,
)
)
logger.info("🪄")
from blue_geo/watch/workflow/map.py
.
to use on AWS SageMaker replace <plugin-name>
with "blue_objects" and follow these instructions.
built by 🌀 blue_options-4.69.1-abcli-blue-objects-attempt-2-b-2024-09-07-99677
, based on 🌀 blue_objects-5.32.1
.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
blue_objects-5.32.1.tar.gz
(25.9 kB
view hashes)
Built Distribution
Close
Hashes for blue_objects-5.32.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6459bc78cbb64caa780f00f15172338b0962f5cec44332c30d9545aa44dcc2ac |
|
MD5 | 92ccc10e43c5c23c9cd4cbe22d861d1e |
|
BLAKE2b-256 | b9997b131be9c1590ccba7d380dcfcdbe3f22b5a2398841b58fdeadd2c2f0bec |