This page provides
information local system functions, for use by the hydrology work group.
Most of what is contained on this page is applicable only to the the
hydro network.
- Scanning an image:
- The scanner must
be turned on before the PC is turned on, or the PC will not
be able to access it.
- Start Photoshop
(the scanner software can be run directly, but results are much
better if done within Photoshop).
- Select File->Aquire->TWAIN_32,
this starts the scanner software.
- Load a settings
file if you have one. The default settings do not produce the
best results for photos, but work resonably well for line drawings.
(Setting files produced while the scanner was on ephemeral were
lost when it died, and have not yet been recreated on carbon).
- Select Preview
- Set the bounding
box to crop the part of the image you want scanned.
- Adjust the settings
so that you can see the image. The preview image is not very
high resolution, but you can use it to check contrast - if the
preview is all black, it will produce a black final image.
- Set the resolution
you want for the final image - remember higher resolution means
a larger file size. Always scan the image at a resolution higher
than you want for the final image. Photoshop does a much better
job reducing the resolution than the scanner software.
- Hit scan to get
the final image
- Exit the scanner
software, the scanned image has already been opened in Photoshop.
- Use photoshop to
adjust colors, brightness, contrast, and to reduce the image
size and resolution to it's final value. Web graphics should
be stored as JPG (for photos), or GIF (for line drawings), and
are displayed using a resolution of 72 dots/inch.
- Save the file.
- Using
the optical character reader software to scan text
The following
commands should be used only within a window opened to the machine on
which the cd-rom is mounted (meter and the LINUX systems):
- rda mount cdrom
this mounts the cdrom to the directory /cdrom on meter
- rda umount cdrom
this unmounts the cdrom from meter, allowing it to be ejected
- Put the tape into the
tape drive.
- Operate directly from
plane or from a plane shell window. Using these commands on another
machine, manipulates the numbered remote drive on that system (since
most of our machines do not have other devices, this will not normally
be a problem).
- TAPENAME: for plane
the tape drive is always /dev/rmt/0 (0 refers to the remote device
number) followed by one or more of the following letters (I suggest
using only only one compression type per tape to simplify tape access
- 0h and 0hn yield the most storage space, and they will be used
in the following example commands):
- b - BSD-style
device semantics
- n - No rewind
on close
- l - Low density
(Exabyte 8200 mode)
- m - Medium
density (Exabyte 8500 mode)
- h - High
density (Exabyte 8500 mode, with compression) (~10 Gigs per
tape)
- c - Same
as h for 8mm drives
- u - Same
as h for 8mm drives
- Using the magnetic
tape control (mt) command to manipulate the tape:
- mt -t /dev/rmt/0hn
fsf n
this skips over 'n' files
Make sure TAPENAME includes 'n' for no rewind, otherwise the
commands skips the files and then rewinds the tape.
- mt -t /dev/rmt/0h
rewind
this rewinds the tape
- mt -t /dev/rmt/0h
offline
this rewinds the tape and ejects it
- Using gtar and tar
to archive files:
- Rewind the tape
(to be safe) with 'mt -t /dev/rmt/0hn rew'.
- Skip over files
you don't want, make sure you name the drive '0hn', otherwise
the tape will rewind after skipping files.
- use 'gtar -[x/t/c]vf
/dev/rmt/0hn ' to
'x' - extract files
't' - print a listing (table) of files in the archive
'c' - create a new archive file
NOTE: include
an 'n' in TAPENAME if you don't want the tape to rewind after the tar
NOTE: to use wildcards (* and ?) when extracting from the tape, enclose
the search string in single quotes - '/nfs/usr3/temp*'
WARNING: creating a new tar file will destroy all files after the new
file on the tape
WARNING: You should use the same compression level everytime you use
the tape
IMPORTANT:
USE GTAR INSTEAD OF TAR.
On our systems tar does not always work as it is supposed to, but gtar
has never been reported to cause problems.
Set the following
environment variables for ontario (works the same on all LINUX machines,
except scope. on scope, the path /nfs/scope/home does not work so use
/home instead):
- setenv GMTHOME /nfs/scope/home/cherkaue/GMT/GMT3.1
- set path = (/nfs/scope/home/cherkaue/GMT/GMT3.1/bin
$path)
- setenv MANPATH '/usr/lang/man:/usr/local/man:/usr/man:/usr/share/man:\
/usr/bin/man:/opt/gnu/man:/nfs/scope/home/cherkaue/GMT/GMT3.1/man
|