imdlib icon indicating copy to clipboard operation
imdlib copied to clipboard

Selecting data only for specifc dates

Open pratiman-91 opened this issue 8 months ago • 0 comments

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)

pratiman-91 avatar Jun 08 '24 08:06 pratiman-91