Products
The vibe_core.data.products module provides a set of classes designed to handle data from remote sensing products, including product metadata and raster data such as Digital Elevation Maps (DEM), National Agricultural Imagery Program (NAIP), Landsat, Sentinel, and more.
Hierarchy
Documentation
Data type and functions definitions related to the products supported in FarmVibes.AI.
- class vibe_core.data.products.AlosProduct(id, time_range, geometry, assets)
Bases:
DataVibeRepresent metadata information about an Advanced Land Observing Satellite (ALOS) product.
- class vibe_core.data.products.BingMapsProduct(id, time_range, geometry, assets, url, zoom_level, imagery_set, map_layer, orientation)
Bases:
DataVibeRepresent metadata of a BingMaps product.
- class vibe_core.data.products.CDLProduct(id, time_range, geometry, assets)
Bases:
DataVibeRepresent metadata information about a Crop Data Layer (CDL) product.
- class vibe_core.data.products.ChirpsProduct(id, time_range, geometry, assets, url)
Bases:
DataVibeRepresent a CHIRPS product.
It contains metadata information about a Climate Hazards Group InfraRed Precipitation with Station data (CHIRPS) product.
- class vibe_core.data.products.ClimatologyLabProduct(id, time_range, geometry, assets, url, variable)
Bases:
DataVibeRepresent metadata information about a Climatology Lab product.
- class vibe_core.data.products.DemProduct(id, time_range, geometry, assets, tile_id, resolution, provider)
Bases:
DataVibeRepresent metadata information about a Digital Elevation Map (DEM) tile.
The
DemProducttype is the expected output of a list-like operator and the expected input type of a download-like operator.
- class vibe_core.data.products.Era5Product(id, time_range, geometry, assets, item_id, var, cds_request=<factory>)
Bases:
DataVibeRepresent metadata information about an ERA5 product.
- class vibe_core.data.products.EsriLandUseLandCoverProduct(id, time_range, geometry, assets)
Bases:
DataVibeRepresent metadata information about Esri LandUse/LandCover (9-class) dataset.
- class vibe_core.data.products.GEDIProduct(id, time_range, geometry, assets, product_name, start_orbit, stop_orbit, processing_level)
Bases:
DataVibeRepresent a GEDI product.
It contains metadata information about a Global Ecosystem Dynamics Investigation (GEDI) product.
- class vibe_core.data.products.GLADProduct(id, time_range, geometry, assets, url)
Bases:
DataVibeRepresent metadata information about a Global Land Analysis (GLAD) product.
- property tile_name: str
The tile name of the GLAD product.
- class vibe_core.data.products.GNATSGOProduct(id, time_range, geometry, assets)
Bases:
DataVibeRepresent a gNATSGO product.
It contains metadata information about a Gridded National Soil Survey Geographic Database (gNATSGO) product.
- class vibe_core.data.products.HansenProduct(id, time_range, geometry, assets, asset_url=<factory>)
Bases:
DataVibeRepresent metadata information about a Hansen product.
- static extract_hansen_url_property(asset_url, regular_expression, property_name)
Extract the property from the base URL and the tile name.
- Parameters:
asset_url (str) – The URL of the Hansen product.
regular_expression (str) – The regular expression pattern to extract the property.
property_name (str) – The name of the property to extract.
- Returns:
The extracted property.
- Return type:
str
- static extract_last_year(asset_url)
Extract the last year from the base URL and the tile name.
- Parameters:
asset_url (str) – The URL of the Hansen product.
- Returns:
The last year.
- Return type:
int
- static extract_layer_name(asset_url)
Extract the layer name from the base URL and the tile name.
- Parameters:
asset_url (str) – The URL of the Hansen product.
- Returns:
The layer name.
- Return type:
str
- static extract_tile_name(asset_url)
Extract the tile name from the base URL and the tile name.
- Parameters:
asset_url (str) – The URL of the Hansen product.
- Returns:
The tile name.
- Return type:
str
- static extract_version(asset_url)
Extract the version from the base URL and the tile name.
- Parameters:
asset_url (str) – The URL of the Hansen product.
- Returns:
The version.
- Return type:
str
- validate_url()
Validate the Hansen product URL.
- Returns:
bool – True if the URL is valid, False otherwise.
- property last_year: int
The last year of the Hansen product.
- property layer_name: str
The layer name of the Hansen product.
- property tile_name: str
The tile name of the Hansen product.
- property version: str
The version of the Hansen product.
- class vibe_core.data.products.HerbieProduct(id, time_range, geometry, assets, model, product, lead_time_hours, search_text)
Bases:
DataVibeRepresent metadata for a Herbie product.
Note
- For more information on Herbie, see the documentation at
- class vibe_core.data.products.LandsatProduct(id, time_range, geometry, assets, tile_id='', asset_map=<factory>)
Bases:
DataVibeRepresent metadata information about a Landsat tile.
- add_downloaded_band(band_name, asset_path)
Add a downloaded band to the asset map.
- Parameters:
band_name (str) – The name of the band.
asset_path (str) – The path to the downloaded asset.
- get_downloaded_band(band_name)
Retrieve the downloaded band with the given name from the asset map.
- Parameters:
band_name (str) – The name of the band to retrieve.
- Returns:
The downloaded band with the given name.
- Raises:
ValueError – If the band with the given name is not found or downloaded.
- Return type:
- class vibe_core.data.products.ModisProduct(id, time_range, geometry, assets, resolution)
Bases:
DataVibeRepresent a MODIS product.
It contains metadata information about a Moderate Resolution Imaging Spectroradiometer (MODIS) product.
- class vibe_core.data.products.NaipProduct(id, time_range, geometry, assets, tile_id, year, resolution)
Bases:
DataVibeRepresent metadata information about a National Agricultural Imagery Program (NAIP) tile.
The
NaipProducttype is the expected output of a list-like operator and the type of a download-like operator.