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.

4.119.1 SCIA RD LADS<br />

Identifier SCIA RD LADS<br />

Purpose read Geolocation <strong>of</strong> <strong>the</strong> state records<br />

Usage nr dsr = SCIA RD LADS( fd, num dsd, dsd, &lads );<br />

Input FILE *fd : stream pointer<br />

unsigned int num dsd : number <strong>of</strong> DSDs<br />

struct dsd envi dsd : structure for <strong>the</strong> DSDs (A.6)<br />

Output struct lads scia **lads : geolocation <strong>of</strong> states (C.10)<br />

Returns number <strong>of</strong> data set records read (unsigned int)<br />

error status passed by global variable “<strong>nadc</strong> stat”<br />

Comment none<br />

4.119.2 SCIA LV1 WR LADS<br />

Identifier SCIA LV1 WR LADS<br />

Purpose write Geolocation <strong>of</strong> <strong>the</strong> state records<br />

Usage SCIA LV1 WR LADS( fd, num lads, &lads );<br />

Input FILE *fd : stream pointer<br />

unsigned int num lads : number <strong>of</strong> LADS records<br />

struct lads scia *lads : geolocation <strong>of</strong> states records (C.10)<br />

Returns nothing<br />

error status passed by global variable “<strong>nadc</strong> stat”<br />

Comment none<br />

4.120 SCIA RD H5 MEM<br />

Identifier SCIA RD H5 MEM<br />

Author R.M. van Hees<br />

Language ANSI C<br />

Purpose read table for Reticon non-linearity correction<br />

Usage SCIA RD H5 MEM( &mem );<br />

Output struct scia memcorr *mem : (C.2)<br />

size t dims[2] : dimension <strong>of</strong> matrix (hdf5 definition)<br />

float **matrix : memory correction matrix<br />

Returns Nothing<br />

Comment You need to release allocated memory, use SCIA FREE H5 MEM<br />

4.121 SCIA RD H5 NLIN<br />

Identifier SCIA RD H5 NLIN<br />

Author R.M. van Hees<br />

Language ANSI C<br />

Purpose read table for Epitaxx non-linearity correction<br />

Usage SCIA RD H5 NLIN( nlcorr db, &nlin );<br />

Input char *nlcorr db : full-path to nlcorr database (or NULL)<br />

Output struct scia nlincorr *nlin : (C.3)<br />

size t dims[2] : dimension <strong>of</strong> matrix (hdf5 definition)<br />

char curve[8192] : index to correction curve<br />

float **matrix : non-linearity correction matrix<br />

Returns Nothing<br />

Comment You need to release allocated non-linearity, use SCIA FREE H5 NLIN<br />

145

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

Saved successfully!

Ooh no, something went wrong!