NOAAPORT
Functions
noaaportIngester.c File Reference

This file contains the code for the noaaportIngester(1) program. More...

Functions

int main (const int argc, char *argv[])
 Reads a NOAAPORT data stream, creates LDM data-products from the stream, and inserts the data-products into an LDM product-queue. More...
 

Detailed Description

This file contains the code for the noaaportIngester(1) program.

This program reads NOAAPORT data from a file or multicast packet stream, creates LDM data-products, and writes the data-products into an LDM product-queue.

Copyright © 2019, University Corporation for Atmospheric Research. See COPYRIGHT file for copying and redistribution conditions.

Function Documentation

◆ main()

int main ( const int  argc,
char *  argv[] 
)

Reads a NOAAPORT data stream, creates LDM data-products from the stream, and inserts the data-products into an LDM product-queue.

The NOAAPORT data stream can take the form of multicast UDP packets from (for example) a Novra S300 DVB-S2 receiver or the standard input stream.

Usage: noaaportIngester [-l log] [-n|-v|-x] [-q queue] [-u n] [-m mcastAddr] [-I ip_addr] [-b npages]
Where:

-b npages

Allocate npages pages of memory for the internal buffer.

-I ip_addr

Listen for multicast packets on interface ip_addr. Default is the system's default multicast interface.

-l log

Log to file log. The default is to use the system logging daemon if the current process is a daemon; otherwise, the standard error stream is used.

-m mcastAddr

Use the multicast address mcastAddr. The default is to read from the standard input stream.

-n

Log messages of level NOTE and higher priority. Each data-product will generate a log message.

-q queue

Use queue as the pathname of the LDM product-queue. The default is to use the default LDM pathname of the product-queue.

-R bufSize

Set the receive buffer size for the NOAAPort UDP packets to bufSize bytes. The default is system dependent.

-u n

If logging is to the system logging daemon, then use facility localn. The default is to use the LDM facility.

-v

Log messages of level INFO and higher priority.

-x
Log messages of level DEBUG and higher priority.

If neither -n, -v, nor -x is specified, then logging will be restricted to levels ERROR and WARN only.

Return values
0if successful.
1if an error occurred. At least one error-message will be logged.
Parameters
[in]argcNumber of arguments
[in]argvArguments