Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  <20182019  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  <20182019 
<== Date ==> <== Thread ==>

Subject: Re: medm color map question
From: "Johnson, Andrew N." <anj@anl.gov>
To: "tech-talk@aps.anl.gov" <tech-talk@aps.anl.gov>
Date: Wed, 17 Oct 2018 16:51:24 +0000
Hi Mark,

On 10/17/2018 11:26 AM, Mark Rivers wrote:
> Most medm adl files I have seen have color map definitions that look
> like this:
> 
> "color map" {
>         ncolors=65
>         colors {
>                 ffffff,
>                 ececec,
> …
> 
> However, some have color maps that look like this:
> 
> "color map" {
>         ncolors=65
>         dl_color {
>                 r=255
>                 g=255
>                 b=255
>                 inten=255
>         }
>         dl_color {


> The adl2edl program does not handle color maps in the second format. 
> Can anyone tell me what causes medm to use one format vs the other, and
> is there a way to convert color maps in the second format to be in the
> first format?

The parser inside MEDM implies that the second format using dl_color is
an old format as it passes the parsing off to a routine called
parseOldDlColor() while the colors list is parsed by parseDlColor(). It
looks like both of them get read into the same data structure, so you
might be able to convert the latter into the former by just loading and
saving the file — have you tried that?

- Andrew

-- 
Arguing for surveillance because you have nothing to hide is no
different than making the claim, "I don't care about freedom of
speech because I have nothing to say." -- Edward Snowdon

Replies:
RE: medm color map question Mark Rivers
References:
medm color map question Mark Rivers

Navigate by Date:
Prev: Re: medm color map question Wang Xiaoqiang (PSI)
Next: RE: medm color map question Mark Rivers
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  <20182019 
Navigate by Thread:
Prev: Re: medm color map question Wang Xiaoqiang (PSI)
Next: RE: medm color map question Mark Rivers
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  <20182019 
ANJ, 17 Oct 2018 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·