Skip to content

hard-coded values in build_request #1

Description

@dksasaki

in cdsapi_wrappy.py the build_request method has list comprehensions. These comprehensions are not compatible with the inputted values. In some cases the values are hard-coded, which defeats inputting information such as hour and days.

    year = formatting_date(year, digits=4)
    month = formatting_date(month, digits=2)
    day = formatting_date(day, digits=2)
    hour = formatting_date(hour, digits=2)
    
    request['year'] = str(year).zfill(2)
    request['month'] = str(month).zfill(2)
    request['day'] = [f'{x:02d}' for x in np.arange(1,3,1)]
    request['time'] = [f'{x:02d}:00' for x in np.arange(24)]
    request['area'] = [area['latN'],area['lonW'],area['latS'],area['lonE']]
    request['variable'] = variables

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions