clouddrift.adapters.mosaic#

This module defines functions used to adapt the MOSAiC sea-ice drift dataset as a ragged-array dataset.

The dataset is hosted at https://doi.org/10.18739/A2KP7TS83.

Reference: Angela Bliss, Jennifer Hutchings, Philip Anderson, Philipp Anhaus, Hans Jakob Belter, Jørgen Berge, Vladimir Bessonov, Bin Cheng, Sylvia Cole, Dave Costa, Finlo Cottier, Christopher J Cox, Pedro R De La Torre, Dmitry V Divine, Gilbert Emzivat, Ying-Chih Fang, Steven Fons, Michael Gallagher, Maxime Geoffrey, Mats A Granskog, … Guangyu Zuo. (2022). Sea ice drift tracks from the Distributed Network of autonomous buoys deployed during the Multidisciplinary drifting Observatory for the Study of Arctic Climate (MOSAiC) expedition 2019 - 2021. Arctic Data Center. doi:10.18739/A2KP7TS83.

Example#

>>> from clouddrift.adapters import mosaic
>>> ds = mosaic.to_xarray()

Functions

get_dataframes()

Get the MOSAiC data (obs dimension in the target Dataset) and metadata (traj dimension in the target dataset ) as pandas DataFrames.

get_file_urls(xml)

Pass the MOSAiC XML string and return the list of filenames and URLs.

get_repository_metadata()

Get the MOSAiC repository metadata as an XML string.

to_xarray()

Return the MOSAiC data as an ragged-array Xarray Dataset.

clouddrift.adapters.mosaic.get_dataframes() tuple[DataFrame, DataFrame][source]#

Get the MOSAiC data (obs dimension in the target Dataset) and metadata (traj dimension in the target dataset ) as pandas DataFrames.

clouddrift.adapters.mosaic.get_file_urls(xml: bytes) tuple[list[str], list[str]][source]#

Pass the MOSAiC XML string and return the list of filenames and URLs.

clouddrift.adapters.mosaic.get_repository_metadata() bytes[source]#

Get the MOSAiC repository metadata as an XML string. Pass this string to other get_* functions to extract the data you need.

clouddrift.adapters.mosaic.to_xarray()[source]#

Return the MOSAiC data as an ragged-array Xarray Dataset.