Basin Research at Penn State
College of Earth and Mineral Sciences and The Department of Geosciences
sp

 

Printers

pressure: a black and white laser printer in 305 Deike
bauxite: a black and white laser printer in 337 Deike
graphite: a black and white copier in 342 Deike
andesite: a color printer in 337 Deike
granite: a color printer in 542 Deike
flow: a color printer in 320 Deike
natasha: a color printer in 20 Hosler
karst: a color plotter in 337 Deike

Instructions on how to convert .cgm to .ps:
You must edit your .cshrc.cat file in your home directory.
cd to /home/geosc/your_id and add the following lines to your .cshrc.cat file using a texteditor:
if (! $?PATH ) then
if ( `uname -s` == "SunOS" ) then
setenv PATH /opt/ptm/geolog6/bin
else if ( `uname -s` == "Linux" ) then
setenv PATH /opt/ptm/lnx/geolog6/bin
endif
else
if ( `uname -s` == "SunOS" ) then
setenv PATH ${PATH}:/opt/ptm/geolog6/bin
else if ( `uname -s` == "Linux" ) then
setenv PATH ${PATH}:/opt/ptm/lnx/geolog6/bin
endif
endif
if (! $?LD_LIBRARY_PATH ) then
if ( `uname -s` == "SunOS" ) then
setenv LD_LIBRARY_PATH /opt/ptm/geolog6/lib
else if ( `uname -s` == "Linux" ) then
setenv LD_LIBRARY_PATH /opt/ptm/lnx/geolog6/lib
endif
else
if ( `uname -s` == "SunOS" ) then
setenv LD_LIBRARY_PATH ${LD_LIBRARY_PATH}:/opt/ptm/geolog6/lib
else if ( `uname -s` == "Linux" ) then
setenv LD_LIBRARY_PATH ${LD_LIBRARY_PATH}:/opt/ptm/lnx/geolog6/lib
endif
endif
if (! $?MANPATH ) then
setenv MANPATH /opt/ptm/geolog6/man
else
setenv MANPATH ${MANPATH}:/opt/ptm/geolog6/man
endif

1. In Landmark, create a .cgm file with File-Scaled Plot (basically just as you would prepare a plot for the plotter, just don't click on the "queue to plotter" box at the bottom.
2. copy this cgm file from /pa/projectname/filename.cgm to your scratch directory
3. In your scratch directory, source the new .cshrc.cat file (source .cshrc.cat)
4. Execute the cgm_to_ps in the following manner:
cgm_to_ps file_in = ./filename.cgm > ./filename.ps
You'll get the following messages:
CGM_TO_PS [1.000 (1)], started.
CGM_TO_PS [1.000 (1)], finished.
You can then edit in Illustrator and print to any of the above printers/plotters.

An alternate way to convert cgm to postscript
We have an alternate CGM conversion program now, which is more versatile and (so far) seems to work better than the Geolog cgm_to_ps. It is called "gplot" and is installed in /opt/local/bin. The manual page is available by typing "man gplot". In a nutshell, to convert a CGM file to postscript (for printing or inclusion elsewhere):

gplot -dpsc -S myfile.cgm myfile.ps

No changes to your environment are necesary prior to executing this command -- your default PATH, LD_LIBRARY_PATH, MANPATH are sufficient.
For those interested, the meaning of the options used above:
-dpsc Use output device "POSTSCRIPT COLOR". Additional output
devices are listed in the manual page.
-S Scale output.
myfile.cgm Your input CGM file.
myfile.ps Your output Postscript file.

How to view .cgm files quickly:
1. In a terminal type /pecten/s0/sdi/sdi_view/sdi_view
2. This will bring up something called "sdi-view", open the files using the pull down menu and view it
3. Yep, it's that simple :)

UNIX Plotting
To set the default printer on your UNIX workstation: setenv PRINTER bauxite (or other printer name)

 

This site was last updated on February 27, 2007
Questions and suggestions may be directed to hnelson@geosc.psu.edu