Skip to content

client.datasets() returns only results from the first page of the response. #8

@shaiabir

Description

@shaiabir

client.datasets() returns only results from the first page of the response.

when sending a request that results in a long response only the first page is returned unless page=2 for instance is transferred as *kwargs, then you would get the specified page. however there is no way of knowing before hand how many pages will be returned. some sort of pagination mechanism is needed.

    response = client.datasets(
        simulation_round="ISIMIP3b",
        product="InputData",
        climate_forcing=["gfdl-esm4"],
        climate_scenario=["historical", "ssp126", "ssp370"],
        climate_variable=["hurs", "sfcwind", "tasmax", "tasmin", "rsds", "pr"]

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