pro for_create_ct ; create a custom color table to add to the standard ; right now the example below creates color table 41 ; which is red-blue, but with white at position 131 so ; that it is in the center of our color table after ; we add the contour colors ; ; NOT CALLED IN FORWARD ; USE TO SET UP/UPDATE COLOR TABLE ; ; Written by Laurel Rachmeler 2011-2012 ; ; JUNE 2014 ADDED 42 WHERE BLUE IS NEGATIVE! SG ; SEPTEMBER 2025 added red-blue-nobottom case ; ; Version 2.0 July 2014 ;-- r = reverse([2*indgen(125)+6,bytarr(131)+255]) g = [0,0,0,2*indgen(128),254-2*indgen(125)] b = reverse([bytarr(125)+255,254-2*indgen(131)]) b[0:2]=0 tvlct,r,g,b modifyct,41,'blue-red',r,g,b,file='for_colors.tbl' b = reverse([2*indgen(125)+6,bytarr(131)+255]) g = [0,0,0,2*indgen(128),254-2*indgen(125)] r = reverse([bytarr(125)+255,254-2*indgen(131)]) r[0:2]=0 tvlct,r,g,b modifyct,42,'red-blue',r,g,b,file='for_colors.tbl' b = reverse([2*indgen(128)+1,bytarr(128)+255]) g = [2*indgen(128)+1,255-2*indgen(128)] r = reverse([bytarr(128)+255,255-2*indgen(128)]) tvlct,r,g,b modifyct,43,'red-blue-nobottom',r,g,b,file='for_colors.tbl' ;b = reverse([2*indgen(124)+9,bytarr(130)+255]) ;g = [0,0,0,0,2*indgen(128),255-2*indgen(124)] ;r = reverse([bytarr(130)+255,255-2*indgen(124)]) ;tvlct,r,g,b ;modifyct,44,'red-blue-corrected',r,g,b,file='for_colors.tbl' end