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: Mark Rivers <rivers@cars.uchicago.edu>
To: "'Johnson, Andrew N.'" <anj@anl.gov>, "tech-talk@aps.anl.gov" <tech-talk@aps.anl.gov>
Date: Wed, 17 Oct 2018 16:52:23 +0000
> 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?

Yes, I just tried that and it worked! 

Thanks,
Mark


-----Original Message-----
From: tech-talk-bounces@aps.anl.gov <tech-talk-bounces@aps.anl.gov> On Behalf Of Johnson, Andrew N.
Sent: Wednesday, October 17, 2018 11:51 AM
To: tech-talk@aps.anl.gov
Subject: Re: medm color map question

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

References:
medm color map question Mark Rivers
Re: medm color map question Johnson, Andrew N.

Navigate by Date:
Prev: Re: medm color map question Johnson, Andrew N.
Next: RE: Camera Recommendations [SEC=UNCLASSIFIED] Engbretson, Mark S.
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 Johnson, Andrew N.
Next: ADSC Detector use James.OHea@diamond.ac.uk
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, 18 Oct 2018 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·