USGS Science⌕ Search

USGS · ofr93595

SPECtrum Processing Routines User's Manual Version 3 (program SPECPR)

Abstract

Introduction The SPECtrum Processing Routines (SPECPR) is a large-scale interactive program for general one-dimensional array processing and optimized for reflectance spectroscopy data and analysis. The program processes one-dimensional arrays up to 4852 data points and the operations include addition, subtraction, multiplication, division, trigonometric functions, logarithmic and exponential functions, and many more specialized routines. The Specpr user interface is a menu driven, character command system with all user input entered as ascii characters to the program. User commands are thoroughly checked for the context in which they will be used. This provides for essentially all user input mistakes to be caught and appropriate error messages to be issued. The user interface also allows for command aliasing, variable substitutions, command history and batch command processing to occur at any point in the program. The user can also control his or her own variables, increment and decrement them, and monitor certain internal variables. This flexibility allows for sophisticated programming, e.g. from specific computations, to management of a database. All arrays are treated as one dimensional lists of numbers, each with an appropriate header for identification and history. Any array can be plotted versus another array, and each axis labeled appropriately. For example, you may plot a reflectance spectrum versus wavelength or wavelength versus reflectance. The array type is simply a label, so data like temperature versus time can be treated just as easily as a reflectance spectrum. Some routines are specific to certain purposes, however. For example, the Planck black body generator is specific to intensity versus wavelength, whereas a smoothing routine could operate equally on reflectance versus wavelength or temperature versus time. Each array element can have an error bar associated with it and errors are propagated through all appropriate routines. Data points can be marked deleted and deleted points are tracked appropriately. These features allow the program to be effectively used on real world data. This philosophy has resulted in a flexible system for which a user can manipulate data arrays efficiently. The program was designed for analysis of laboratory, field, telescopic, and spacecraft spectroscopic data, and although general in nature, there are biases built in. For example, horizontal axis labels default to wavelength in micrometers, but the defaults can be changed. Because of the orientation in Specpr to process planetary and terrestrial data, and the need to access such data, Specpr has been extended to have access to non-Specpr default file types. In particular, Specpr can "skewer" an 3-dimensional (3D) data file along any of the three axes. Further, block skewers can be done with the standard deviation of the mean computed for each channel in the block. Currently, Specpr can access any of the standard file types common in the terrestrial and planetary remote sensing communities. Details on 3D file I/O are given in Chapter 6. Specpr has multiple record types available within a single Specpr data file. Currently defined record types are data and text. In a data record, a standard one-dimensional array is held, along with its header information. The header information includes a title, history, dates and time of data acquisition and when the data were last processed, the user who processed the data, information typical of a spectrum like temperature and viewing geometry, as well as pointers to wavelengths, resolution, and text. If a spectrum is more than 256 channels in length, then the data gets put in succeeding records in the file, and the following records are continuation records. The second record type is the text, where a title and a block of text (up to 19 kbytes) can be stored. This record type is typically used for a description of samples, experiments, instruments, or data processing for a particular data set. It could also store the actual commands used to create a spectrum. The commands for a complicated plot for a publication might be stored in a text record. That way, you can easily regenerate the plot, or even write the commands to a non-Specpr file, modify them with any editor and re-execute them. The file types, text and command processing, combined with the math and special functions, provide for very powerful and general analysis tool. These facilities also provide the framework for database management.

Explore related subjects

Keep this discovery

Explore connections, maps & timelines

BibTeXRIS

Roger N. Clark. 1993-12-15. SPECtrum Processing Routines User's Manual Version 3 (program SPECPR). https://doi.org/10.3133/ofr93595

Cite the original work for its findings. Save a collection to share your selection of sources.

KEEP EXPLORING

Related USGS reports

ECCOE Landsat quarterly calibration and validation report—Quarter 2, 2026

Executive Summary The U.S. Geological Survey Earth Resources Observation and Science Calibration and Validation (Cal/Val) Center of Excellence (ECCOE) focuses on improving the accuracy, precision, calibration, and product quality of remote-sensing data, leveraging years of multiscale optical system geometric and radiometric calibration and characterization experience. The ECCOE Landsat Cal/Val Team continually monitors the geometric and radiometric performance of active Landsat missions and makes calibration adjustments, as needed, to maintain data quality at the highest level. This report provides observed geometric and radiometric analysis results for Landsats 8 and 9 for quarter 2 (April–June), 2026. All data used to compile the Cal/Val analysis results presented in this report are freely available from the U.S. Geological Survey EarthExplorer website: https://earthexplorer.usgs.gov.

Open-File Report↗

ECCOE Landsat quarterly calibration and validation report—Quarter 1, 2026

Executive Summary The U.S. Geological Survey Earth Resources Observation and Science Calibration and Validation (Cal/Val) Center of Excellence (ECCOE) focuses on improving the accuracy, precision, calibration, and product quality of remote-sensing data, leveraging years of multiscale optical system geometric and radiometric calibration and characterization experience. The ECCOE Landsat Cal/Val Team continually monitors the geometric and radiometric performance of active Landsat missions and makes calibration adjustments, as needed, to maintain data quality at the highest level. This report provides observed geometric and radiometric analysis results for Landsats 8 and 9 for quarter 1 (January–March) of 2026. All data used to compile the Cal/Val analysis results presented in this report are freely available from the U.S. Geological Survey EarthExplorer website: https://earthexplorer.usgs.gov . One specific activity that the ECCOE Landsat Cal/Val Team closely monitored was a Landsat 8 Thermal Infrared Sensor encoder alerts anomaly. On March 18, 2026, the Thermal Infrared Sensor instrument’s mechanism control electronics board reset, driving several parameters to default power-on values. Subsequent telemetry and analysis determined that no persistent hardware misconfiguration was present and no radiometric or geometric degradation was observed.

Open-File Report↗

Floods of June 20–July 6, 2024, in the Big Sioux River, Rock River, Little Sioux River, Ocheyedan River, and Floyd River Basins, northwestern Iowa

Major flooding occurred on June 20–July 6, 2024, in northwestern Iowa affecting the Big Sioux, Rock, Little Sioux, Ocheyedan, and Floyd River Basins. Heavy rain fell in northwestern Iowa, southwestern Minnesota, and southeastern South Dakota on June 20–22, 2024. Parts of northwestern Iowa recorded 2–6 inches of rainfall and localized amounts exceeding 12 inches. A maximum peak-of-record streamflow of 175,000 cubic feet per second at the U.S. Geological Survey streamgage Big Sioux River at Akron, Iowa (06485500), was recorded on June 22, 2024, and had an annual exceedance probability range of 0.2–0.49 percent. High-water marks were measured at four locations along the Big Sioux River between U.S. Interstate 29 at Sioux City, Iowa, upstream to Iowa Highway 10 north of Hawarden, Iowa, a distance of 75.7 river miles. A maximum peak-of-record streamflow of 157,000 cubic feet per second at the U.S. Geological Survey streamgage Rock River near Rock Valley, Iowa (06483500), was recorded on June 22, 2024, and had an annual exceedance probability of less than 0.2 percent. High-water marks were measured at eight locations along the Rock River between County Road B30 east of Hudson, South Dakota, upstream to Iowa Highway 9 at Rock Rapids, Iowa, a distance of 39.3 river miles. A maximum peak-of-record streamflow of 63,000 cubic feet per second at the U.S. Geological Survey streamgage Little Sioux River at Correctionville, Iowa (06606600), was recorded on June 24, 2024, and had an annual exceedance probability range of 0.2–0.49 percent. High-water marks were measured at 11 locations along the Little Sioux River between Iowa Highway 31 west of Correctionville, Iowa, upstream to U.S. Highway 18 north of Spencer, Iowa, a distance of 134.8 river miles. A maximum streamflow of 24,500 cubic feet per second at the U.S. Geological Survey streamgage Ocheyedan River near Spencer, Iowa (06605000), was recorded on June 22, 2024, and had an annual exceedance probability range of 0.2–0.49 percent. High-water marks were measured at three locations along the Ocheyedan River between County Road M38 west of Spencer, Iowa, upstream to U.S. Highway 18 west of Everly, Iowa, a distance of 12.8 river miles. A maximum streamflow of 41,000 cubic feet per second at the U.S. Geological Survey streamgage Floyd River at Alton, Iowa (06600100), was recorded on June 22, 2024, and had an annual exceedance probability range of 1–1.99 percent. High-water marks were measured at six locations along the Floyd River between Iowa Highway 3 at Le Mars, Iowa, upstream to Iowa Highway 10 at Alton, Iowa, a distance of 27.5 river miles. The high-water marks were used to develop flood profiles for the Big Sioux, Rock, Little Sioux, Ocheyedan, and Floyd Rivers.

Iowa, Minnesota, South Dakota↗