Skip to content

Fixed base item merging logic for assets #2

@TomAugspurger

Description

@TomAugspurger

In this snippet, there's a record with None for an asset:

import planetary_computer
import adlfs
import pystac

collection = pystac.read_file("https://planetarycomputer.microsoft.com/api/stac/v1/collections/aster-l1t")
asset = planetary_computer.sign(collection.assets["geoparquet-items"])

import dask_geopandas

ddf = dask_geopandas.read_parquet(asset.href, storage_options=asset.extra_fields["table:storage_options"])
df = ddf.head()

df.assets.iloc[0]["qa-txt"]  # None

This shows up on the base item in pgstac, but isn't on that actual item. It was incorrectly rehydrated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions