add TY_conv_func

Please take a look at TY_conv_func
it implements the heat map extraction from Saurah's code