Skip to content

[BUG] Inconsistent results from search_datasets #884

Open
@giswqs

Description

@giswqs

Is this issue already tracked somewhere, or is this a new report?

  • I've reviewed existing issues and couldn't find a duplicate for this problem.

Current Behavior

I am trying to search the NASA OPERA data products using earthaccess. Using the OPERA keyword to search datasets can retrieve the eight OPERA data products correctly. However, using the * keyword to search only returns seven OPERA data products. The OPERA_L3_DSWX-S1_V1 data product is missing from the search results. This is problematic because I rely on using the * keyword to retrieve the entire NASA Earth Data as a CSV file for the NASA-Earth-Data repo.

Relevant repo: OPERA_Applications @alhandwerger

Expected Behavior

Using the * keyword to search should return all eight OPERA data products.

Steps To Reproduce

This code snippet can retrieve the eight OPERA data products correctly.

datasets = earthaccess.search_datasets(keyword="OPERA")
for dataset in datasets:
    print(dataset["umm"]["ShortName"])

image

This code snippet only returns seven OPERA data products. The OPERA_L3_DSWX-S1_V1 data product is missing.

datasets = earthaccess.search_datasets(keyword="*")
for dataset in datasets:
    if "OPERA" in dataset["umm"]["ShortName"]:
        print(dataset["umm"]["ShortName"])

image

Environment

- OS: Manjaro Linux
- Python: 3.12

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: bugSomething isn't working

    Type

    No type

    Projects

    • Status

      🆕 New

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions