1ASCII2NC(1)                    UNIDATA DECODERS                    ASCII2NC(1)
2
3
4

NAME

6       ascii2nc - reads and stores ASCII data into a netCDF file.
7
8

SYNOPSIS

10       ascii2nc  [-d  input  delimiter] [-l] [-r number of input lines/record]
11              cdlfile outputfile [datadir]
12

DESCRIPTION

14       Creates an netCDF file from the specified cdl file,  reads  ASCII  data
15       from stdin and writes the data to the netCDF file. ascii2nc assumes the
16       input data is in the same order and type as the variables  are  in  the
17       cdl  file.   Mismatched  data  is not written and produces a message to
18       stdout or a log file.
19

REQUIREMENTS

21       0) perl5 Installed on the system.
22
23       1) Latest version of netcdf-perl package is installed.
24
25       2) The ncgen utility is needed, search paths are util/ncgen,
26                 /usr/local/ldm/util/ncgen, ./ncgen, /upc/netcdf/bin/ncgen  or
27              in your $PATH variable.
28

OPTIONS

30       -d delimiter
31              Default input data delimiter is white space, the -d flag permits
32              one to change to another delimiter. ie. ","
33
34       -l     Default logging is to stdout and stderr, -l flag changes it to a
35              log file with name "asciiLog.$$.nc" where $$ is ascii2nc process
36              ID.
37
38       -r number of input lines/record
39              Default is 1 line of input/record, -r flag permits one to change
40              it to a multiple number of input lines/record.
41
42       cdl file
43              Properly formatted netCDF cdl file, the netCDF utility ncgen us‐
44              es it to create the netCDF file. ascii2nc uses it to extract the
45              data type and variable dimensions.
46
47       netCDF output file
48              Name of the netCDF file.
49
50       datadir
51              Default is the current directory. The output files and log files
52              are place in this directory.
53
54

EXAMPLES

56       Command line:
57              % ascii2nc ascii.cdl out.nc < testdata
58
59
60
61
62       SUPPORT
63
64       If you have problems with this program, then you should  first  examine
65       the  decoders  email  archive  for  similar  problems and how they were
66       solved.  The email archive is available via the  following  World  Wide
67       Web URL:
68
69              http://www.unidata.ucar.edu/packages/decoders
70
71       If  this does not suffice and your site is a member of the Unidata pro‐
72       gram, then send an inquiry via email -- together will all relevant  in‐
73       formation -- to
74
75              support@unidata.ucar.edu
76
77
78
79Printed: 119.6.22         $Date: 97/06/05 11:48:35 $               ASCII2NC(1)
Impressum