10.11.2012 Views

Reference Manual of the nadc-tools API and Libraries - SRON

Reference Manual of the nadc-tools API and Libraries - SRON

Reference Manual of the nadc-tools API and Libraries - SRON

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

2.26 NADC FLIP<br />

Identifier NADC FLIP<br />

Author R.M. van Hees<br />

Language ANSI C<br />

Purpose flip <strong>the</strong> data <strong>of</strong> a matrix<br />

Usage NADC FLIPx( flip, npix, xmatrix );<br />

Input int flip: direction specifies <strong>the</strong> operation to be performed<br />

unsigned int npix[2] : dimensions <strong>of</strong> <strong>the</strong> matrix<br />

In/Output matrix matrix[2]: array to be transformed<br />

Returns nothing (check global error status)<br />

Comment ”flip” specifies <strong>the</strong> operation to be performed, as follows:<br />

0 do not change <strong>the</strong> matrix<br />

1 flip <strong>the</strong> data along <strong>the</strong> first axis<br />

2 flip <strong>the</strong> data along <strong>the</strong> second axis<br />

3 flip <strong>the</strong> data along both axis<br />

”x” specifies <strong>the</strong> data type <strong>of</strong> <strong>the</strong> input matrix, as follows:<br />

”c” signed char<br />

”u” unsigned char<br />

”s” short<br />

”r” float<br />

2.27 NADC HDF5 <strong>API</strong><br />

Identifier NADC HDF5 <strong>API</strong><br />

Author R.M. van Hees<br />

Language ANSI C<br />

Purpose subroutines to easily create/write/read attributes <strong>and</strong> datasets<br />

Returns nothing: modifies global error status<br />

Comment none<br />

2.27.1 WRITE HDF5 HISTORY<br />

Identifier WRITE HDF5 HISTORY<br />

Purpose Write attribute in group holding user-defined settings<br />

Usage WRITE HDF5 HISTORY( file id, instrument, param )<br />

Input hid t file id : HDF5 file ID<br />

hid t instrument : flag for Instrument & Product<br />

struct param record param : struct holding user-defined settings (A.1)<br />

Returns nothing: modifies global error status<br />

Comment none<br />

2.27.2 NADC OPEN HDF5 Group<br />

Identifier NADC OPEN HDF5 Group<br />

Purpose Open/Create a group in an exsisting HDF5-file<br />

Usage grp id = NADC OPEN HDF5 Group( loc id, name );<br />

Input hid t loc id : HDF5 object id<br />

char name[] : name <strong>of</strong> <strong>the</strong> group<br />

Returns A negative value is returned on failure.<br />

Comment none<br />

44

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!