Yes, there's a man page. Type:
man ncargintro
There is no newsgroup, but there is an e-mail group for NCAR Graphics users to share ideas. To subscribe to this group, send the following in the body (not the subject line) of an e-mail message to Majordomo@UCAR.EDU:
subscribe ncarg-talkThis will subscribe the account from which you send the message to the ncarg-talk list. If you want to subscribe another address instead (such as a local redistribution list), you can use a command of the form:
subscribe ncarg-talk other-address@your_site.your_netOnce you are on the list, you can send e-mail to the entire group by sending e-mail to ncarg-talk@ncar.ucar.edu.
The ncarg-talk forum gives NCAR Graphics users a chance to share information and ideas among themselves and to bring up NCAR Graphics issues that are of concern. NCAR personnel will not necessarily read or respond to this email group's correspondence on a regular basis. The intended use is solely for the NCAR Graphics user community.
To unsubscribe from ncarg-talk, send the following in the body (not the subject line) of an email message to Majordomo@UCAR.EDU:
unsubscribe ncarg-talkThis will unsubscribe the account from which you send the message. If you are subscribed with some other address, you'll have to send a command of the following form instead:
unsubscribe ncarg-talk other-address@your_site.your_netIf you don't know what address you are subscribed with, you can send the following command to see who else is on the list (assuming that information isn't designated "private" by the owner of the list):
who ncarg-talkTo find out more about the automated server and the commands it understands, send the following command to Majordomo@UCAR.EDU:
helpIf you feel you need to reach a human, send email to
ncarg-talk-approval@UCAR.EDU
Yes. The account is administered by a volunteer. Anyone who wants to contribute software to this library should contact the administrator at softadm@ncar.ucar.edu. To see what's available and for more information about this software library, see the README file in the anonymous FTP directory ncarg/softshare.
Your anonymous FTP session should look like this:
ftp ftp.ucar.edu Name(ftp.ucar.edu:login_name): anonymous Password: your_email_address ftp> cd ncarg/softshare ftp> get README ftp> quit
Yes, you can use the application ncargex. See Appendix D of the NCAR Graphics Fundamentals manual for the type of graphic you want to generate, then note that example graphic's name to use with the ncargex application.
Type:
man ncargexfor more information. You can use ncargcex in a similar fashion for examples of NCAR Graphics C programs.
No. NCAR Graphics was written to run on UNIX platforms only. If you have the NCAR Graphics source, then you are allowed to port to any kind of system you want. Notes from installers who have ported NCAR Graphics to various systems are available on our anonymous FTP account.
There may be some port notes available on our anonymous FTP account. To find out which port notes are available, your FTP session should look like this:
ftp ftp.ucar.edu Name(ftp.ucar.edu:login_name): anonymous Password: your_email_address ftp> cd ncarg/unix3.1 ftp> get README README.3.1 ftp> cd ../unix3.2.1 ftp> get README README.3.2.1 ftp> quitYou can also try posting to the ncarg-talk e-mail group.
You probably need to call the GKS routine GSFAIS with a value of "1" to turn filling on. The default in GKS is not to fill, so you have to turn on fill before any calls to GFA will work.
Type the command:
ncgmstat -c gmetawhere gmeta is the name of your metafile.
There are two ways to do this. One is to use the ncargrun script:
ncargrun -o plot.ncgm programwhere plot.ncgm is the new name you want for the metafile, and program is the name of your executable.
You can also use the NCARG_GKS_OUTPUT environment variable. For example, you would type the following before running your program:
setenv NCARG_GKS_OUTPUT plot.ncgmFor more information, type:
man ncargrun man ncarg_gksor see the section on environment variables in NCAR Graphics Fundamentals.
You can use the Fortran call GESC or the C call gescape. For an example of how GESC can be used, type:
ncargex pgkex21 -nand look at the Fortran file pgkex21.f.
You can make use of the NCARG_GKS_OUTPUT environment variable (available starting with Version 3.1 of NCAR Graphics). For example, if you want to send your NCGM directly to the translator instead of creating an NCGM file, type:
setenv NCARG_GKS_OUTPUT "| ctrans"If you want to capture your NCGM to disk and translate it at the same time, the following script called foo may be used:
#!/bin/csh -f tee gmeta | ctransNow type:
setenv NCARG_GKS_OUTPUT " | foo"and run your program.
Use the ncargf77 command just like the f77 command to compile and link your program. It will load in the necessary NCAR Graphics libraries.
For example, if your program is called plot.f, you would type the following:
ncargf77 -o plot plot.fYou can use ncargcc in a similar fashion to compile NCAR Graphics C programs.
See the article "King of the Draw" in the 8/20/90 issue of Infoworld. (This compares four PC and four Macintosh packages).
NCARG_ROOT environment variable not set.What should I do?
If the directories containing the NCAR Graphics libraries and binaries reside under one root directory, then set the environment variable NCARG_ROOT to this directory. Otherwise, find out from your system administrator what you need to set the environment variable NCARG_ROOT to.
Type:
tgks0afor a b/w NCGM and:
ncargworldfor a color NCGM. Both commands will create a metafile called gmeta.
Type:
ncargversion
Yes. There are PostScript programmer documents in the directory $NCARG_ROOT/lib/ncarg/doc. Also, the NCAR Graphics Fundamentals document is available as a PostScript file. See your system administrator for its location.
Can't find any spooled devices for printing.and I can't seem to click on the "Print" button. What should I do?
You need to set up an ncarv_spool file and put it in the directory $NCARG_ROOT/lib/ncarg. A sample ncarv_spool file might look like this:
pscolor : -d ps.color -simulatebg : | lpr -Pcolor psmono : -d ps.mono : | lpr -Pmono xwd : -d xwd -resolution 600x600 : > ./gmeta.xwdwhere color is the name of your color PostScript printer and mono is the name of your monochrome PostScript printer. For more information on the ncarv_spool file, type:
man ncarv_spool
Type:
ncargex fcoverThis will create a metafile called fcover.ncgm.
Type:
man utility_namewhere utility_name is the name of the utility in lowercase. For example,
man conpackAlso, see "Appendix C: User entry points and functions" of the NCAR Graphics Fundamentals manual.
Type:
man utility_paramswhere utility is the name of the utility in lowercase. For example,
man areas_params man ezmap_paramsand so on. Some utilities do not use parameters, so they will not have parameter man pages.
Type:
ncargex -xxxxwhere xxxx is the name of a particular utility. For example:
ncargex -conpackTyping ncargex without any arguments will give you a list of all the available options.
Type:
ncargfile ezmap_area_idsThe identifiers are also printed at the end of the Ezmap chapter of the NCAR Graphics Contouring and Mapping Tutorial (page 153 of tutorial Version 2.0).
You'll need to call NGPICT as well as changing your GOPWK call. For more information on these routines, type:
man gopwk man ngpictor see the "User's Guide for NCAR GKS-0A Graphics" and the NCAR Graphics Fundamentals. To see example programs that produce direct X11 output, type:
ncargex fgke04 ncargcex c_xwndws
Use the -simulatebg option with ctrans:
ctrans -d ps.color -simulatebg gmeta > gmeta.ps
Use the ps.land.mono or ps.land.color graphcap with ctrans.
Yes. You can use the option -d hppcl. Type:
man ctransfor more information.
You can first convert your NCGM to PostScript using one of the PostScript graphcaps with ctrans. Then you can use GhostScript to translate this PostScript to the HP500c printer. GhostScript is public domain software available on many anonymous FTP sites.
Type:
gcaps
Type:
man graphcap
Type:
fcaps
Type:
man fontcap
First of all, you cannot use the UNIX command cat. You need to use the NCAR Graphics command med instead. For example, if your metafiles are called foo1.ncgm, foo2.ncgm, and foo3.ncgm, type:
med -e 'foo1.ncgm' -e 'r foo2.ncgm' -e 'r foo3.ncgm' \ -e 'w all.ncgm'to concatenate them into the file all.ncgm.
Try the following and change the numeric values to suit your needs:
idt*geometry: 300x300+0+0 idt*TopLevelShell*geometry: +0+536
Use the -Version option. For example:
idt -Version rasview -Version
Use the following command:
med -e '1,$d' -e 'r corrupt.ncgm' -e 'w corrupt.ncgm' valid.ncgmwhere corrupt.ncgm is the metafile missing the `End of Metafile' element and valid.ncgm is any existing valid metafile (a metafile which contains an `End of Metafile' element).
Be forewarned that the repaired metafile will inherit the global graphical attributes of the valid.ncgm metafile. Hence, the new file may differ greatly from the original. However, empirical evidence suggests that this trick works adequately in most instances.
First, modify the file $NCARG_ROOT/lib/ncarg/ncarv_spool and add the line:
pscolor : -d ps.color -d simulatebg : | lpr -Pxxxxwhere xxxx is the name of your PostScript printer. Then, if your metafile is called gmeta and you want to print frames 1, 2, 3, 4, and 8, you would type the following:
ictrans -e 'spooler pscolor' -e '1,4P' -e '8P' -e 'quit' gmetaFor more information you can see the man pages for ictrans and/or ncarv_spool.
Yes, you can use the NCAR Graphics C-bindings. Type:
man ncarg_cbind man ncarg_gks_cbindfor more information, or see the section "Writing a C Program" in the NCAR Graphics Fundamentals manual. For an example of an NCAR Graphics C program that uses the C-bindings, type:
ncargcex c_colconThere are more examples available via ncargcex.
First, you need to talk to your system administrator to find out where
the source for NCAR Graphics is located. We will refer to the top
level directory of the NCAR Graphics source as $NCARG. The ASCII
version of the graphcaps are located in the directory
$NCARG/common/src/graphcap. Make a copy of the graphcap you want to
edit and call it something like
name.fullpage.gc where
name is the name of the original graphcap. You will need to modify
name.fullpage.gc with an editor, but first read the
following section.
The GKS Standard requires that aspect ratio be preserved between window and viewport, hence by default if you are plotting on a non-square device, the largest viewport will be the largest square you can fit into the output rectangle. However, you can circumvent the standard if you are plotting to a graphcap- driven device. The graphcap keywords you will need to modify are:
DEVICE_COORD_LOWER_LEFT_X DEVICE_COORD_LOWER_LEFT_Y DEVICE_COORD_UPPER_RIGHT_X DEVICE_COORD_UPPER_RIGHT_Y DEVICE_COORD_XOFFSET DEVICE_COORD_YOFFSET DEVICE_COORD_XSCALE DEVICE_COORD_YSCALEThe essential ones are the last two. They will scale the plot by the specified amount in either the X direction or the Y direction. Of course when this is done, the X and Y offsets will probably need to be changed (these control how much is added to the base coordinates as specified by the first four keywords). Some adjustment may also be desired in the first four keywords. This is a trial- and-error process, but it goes pretty fast once you understand what the keywords do. Some simple experiments may help familiarize you with how they work.
Once you have modified the ASCII graphcap to your satisfaction, you can create the binary graphcap by typing the following command:
graphc name.fullpage.gc name.fullpagePut the file name.fullpage in the directory $NCARG_ROOT/lib/ncarg/graphcaps and now you can use it just like you would use any of the other graphcaps with ctrans and ictrans.
First you need to convert the NCGM file to PostScript with the following type of command:
ctrans -d ps.color -simulatebg gmeta > gmeta.psConvert this PostScript file to encapsulated PostScript using a filter of some kind:
ps2epsi gmeta.ps gmeta.epsi(ps2epsi is a utility based on GhostScript which takes an input PostScript file and generates a new output file which conforms to Adobe's "Encapsulated Postscript Interchange" format, called EPSI.)
Then, in your TeX or LaTeX file, you need to have the following lines:
...
\input epsf
...
\epsfbox{gmeta.epsi}
...
If you want to resize the figure, you can do so with one or both of
the TeX commands:
\epsfxsize=dimen \epsfbox{gmeta.epsi}
\epsfysize=dimen \epsfbox{gmeta.epsi}
This will cause the plot to have a width of dimen in the indicated
direction, and the other direction will be scaled automatically to
preserve aspect ratio.Important: The figure will not show up in the dvi file; it will only show up when you print or view the PostScript file.
Yes, it is. For more information, please contact your site representative, or call the NCAR Graphics consulting office at (303) 497-1201. You can also send e-mail to scdinfo@ncar.ucar.edu.
The latest version of this FAQ is available in PostScript format via anonymous FTP. Your FTP session should look like this:
ftp ftp.ucar.edu Name(ftp.ucar.edu:login_name): anonymous Password: your_email_address ftp> cd ncarg/unix3.2.1/doc ftp> get FAQ.ps ftp> quit