BAS


PROSPECT SPECTRAL DATA PROCESSOR MANUAL


2 : BAS Data storage and file formats

The following section describes the BS2 data file format, adapted from the NSF system. Each data file has a unique filename, the first character of which specifies the data type:

2.1 BAS Spectral File types and filename convention

All data are in ASCII format, using only character codes 10, 13, and 32 to 126 decimal inclusive. ASCII codes 9 (tab), 12 (form feed), 27 (escape), or 127 (delete) and codes greater than 127 are not used. Data values are either space separated or comma separated.

Files consist of a header section containing ancillary scan and Quality Control information, followed by the data:

Table 2.1: BAS Spectral File types and filename formats.
TypeDescriptionName format
Reference data:
LLamp spectral output (Wm-2 nm-1). The lamp irradiance at the diffuser mounted in the calibration configuration, as given in the calibration certificate. Llabel.dat
RReference data. Examples include noon solar zenith angles as a function of day number; cosine response functions (where the independent variable is angle) and slit functions. Rlabel.dat
XAction spectrum or spectral response function.Xlabel.dat
Calibration data:
PMeasurement of one or more spectral lines (nA). (e.g. Fraunhofer lines, Hg lamp emission). PyySnnn.xxx
WWavelength calibration file.WyySnnn.wlc
AAbsolute scan (nA) of system response to calibration lamp.AyySnnn.xxx
CIrradiance calibration file (Wm-2 nm-1). The ratio of L/A. CyySnnn.cal
FCalibrated spectral measurement (Wm-2 nm-1). QC check of lamp. FyySnnn.ddd
Calibrated measured data:
ECalibrated spectral measurement (Wm-2 nm-1) for experiments. EyyShhmm.ddd
GCalibrated global spectral irradiance (Wm-2 nm-1). GyyShhmm.ddd
TTransmission spectra (ratio - no y units). TyyShhmm.ddd
whereyy= short year (e.g. 99)
hh= hour (UTC)
mm= minute
ddd= day number (1-366)
S= slit width (resolution) code: F = 0.05 (fine), H = 0.37 (high), M = 0.74 (med.), L = 1.48 (low), X = not known.
nnn= calibration serial number
xxx= scan index number for individual calibration scans.

Most users will be interested either in measurements of global irradiance (data type G). Calibrated spectral measurements (data type E) may include measured output from other light sources.

Transmission spectra (data type T) are the ratio of radiation transmitted by the material on test to the output of the lamp and the data ranges from 0 to 1. Multiplying an incident irradiance spectrum (e.g. global irradiance data) by a transmission spectrum for a material will give the theoretical irradiance under say, a cloche (assuming a 90° angle of incidence).

Similarly, action spectra or spectral response functions (data type X) may be used to weight spectral measurements.


2.2 Spectral File Formats

Files consist of a header section containing ancillary scan and Quality Control information, followed by the data:

Table 2.2: BS Spectral File structure.
LineParameterFormat
all types:
1BS2,file format identifier
2filename,char[15]normally nm
3x units,char[20]upper case
y units,char[20]normally W/m2/nm for spectral irradiance files
all measurement types:
4station name,char[15]e.g. 'Rothera01'
date,dd-mm-yyyyBritish ISO, long year
day number,integer1 = Jan 1st
time start,hh:mm:ssUTC (GMT/Zulu)
time stop,hh:mm:ssUTC (GMT/Zulu)
5slit width,realunits = mm
samples per reading,integer0 = variable (adaptive integration)
6last PMT interrupt,dd-mm-yyyyBritish ISO, long year
wavelength calibration filename,char[15](upper case) 'none' = wavelength correction not applied
irradiance calibration filename,char[15](upper case) 'none' = irradiance correction not applied
7PMT dark current,realunits = nA
PMT voltage,realunits = V
electronics (ADC) offset,realunits = V
8monochromator temperature,realunits = °C
envirobox temperature,realunits = °C, null = assume no envirobox control
air temperature,realunits = °C, = room temperature for types P,W,A,C,T & F
global irradiance spectra (type G) only:
9schedule time,hh:mm:ssUTC (GMT/Zulu)
solar zenith anlgle,realunits = degrees
azimuth,realunits = degrees
direct sun,charN=no direct sun, Y=direct sun, null = not known
lamp measurement types (A,C,P,W,F,E):
9lamp ID,char[50]lamp name/code
transmission spectra (type T) only:
9material,char[50]material identifier
thickness,realunits = mm
lamp file,char[50](upper case)
all types:
-commentchar[255](enclosed in double quotes)
 :data start
x1 y1 (e.g. wavelength vs. irradiance)
x2 y2 etc
xn yn
:data end

Note: All unknown or inapplicable fields will be null (blank fields). Numbers in square brackets give the maximum length of character data.


2.3 Other File Types

Calibration data:

Calibration records are stored in an ASCII data file using the Windows initialisation (INI) file format (section names in square brackets, key=space separated data):

[WLCAL]
key=filename date lamp


[IRCAL]
key=filename lamp certificate


wherekey= integer calibration serial number
filename= calibration filename
date= date of calibration
lamp= lamp identification/serial number
certificate = file containing lamp calibration certificate data
Lamp burn record:

The lamp burn record for each lamp is stored as a separate Excel spreadsheet.




CONTENTS next Paul Geissler
Biological Sciences Division
British Antarctic Survey
page@bas.ac.uk