---
title: "AssetCollection.from_datapoint"
description: "Resolve the assets attached to exactly one scalar xarray datapoint."
image: "https://tilebox.com/images/tilebox-docs-social-preview.png"
---

> Documentation Index
> Fetch the complete documentation index at: https://tilebox.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# AssetCollection.from_datapoint

import ParamField from "@docs/components/ParamField.astro";

```python
@classmethod
def AssetCollection.from_datapoint(
    datapoint: xarray.Dataset,
    *,
    fields: AssetFieldNames | None = None,
) -> AssetCollection
```

Resolve the assets attached to exactly one scalar xarray datapoint.

## Parameters

**datapoint**

type: xarray.Dataset

A scalar dataset containing exactly one datapoint.
**fields**

type: AssetFieldNames | None

Optional names for the `assets`, `storage`, and `authentication` variables
when automatic discovery is ambiguous.

## Returns

An `AssetCollection` keyed by asset key.

Source: https://tilebox.com/docs/api-reference/python/tilebox.datasets.assets/AssetCollection.from_datapoint/index.mdx
