Unidata - To provide the data services, tools, and cyberinfrastructure leadership that advance Earth system science, enhance educational opportunities, and broaden participation. Unidata
         
  advanced  
 

950105: Once more: Two questions about NetCDF

>Date: Thu, 5 Jan 1995 13:37:45 +0100 
>From: Gerhard Eckel <Gerhard.Eckel@xxxxxxxx>
>Organization: IRCAM, France
>To: netcdfgroup@xxxxxxxxxxxxxxxx
>Subject: Once more: Two questions about NetCDF 
>Keywords: 199501051237.AA24460 stdin filter ncopers

Hello,

In the above message you wrote:

1)  For our applications we would need to read and write netCDF file
    from stdin and to stdout. Since netCDF routines may do seeks, this will
    probably cause problems.  Anyway, at the moment there is no way to open
    a netCDF file via stdin because the file has to have a name.

You might consider some library functions within the freely-available
NCOPERS package.  There is a library function (ncinput) which will open
a netCDF file for reading only.  If the pathname of the file specifies
standard input, then the contents are copied into a temporary file,
which is removed when the program exits.  There is a similar function
(ncrename) for output.

The NCOPERS package is available via the following:

    URL:        ftp://ftp.unidata.ucar.edu/pub/netcdf/
    FTP:        host ftp.unidata.ucar.edu, directory pub/ncopers

--------
Steve Emmerson   <steve@xxxxxxxxxxxxxxxx>


 
 
  Contact Us     Site Map     Search     Terms and Conditions     Privacy Policy     Participation Policy
 
National Science Foundation (NSF) UCAR Community Programs   Unidata is a member of the UCAR Community Programs, is managed by the University Corporation for Atmospheric Research, and is sponsored by the National Science Foundation.
P.O. Box 3000     Boulder, CO 80307-3000 USA     Tel: 303-497-8643     Fax: 303-497-8690