Inconsistent colors in X11, ncgm, ctrans from LLU+HLU

From: Dr. John W. Glendening (glendening@XXXXXX)
Date: Mon Feb 24 2003 - 23:37:23 MST


In a program which utilizes both LLU and HLU, I have found I do not
get a consistent color representation from: (1) X11, (2) an ncgm file,
and (3) a ctrans conversion of the ncgm file. I have been able to
demonstrate this in a one line modification to the NCAR example
cn11f.f, which first uses LLU (to draw contours, by opening and
closing a GKS workstation) and then uses HLU (to draw axes).

I would like to find a way to get the same plot in all cases !

I am running NCARG version 4.2.0.a023 on a Linux box (RH 7.3).
I modify cn11f.f by adding a call to set foreground to red in the LLU
section
        call gscr( gkswid, 1, 1.,0.,0. )
(immediately following opening of GKS workstation with "call gacwk")

When this is run I get following results (all with black background):

X11 workstation: Red contours & red axes

NCGM workstation: Red contours & white axes

CTRANS of NCGM file: White contours & white axes

(latter obtained from "ctrans -d sun cn11f.ncgm -outfile cn11f.sun"
 which gives message:
    ctrans: WARNING - Error processing CGM element(class=4, id=1,
name="Polyline")
         [ Background color changes ignored after drawing has begun ]
(the .sun file is then displayed using ImageMagick "display")

-- 
Dr. John W. (Jack) Glendening,  Meteorologist

_______________________________________________ ncarg-talk mailing list ncarg-talk@ucar.edu http://mailman.ucar.edu/mailman/listinfo/ncarg-talk



This archive was generated by hypermail 2b29 : Wed Feb 26 2003 - 08:58:55 MST