Any of the .rgb colormap files may be obtained by going to the section on colormaps which contains links to all the colormap files and following the same procedure as for plots.ncl.
A few HLU resources are set in the file .hluresfile in your home directory. To obtain the same plots as in the examples below the following resource values should be added to your .hluresfile:
*contourPlotClass.cnMaxDataValueFormat: .4^sg *Font: helvetica *cnLineLabelFont: helvetica *cnHighLabelFont: helvetica *cnLowLabelFont: helvetica *cnInfoLabelFont: helvetica *lbLabelFont: helvetica *tmBorderThicknessF : 1.0 *tmXBMajorThicknessF : 1.0 *tmYLMajorThicknessF : 1.0 *tmXBLabelFont : 21 *tmXBLabelFontHeightF : .017 *tmXBLabelDeltaF : -.5 *tmYLLabelFont : 21 *tmYLLabelFontHeightF : .017 *tmYLLabelDeltaF : -.5 *tmXBMajorLengthF : .015 *tmXBMinorLengthF : .0075 *tmYLMajorLengthF : .015 *tmYLMinorLengthF : .0075This software has been developed using the latest version of NCL (4.1beta) found on winterpark at /fs/scd/home1/ncargd/dev/IRIS_IRIX64_6_2_/bin/ncl. Earlier versions of NCL may or may not work with these scripts.
procedure setcnRes( opt, obj:graphic ) ; Set contourPlotClass resources for the specified object. ; Input arguments: ; opt - a dummy arg used for specifying option attributes ; obj - contourPlotClass object. begin if ( isatt( opt, "cnFillColors" ) ) then setvalues obj "cnFillColors" : opt@cnFillColors end setvalues end if if ( isatt( opt, "cnMissingValFillColor" ) ) then setvalues obj "cnMissingValFillColor" : opt@cnMissingValFillColor end setvalues end if endThe resource setting routines are named setxxRes where xx is the 2 letter class designator used by the HLU class. Because there are thousands of resources for all the HLU classes the ability to change them all has not been implemented in the current set of setxxRes functions. Only the resources that have been needed for the plots produced to date have been added. If you require a resource that is currently missing then just modify the appropriate setxxRes function by adding the code segement:
if ( isatt( opt, "xxMissingResource" ) ) then setvalues obj "xxMissingResource" : opt@xxMissingResource end setvalues end ifwhere xxMissingResource is replaced by the appropriate resource name.
The function rgbColorMap has been set up to include a short list of fixed colors into the colormap in front of any user specified colormaps. The fixed colors are implemented by defining global variables, the name of the variable being the name of the color, and the value of the variable being the index in the colormap. These names may be used to refer to colors in any context where a color index is required. The currently implemented list of named colors is: WHITE, BLACK, PURPLE, INDIGO, MAGENTA, BLUE, NAVY, TEAL, AQUA, GREEN, CHARTREUSE, GOLD, YELLOW, ORANGE, RED, MISTY_ROSE, LIGHT_GREY, BEIGE, BISQUE, LAVENDER, AZURE.
Click HERE to view a colorbar containing all the fixed colors.