[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

20011127: McIDAS only plotting current data (cont.)



>From: Unidata Support <address@hidden>
>Organization: UNI
>Keywords: 200111271954.fARJsiN04944 McIDAS

Patrick,

I looked through the source code for all POINT plotting macro commands
(SFCPLOT, SFCCON, RAOBPLOT, RAOBCON, NLDNDISP, and PROFDISP) and found
(rather, relearned) that they had all been modified to support DAY
specification as a positional parameter.  The SSEC macros (SFCPLOT,
SFCCON, RAOBPLOT, RAOBCON) only support DAY specification as a
positional, while the Unidata macros (NLDNDISP, PROFDISP) support both
positional and keyword specifications.  So, the change needed is _not_
in the executables themselves, but, rather in the MCGUI code that runs
the various commands.

The quickest thing for you to do to get things working in the MCGUI
is to edit the file yourself.  Here is a blow-by-blow:

o login as 'mcidas'

o cd to the mcidas7.8/src directory:

  cd mcidas7.8/src

o modify the file upcguiprocs.tcl:

  at about line 2713 change:

        if { $ptPltTime($ptPltType) == "FRAME" } {
            set day ""
        } else {
            set day "DAY=$ptPltDay($ptPltType)"
        }

  to:

        if { $ptPltTime($ptPltType) == "FRAME" } {
            set day ""
        } else {
            set day "$ptPltDay($ptPltType)"
        }

All this is doing is changing the DAY specification from use of a
keyword to a positional.

o after making the change, verify that the copy of upcguiprocs.tcl in
  the installation bin directory is the same as the one in the src
  directory:

  ls -alt upcguiprocs.tcl ~/bin/upcguiprocs.tcl

  These should be the same file as one is a hard link to the other.
  If they are NOT the same, then do the following:

  rm ~/bin/upcguiprocs.tcl
  ln upcguiprocs.tcl ~/bin

  This deletes the copy that actually gets used and links the newly
  revised one to it.

You must perform the edit and link test/reset on each system that
McIDAS-X is installed on.

While looking through all of the POINT macros, I discovered a bug in
PROFDISP (profdisp.pgm).  The bug is in the labeling of the plot
display.  When one specifies a plot of non-current day's data, the
label indicates that the plot is for the current day when the data is
really from the requested day.  The fix for this bug is to download the
corrected source and build and install a new executable:

<login as 'mcidas'>
cd mcidas7.8/src
ftp ftp.unidata.ucar.edu
  <user> anonymous
  <pass> your full email address
  cd pub/mcidas/src
  get profdisp.pgm
  quit

make profdisp.k
rm ~/bin/profdisp.k
ln profdisp.k ~/bin

The only reason that I didn't put a new copy of upcguiprocs.tcl out in
an FTP directory for you to grab is I didn't want to fight any potential
versionitis problems (i.e., not knowing what bug fix level you are
up to and knowing that the current development version of upcguiprocs.tcl
has lots more changes than the most recent bugfix version).

Again, thanks for finding the bug!

Tom