Skip to content

Selecting data only for specifc dates #30

Open
@pratiman-91

Description

@pratiman-91

The current implementation uses year to download and open datasets. It is better to provide start_date and end_date to download and read the dataset.

Current Implementation:

import imdlib as imd

start_yr = 2010
end_yr = 2018
variable = 'rain' # other options are ('tmin'/ 'tmax')
file_dir = (r'C:\Users\imdlib\Desktop\\') #Path to save the files
data = imd.open_data(variable, start_yr, end_yr,'yearwise', file_dir)

Possible new implementation:

import imdlib as imd

start_date = '2010-01-01'
end_date = '2018-12-31'
variable = 'rain' # other options are ('tmin'/ 'tmax')
file_dir = (r'C:\Users\imdlib\Desktop\\') #Path to save the files
data = imd.open_data(variable, start_date, end_date,'yearwise', file_dir)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions