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
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
5.7 NADC CONNECT DB<br />
Identifier NADC CONNECT DB<br />
Author R.M. van Hees<br />
Language ANSI C<br />
Purpose connect to meta/pixel database (reading XML configuration file)<br />
Usage NADC CONNECT DB( conn, database );<br />
Input PGconn *conn : PostgreSQL connection h<strong>and</strong>le<br />
char *database : name <strong>of</strong> database to be used<br />
Returns Nothing, error status passed by global variable “<strong>nadc</strong> stat”<br />
Comment None<br />
5.8 NADC FRESCO DEL ENTRY<br />
Identifier NADC FRESCO DEL ENTRY<br />
Author R.M. van Hees<br />
Language ANSI C<br />
Purpose remove entries in database for a Fresco product<br />
Usage NADC FRESCO DEL ENTRY( conn, prodName );<br />
Input PGconn *conn : PolstgreSQL connection h<strong>and</strong>le<br />
char *prodName : filename <strong>of</strong> <strong>the</strong> Fresco product<br />
Returns Nothing, error status passed by global variable “<strong>nadc</strong> stat”<br />
Comment Removes entries related to file ”prodName” from tables:<br />
meta fresco, tile fresco, tile meta fresco<br />
5.9 NADC FRESCO WR SQL META<br />
Identifier NADC FRESCO WR SQL META<br />
Author R.M. van Hees<br />
Language ANSI C<br />
Purpose write meta data <strong>of</strong> KNMI Fresco product to table ”meta fresco”<br />
Usage metaID = NADC FRESCO WR SQL META( conn, hdr, fresco );<br />
Input PGconn *conn : PostgreSQL connection h<strong>and</strong>le<br />
struct fresco hdr *hdr : header <strong>of</strong> Fresco product (??)<br />
struct fresco rec *fresco : records with Fresco data (??)<br />
Returns value <strong>of</strong> <strong>the</strong> primary key <strong>of</strong> <strong>the</strong> new entry<br />
error status passed by global variable “<strong>nadc</strong> stat”<br />
Comment None<br />
5.10 NADC FRESCO WR SQL TILE<br />
Identifier NADC FRESCO WR SQL TILE<br />
Author R.M. van Hees<br />
Language ANSI C<br />
Purpose write tile information <strong>of</strong> a KNMI Fresco product to database<br />
Usage NADC FRESCO WR SQL TILE( conn, prodName, num rec, rec );<br />
Input PGconn *conn : PostgreSQL connection h<strong>and</strong>le<br />
char *prodName : filename <strong>of</strong> <strong>the</strong> Fresco product<br />
unsigned int num rec : number <strong>of</strong> tiles to write<br />
struct fresco rec *rec : pointer to Fresco tile records (??)<br />
Returns Nothing, error status passed by global variable “<strong>nadc</strong> stat”<br />
Comment None<br />
153