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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

5.30 SCIA LV1 MATCH STATE<br />

Identifier SCIA LV1 MATCH STATE<br />

Author R.M. van Hees<br />

Language ANSI C<br />

Purpose write state information <strong>of</strong> Sciamachy Lv1b product to database<br />

Usage SCIA LV1 MATCH STATE( conn, mph, numState, lads, sqads, state );<br />

Input PGconn *conn : PostgreSQL connection h<strong>and</strong>le<br />

struct mph envi *mph : structure for MPH record (A.5)<br />

unsigned short numState : number <strong>of</strong> state records<br />

struct lads scia *lads : structure for LADS records (C.10)<br />

struct sqads1 scia *sqads : structure for SQADS records (E.7)<br />

struct state1 scia *state : structure for STATE records (E.22)<br />

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

Comment None<br />

5.31 SCIA LV1 WR SQL AUX<br />

Identifier SCIA LV1 WR SQL AUX<br />

Author R.M. van Hees<br />

Language ANSI C<br />

Purpose<br />

Usage SCIA LV1 WR SQL AUX( conn, mph, num dsd, dsd );<br />

Input PGconn *conn : PostgreSQL connection h<strong>and</strong>le<br />

struct mph envi *mph : structure for MPH record (A.5)<br />

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

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

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

Comment Nothing<br />

5.32 SCIA LV1 WR SQL META<br />

Identifier SCIA LV1 WR SQL META<br />

Author R.M. van Hees<br />

Language ANSI C<br />

Purpose write meta data <strong>of</strong> Sciamachy Lv1b product to table ”meta 1P”<br />

Usage SCIA LV1 WR SQL META( conn, sciafl, mph, sph );<br />

Input PGconn *conn : PostgreSQL connection h<strong>and</strong>le<br />

char *sciafl : name <strong>of</strong> Sciamachy file<br />

struct mph envi *mph : structure for MPH record (A.5)<br />

struct sph1 scia *sph: structure for SPH record (E.6)<br />

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

Comment None<br />

159

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

Saved successfully!

Ooh no, something went wrong!