|
WRFSI
gui faq |
WRF Standard Initialization
GUI - Frequently Asked Questions |
Where can I download WRFSI GUI?
Is it necessary to use the GUI to run WRFSI?
Any error messages from the application will be written to /tmp/wrf_tools.log. Look there for further information.
How can I test if Perl/Tk is available on my system?
if this is successful the Perl Tk module library is available. Otherwise, there is a need to build this library. To determine which version of Perl/Tk is available and where it is located type:
How do I install Perl/Tk on my system?
The wrfsi install script prompts "Do you want to install the WRF SI GUI?".
If your response is 'Yes' AND Perl/Tk is not found, then the gui install script
(SOURCE_ROOT/gui/install_gui.pl), will also run the PerlTk install script
(SOURCE_ROOT/gui/install_perlTk.sh) to install Perl/Tk module library in
SOURCE_ROOT/gui/.
What environment variable do I set to run Perl/Tk?
If a system administrator built a site_perl Tk module (and it is not found by Perl) then set PERL5LIB to that location. For example:
Then, test for the success of Tk with the command: perl -e 'use Tk'
If a user builds Perl/Tk, set a PERL env to locate the Tk module. (Remember that INSTALLROOT/wrf_tools does this automatically.) For example:
Then, test it with: perl -e 'use Tk'.
(Which is similar to both the following:
perl -I/usr/local/Tk800.025/lib -e 'use Tk'
perl -e -Mblib=/usr/local/Tk800.023/blib 'use Tk')
What is the difference between PERL5LIB and PERL5OPT?
PERL5LIB
When running taint checks (either because the program was running setuid or setgid, or the -T switch was used), neither variable is used. The program should instead say:
use lib "/my/directory";
PERL5OPT
What does error "Can't locate Tie/Watch.pm or Trace.pm" mean?
Can I run X-displays on FSL'S ijet?
The jet visualization server is jet-vis, it is a random connection to 1 of 4 hosts. To connect
There shouldn't be a reason to directly connect to any other nodes in the cluster since they are accessed via the job queuing system.
Can Perl/Tk be installed on FSL's ijet, and jet.
and X will be tunneled through ssh. After generating the config file with your application the user will need to submit the job from ijet.
The decision has been made to not support graphics on the clusters. If you need something else graphical related installed on jet-vis please let hpcshelp know at hpcshelp.fsl@noaa.gov.
What does error "couldn't find an appropriate visual" mean? (v1.3.1 only)
Edit both SOURCE_ROOT/gui/guiTk/ui_system_tools.pl.in and INSTALLROOT/gui/guiTk/ui_system_tools.pl
Change the two lines (138,139) from
To:
This removes any reference to visuals.
(Further, to find out which visuals you have available run 'xdpyinfo', a standard system utility to display information about your systems X server.
xdpyinfo | grep Color
The color scheme must be best, directcolor, grayscale, greyscale, pseudocolor, staticcolor, staticgray, staticgrey, truecolor, or default. I chose one that is not available to your system.)
On a Linux system using Perl 5.8.0 with Tk800.023, the GUI crashes during the localization step. Why? (v1.3.2 only)
The fatal error with the WRF SI GUI during the domain localization step has been isolated to Linux OS systems using Perl version 5.8.0 in combination with Tk800.023. The problem can be corrected using Perl 5.8.0, or higher, and a newer version of Perl/Tk, Tk800.025, found at http://www.cpan.org/authors/id/NI-S
To build Perl/Tk800.025 using wrfsi scripts, do the following.
How do I create a custom map background file for use with the WRF SI GUI?
What's wrong when the WRF SI GUI does not show any map background vectors?
The SI supports the two basic system architectures file formats. One, the big-endian is a result of the design of the risc CPU chip. The other, little-endian a result of the design of the Intel CPU chip.
Big-Endian representation of 1025 is 00000000 00000000 00000100 00000001
Little-Endian representation of 1025 is 00000001 00000100 00000000 00000000
To learn more about this see http://www.webopedia.com/TERM/B/big_endian.html.
The consequences of this is that the files included with the application are big-endian. If you have a big-endian CPU chip, the files are read correctly and display vector map lines. If you have a little-endian CPU chip the software BYTEFLAG=-DBYTE_SWAP allows the code to swap the ordering of the records of data in the map background file, thus letting you correctly read and display the vector map lines.
The SI uses scripts to evaluate each system environment to set, or not set, the BYTE_SWAP option. On your machine, the BYTE_SWAP flag probably has the opposite value that is needed.
Change value for BYTEFLAG.
Contents of INSTALLROOT/gui/src/makefile.inc:
Then type:
make
make install
Yes. It is available at CPAN.org (Comp Perl Archive Net).
Note that the WRFSI GUI v2.0.1 uses
about five lines of Tk800 syntax that Tk804 does not support.
When the newest versions of Perl/Tk version Tk804.026 (and higher)
are used with WRFSI GUI v2.0.1 (and lower) some of the following
problems are introduced:
There are three solutions:
1. Build WRFSI v2.0.3 beta. It has new syntax and includes Tk804.027.
2. Update the WRFSI GUI v2.0.1 syntax as instructed below because you probably have Tk804.027 installed.
3. Build perl Tk800.025 for use with WRFSI GUI v2.0.1.
Update WRFSI GUI v2.0.1 syntax:
a) Edit SOURCE_ROOT/gui/guiTk/ui_domain_srt.pl
(or download ui_domain_srt.plx)
and then copy this to INSTALLROOT/gui/guiTk/ui_domain_srt.pl
b) Edit SOURCE_ROOT/src/create_bcd_bkgnd_xy.c
(or download)
and recompile by typing 'make install'.
What can I do about the WRFSI GUI exiting on error: X_GetImage?
The error messages indicate a failure to create a gif image of your domain. This happens on just a few systems. The problem has not been isolated to a specific platform OS at this time. This error also occurs when part of the map window is outside of the visible screen. Until we have another solution, please omit this step of capturing an image by editing the software as indicated.
Edit the file $INSTALLROOT/gui/guiTk/ui_vars.pl
At just after entering
sub write_domain_image {
add the line:
and, run the application, as compiling is not necessary.
My GUI installation fails when building Perl/Tk on RedHat. Any suggestions?
Make that change, and it'll work for you. Be sure to clean up the legacy files, by:
and, run:
What is the fix for gen_map_bkgnd.exe on the Compaq (Tru64 V5.0A alpha)?
How do I compile PerlTk on my 64-bit AMD system running linux Fedora Core 3?
1. Build from source:
a. cd into the $SOURCE_ROOT/gui/src directory and remove the existing Tk DIRECTORY.
b. Unpack the original PerlTk tar file
c. cd into Tk-804.027
d. % perl Makefile.PL
e. edit the Makefile and change each instance of "/usr/X11R6/lib"
to "/usr/X11R6/lib64"
f. % make
g. % make test (optional - You will get errors but you should also see widgets pop up.)
h. % rm -fr $SOURCE_ROOT/gui/perlTk/blib
i. % cp -r blib $SOURCE_ROOT/gui/perlTk
http://rpmfind.net/linux/rpm2html/search.php?query=perl-Tk&submit=Search+...&system=&arch=x86_64
On my 64-bit system, there is an error with the map background executable in v2.1 and lower?!
Error with map background executable command:
INSTALLROOT/gui/bin/gen_map_bkgnd.exe 3 39.5 -79 37.98 44.7 -63.7 30.0 -87.6 INSTALLROOT/gui/data/maps/US_States.bcd /tmp/vector_instructions.tk /tmp/setup.dat
Possible 'Exec format error'. Clear will be invoked!
The solution suggested below will be part of the v2.1.1 release of WRFSI. You need to edit the gui/src/Makefile, change libm.a to -lm. This lets the makefile find the math lib called libm.a. It was hardwired it for the 32-bit lib by default. To correct this:
cd $SOURCE_ROOT/gui/src
edit Makefile
change /usr/lib/libm.a to -lm (in 3 places)
make install
run wrf_tools.
The NMM SI GUI v2.2 grid distance calculation was improved in Dec 2006, however...
The NMM SI GUI v2.2 grid distance calculation from km to degrees was improved in Dec 2006,
however, just recently (late Mar 2007) we empirically came up with a formulation
for computing the km spacing from degrees upon reading back in an existing domain
that generally seems good to within a few thousandths of a km for the sizes of
domains that people might actually run. (Without this, there are up to .3 km
difference each time a domain is loaded.)
In wrfsi_nmm/gui/guiTk/ui_vars.pl, line 800 was changed,
from:
If you want to change this one line, rather than downloading and rebuilding, that is a fine approach to take.
How do I use the WRF SI GUI to create nests for NMM?
Last updated: Mon 26 Mar 2007