cru2clm(1)

NAME
cru2clm - convert raw binary data files to clm data files for LPJmL

SYNOPSIS
cru2clm [-h] [-firstyear first] [-lastyear last] [-nyear n] [-scale s] [-firstcell f] [-ncell n] [-nbands n] [-swap] [-yearcell] crufile clmfile

DESCRIPTION
Program converts raw binary data file consisting of 16bit integer values into a file format suitable for LPJmL. It is primarily intended to convert climate data files from the Climate Research Unit (CRU).

OPTIONS

-h  display a short help text

-firstyear first
    first year in CRU file (default is 1901)

-lastyear last
    last year in CRU file

-nyear n
    number of years in CRU file (default is 103)

-scale s
    set scale to s (default is 1)

-firstcell f
    first cell in data file (default 0)

-ncell  n
    number of cells in data file (default is 67420)

-nbands n
    number of bands in data/output file (default is 12)

-swap
    change byte order in CRU file

-yearcell
    does not revert order in CRU file

crufile
    filename of binary CRU data file

clmfile
    filename of clm data file written

EXAMPLES

Create clm data file from CRU dataset changing byte order:
    cru2clm -swap tmp_1901-2003.bin tmp2003.clm

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

AUTHORS
Werner von Bloh (Werner.von.Bloh@pik-potsdam.de), Sibyll Schaphoff (Sibyll.Schaphoff@pik-potsdam.de), Stefanie Rost (Jachner) (Stefanie.Rost@pik-potsdam.de), Marlies Gumpenberger (Marlies.Gumpenberger@pik-potsdam.de), Tim Beringer (Erbrecht) (Tim.Beringer@pik-potsdam.de), Christoph Mueller (Christoph.Mueller@pik-potsdam.de)

SEE ALSO
lpjml(1), asc2clm(1), txt2clm(1), grid2clm(1), cft2clm(1), catclm(1), clm(5)