bk_point

imdlib.compute.bk_point(data)

This method provides index (last date) of every year 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([ 366,  731, 1096])