Skip to content

[BUG] Allow has_granules in search_datasets kwargs #939

@juliacollins

Description

@juliacollins

Moving to bug after discussion with @betolink .

Discussed in #938

Originally posted by juliacollins February 5, 2025
This is somewhere between a bug and a feature request. I would like to use earthaccess.search_datasets() to retrieve collection metadata for collections that specifically do not have associated granules. The use case is the development of a workflow that generates the UMM-G metadata for the granules that will be archived, but are not yet available. Currently the DataCollections class sets has_granules to True for all cases, so no results are returned when I try to retrieve collection metadata for the dataset in question. The suggested change is to include has_granules in the kwargs accepted by search_datasets and DataCollections. I'll work on a pull request but wanted to get this idea in the hopper in case anyone sees a problem with it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: bugSomething isn't working

    Type

    No type

    Projects

    Status

    ✅ Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions