modifications to catalogs plus converted weights to nan_to_num instead of straight off in routines_plot