bk_point_month
- imdlib.compute.bk_point_month(data)
This method provides index (last date) of every month from daily data.
Parameters
data: a IMD class object
Returns
bk_list: numpy array of indices
Examples
>>> start_yr = 2016 >>> end_yr = 2018 >>> variable = 'tmax' # other options are ('tmin'/ 'tmax') >>> data_tmax = imd.open_data(variable, start_yr, end_yr,'yearwise') >>> bk_list = bk_point(data_tmax) >>> bk_list = bk_point(data_tmax) >>> array([ 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334, 365, 396, 424, 455, 485, 516, 546, 577, 608, 638, 669, 699, 730, 761, 789, 820, 850, 881, 911, 942, 973, 1003, 1034, 1064, 1095])