Skip to content

how to template path expansion for opendap sources #63

@jhamman

Description

@jhamman

Suppose I have a OpeNDAP url like this:

urlpath: http://thredds..../MET/{{ variable }}/{{ variable }}_{{ '%04d' % year }}.nc

and I want to template the expansion of the year variable from 1979..2020 so that all years are concatenated into a single dataset. How would I do this?

For reference, here is a working intake datasource:

  gridmet_opendap:
    description: 'GRIDMET data from OpeNDAP'
    args:
      urlpath: http://thredds.northwestknowledge.net:8080/thredds/dodsC/MET/{{ variable }}/{{ variable }}_{{ '%04d' % year }}.nc
      auth: urs
      chunks:
        lat: 585
        lon: 1386
    driver: opendap
    parameters:
      variable:
        description: climate variable
        type: str
        default: pr
        allowed: ["pr", "tmmn", "tmmx"]
      year:
        description: year
        type: int
        default: 2000

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