Skip to content

xcube-dev/xcube-smos

Repository files navigation

xcube-smos

User-defined datacubes from SMOS Level-2 data

CI codecov conda Code style: black License

xcube-smos is a Python package and xcube plugin that adds a data store named smos to xcube. The data store is used to access ESA SMOS Level-2 data in form of analysis-ready geospatial datacubes with the dimensions time, lat, and lon. The datacubes are computed on-the-fly from the SMOS data archive s3://EODATA/SMOS hosted on CREODIAS.

Usage

After installation, data access is as easy as follows:

from xcube.core.store import new_data_store

store = new_data_store("smos", **credentials)
datacube = store.open_data(
    "SMOS-L2C-SM", 
    time_range=("2022-01-01", "2022-01-06")
)

Above, a datacube of type xarray.Dataset for SMOS Soil Moisture has been obtained.
To access SMOS Ocean Salinity data use the identifier "SMOS-L2C-OS".

More about xcube-smos can be found in its documentation.