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

Functions for reading and writing Peter Goodford's GRID files. More...

#include "rwGOODFORD.h"
#include "file_util.h"
#include "utilities.h"

Functions

int readGOODFORD (Bimage *p, int readdata)
 Reading Peter Goodford's GRID map image file format. A 3D image format used for electrostatic potential maps. Header size: 168 bytes (fixed). File format extensions: .pot The data is packed as slices, each slice with a header of size 20 bytes. Byte order determination: File type and third dimension values must be less than 256*256. Data types: 1 = float. More...
 
int writeGOODFORD (Bimage *p)
 Writing Peter Goodford's GRID map image file format. A 3D image format used for electrostatic potential maps. More...
 

Variables

int verbose
 

Detailed Description

Functions for reading and writing Peter Goodford's GRID files.

Author
Bernard Heymann
Date
Created: 20000924
Modified: 20120321

Function Documentation

◆ readGOODFORD()

int readGOODFORD ( Bimage p,
int  readdata 
)

Reading Peter Goodford's GRID map image file format. A 3D image format used for electrostatic potential maps. Header size: 168 bytes (fixed). File format extensions: .pot The data is packed as slices, each slice with a header of size 20 bytes. Byte order determination: File type and third dimension values must be less than 256*256. Data types: 1 = float.

Parameters
*pthe image structure.
readdataflag to activate reading of image data.
Returns
int error code (<0 means failure).

◆ writeGOODFORD()

int writeGOODFORD ( Bimage p)

Writing Peter Goodford's GRID map image file format. A 3D image format used for electrostatic potential maps.

Parameters
*pthe image structure.
Returns
int error code (<0 means failure).

Variable Documentation

◆ verbose

int verbose
extern