Link to USGS home page.
Coastal and Marine Geology Program

Skip menu and go to content. OFR 2005-1001 Home / Procedures / East-Coast Database / GIS Data Catalog

U.S. Geological Survey Open-File Report 2005-1001
USGS East-Coast Sediment Analysis: Procedures, Database, and GIS Data



radio button Quick BASIC Software

radio button - current selection C Language Software

radio button Visual BASIC Software

NAME:  rsam


PURPOSE: To manually enter sand-fraction (sieve and rapid sediment analyzer; Figure 1, and Figure 2) and gravel fraction data via the keyboard.


USAGE: rsam afile_name


VERSION: 11/3/1998


DESCRIPTION:  This version of the program, which was written in “c” and compiled with DJGPP (v. 2.01), will run under Windows 95/98 in the Born-Again-Shell (Bash). For each file named, the user is prompted for a set of project identifiers. These will remain constant for each file.  If the file named exists, data are appended to the file.  Otherwise, the file will be created. All prompts are self‑explanatory.


Data are written to the file when all sand and gravel data have been entered. Data are entered as two separate groups: sand being phi 4 to phi 0, gravel being phi ‑1 to phi ‑5. Each phi group must sum to 100 +‑ 0.1%. Otherwise, the user is prompted to re‑enter the phi group. When the sample weight is equal to the coarse weight, the user is not prompted to enter gravel data.


The program may be aborted at any time by hitting the “Control C” key.


Entering a “period” at the lab number prompt closes the program and saves the input.


FILES: sedlab.h


SEE ALSO: rsam.c getcoars.c getids.c rsetup.c rprint.c /utils/iolib.c


DIAGNOSTICS‑BUGS: Each response will have a maximum field length as specified in sedlab.h . If the user response is too long, the program will specify the maximum number of characters allowed for the current response.


AUTHOR/MAINTENANCE: Janet J. Fredericks, Woods Hole Oceanographic Institute (WHOI), Woods Hole, MA 02543/Larry Poppe, U.S. Geological Survey (USGS), Woods Hole, MA 02543

skip menu

skip footer
U.S. Geological Survey
Coastal and Marine Geology Program
Woods Hole Science Center