bin2cdf(1)

NAME
bin2cdf - convert binary output files into NetCDF files

SYNOPSIS
soil2cdf [-cellsize size] [-compress level] [-descr d] [-units u] {-swap] [-short] [-nitem n} [-ispft] [-firstyear y] varname gridfile binfile netcdffile

DESCRIPTION
Program converts binary output files into NetCDF file.

OPTIONS

-cellsize size
    set cell size in grid file to size. Default is 0.5 deg.

-compress level
    compression level for NetCDF4 files

-descr d
    set long name in NetCDF file

-units u
    set units in NetCDF file

-swap
    change byte order in binary file

-short
    Data type of output is short, default is float

-nitem n
    set number of output per year or number of PFTs if -ispft option is set.

-ispft
    output is PFT specific.

-firstyear
    set first year in NetCDF file. Default is 1901.

varname
    variable name in NetCDF file

gridfile
    filename of grid data file

binfile
    filename of binary data file

netcdffile
    filename of NetCDF file created

EXAMPLES

Create data file for vegetation carbon:
    bin2cdf -units gC/m2 -descr "vegetation carbon" vegc output/grid.bin output/vegc.bin vegc.nc

Convert monthly data:
    bin2cdf -units gC/m2/month -descr "Net primary production" -nitem 12 npp output/grid.bin output/mnpp.bin mnpp.nc

EXIT STATUS
bin2cdf returns a zero exit status if the NetCDF file is created. Non zero is returned in case of failure.

AUTHORS
Werner von Bloh (Werner.von.Bloh@pik-potsdam.de),

SEE ALSO
soil2cdf(1), clm2cdf(1), country2cdf(1), lpjml(1)