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.

5.15 NADC TOGOMI DEL ENTRY<br />

Identifier NADC TOGOMI DEL ENTRY<br />

Author R.M. van Hees<br />

Language ANSI C<br />

Purpose remove entries in database for a Togomi product<br />

Usage NADC TOGOMI 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> Togomi 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 togomi, tile togomi, tile meta togomi<br />

5.16 NADC TOGOMI WR SQL META<br />

Identifier NADC TOGOMI WR SQL META<br />

Author R.M. van Hees<br />

Language ANSI C<br />

Purpose write meta data <strong>of</strong> KNMI TOGOMI product to table ”meta togomi”<br />

Usage metaID = NADC TOGOMI WR SQL META( conn, hdr );<br />

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

struct togomi hdr *hdr : header <strong>of</strong> TOGOMI product (??)<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.17 NADC TOGOMI WR SQL TILE<br />

Identifier NADC TOGOMI WR SQL TILE<br />

Author R.M. van Hees<br />

Language ANSI C<br />

Purpose write tile information <strong>of</strong> a KNMI Togomi product to database<br />

Usage NADC TOGOMI 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> Togomi product<br />

unsigned int num rec : number <strong>of</strong> tiles to write<br />

struct togomi rec *rec : pointer to Togomi tile records (??)<br />

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

Comment None<br />

5.18 NADC TOSOMI DEL ENTRY<br />

Identifier NADC TOSOMI DEL ENTRY<br />

Author R.M. van Hees<br />

Language ANSI C<br />

Purpose remove entries in database for a Tosomi product<br />

Usage NADC TOSOMI 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> Tosomi 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 tosomi, tile tosomi, tile meta tosomi<br />

155

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

Saved successfully!

Ooh no, something went wrong!