Bsoft 2.1.4
Bernard's software package
rwSPE.cpp File Reference

Functions for reading and writing SPE CCD files. More...

#include "rwSPE.h"
#include "file_util.h"
#include "utilities.h"

Functions

int readSPE (Bimage *p, int readdata, int img_select)
 Reading a SPE image file format. More...
 
int writeSPE (Bimage *p)
 Writing a SPE image file format. More...
 

Variables

int verbose
 
char * month []
 

Detailed Description

Functions for reading and writing SPE CCD files.

Author
Bernard Heymann
Date
Created: 20081105
Modified: 20120409

Function Documentation

◆ readSPE()

int readSPE ( Bimage p,
int  readdata,
int  img_select 
)

Reading a SPE image file format.

Parameters
*pthe image structure.
readdataflag to activate reading of image data.
img_selectimage selection in multi-image file (-1 = all images).
Returns
int error code (<0 means failure). A Princeton Instruments CCD image file format. Header size: 4100 bytes (fixed). File format extension: .SPE. Byte order determination: data type field. Data types: 0 = float, 1 = int, 2 = short, 3 = unsigned short, 4 = string/char, 5 = double, 6 = char, 7 = unsigned char/byte.

◆ writeSPE()

int writeSPE ( Bimage p)

Writing a SPE image file format.

Parameters
*pthe image structure.
Returns
int error code (<0 means failure). A Princeton Instruments CCD image file format.

Variable Documentation

◆ month

char* month[]
extern

◆ verbose

int verbose
extern