Advanced topics

Climate surface coefficient files

The climate surface coefficient files used by ANUCLIM need to be created using ANUSPLIN, a suite of programs developed by Hutchinson (1989, 1991, 1999). ANUSPLIN is distributed by the Centre for Resource and Environmental Studies. See http://cres.anu.edu.au for details. The ANUSPLIN technique of thin­plate smoothing splines is used for the spatial interpolation of meteorological variables from irregular networks. Some general rules apply when creating the climate surface coefficient files for use by the ANUCLIM package. They are: There can be more than one climate surface coefficient file per meteorological variable per country, for instance, Australia currently has seven rainfall surfaces,

The surflist file

The surflist file is a text file that describes the surfaces that ANUCLIM can use. ANUCLIM is supplied with a standard surflist file that describes the Australian climate surfaces. This file is called surflist and is found in the surf directory of the ANUCLIM installation. A copy of this file can also be found in doc/standard-surflist.txt in the ANUCLIM installation directory in case your installation does not include the Australian climate surfaces. If you need to add or change surfaces, add countries or build a surflist file from scratch, see the supplied surflist file for details. Comments in the surflist file describe its structure in detail. Filenames in the surflist file are interpreted relative to the directory containing the surflist file. This means that if your surfaces and surflist file are all in the same directory, you don't have to specify a directory path in front of the surface filenames in the surflist file.

Making the .bcp file available to other people

In most cases, only a single .bcp file need be generated for each DEM of interest, and this file can be shared by all users on your system. In order to do this... Once you have done this, all ANUCLIM users on your system should see the .bcp file in the file list in the BIOMAP main window.

Running the programs from a command file.

ANUCLIM normally processes your input files when you click the Run button, but there are times when this may not be desired behaviour. You can use ANUCLIM to generate a command file which can then be used to run the bioclim, esoclim, groclim or biomap back end programs at a later stage.

There are two ways of generating command files with ANUCLIM:

You can also use anuclimc to generate command files.

The back end programs do not create any windows of their own, so they can be submitted as batch jobs or incorporated in a shell script. This is useful if the processing takes a long time (e.g. processing a large DEM), or if you want to run a series of jobs in sequence. In most unix shells and at the MS-DOS command line prompt you can use the syntax
program_name < command_file > log_file
to achieve this. For example
bioclim < bioclim_species1.cmd > bioclim_species1.log
Note that on both unix and Microsoft Windows you will have to ensure that the PATH environment variable is set to include the directory where the back end programs are located. This is usually the bin directory in the ANUCLIM installation directory.

The command files are plain text files, and can be viewed or edited with a text editor. The command files generated by ANUCLIM contain comments that describe the meaning of each directive in the file. If you edit a command file you must take care to preserve the exact formatting of the original file. See Manual pages for command-line programs for more information.

Command line version of ANUCLIM

The ANUCLIM package is supplied with a supplementary program called anuclimc . This program provides a way to generate command files from a command line prompt, and does not use the window system of your computer. It is identical to the anuclim front-end program supplied on the ANUCLIM 1.8 CD. anuclimc can be found in the bin directory of the ANUCLIM distribution, The user manual for anuclimc is distributed as a PostScript file and can be found in anuclimc.ps in the doc directory of the ANUCLIM installation.

Radiation ratio tables

The estimated values of radiation obtained from the radiation surface can in some cases be modified by slope and aspect. In order to use this feature, you need slope/aspect ratio tables (flat surface to inclined plane) for the area of interest and a slope value and an aspect value for each location in your input data. The programs are currently structured so that to modify radiation estimates across a country, a corresponding ratio file is needed for each rainfall surface coefficient file. You must also select the rainfall surface in order for the radiation modification to take effect.

The values in this ratio file are currently obtained by running the program CLOUDY (Fleming, 1971; Austin, Cunningham, Fleming, 1984 and Fleming, 1987), and requires actual meteorological data for a representative station which is located within the limits of the rainfall area. Ratio values in the tables are needed for

The units for the radiation values are Mj/m2/day for the total radiation received on a surface. These values are split into two component parts, diffuse radiation and direct radiation in order to use the ratio tables. The package uses the relationship relating diffuse and total radiation developed by Kalma and Fleming (1972) given by the following equation
kdf=ktt(1-e0.8(1-0.9/ktt))
where
kdf= diffuse radiation divided by extraterrestrial radiation ktt= total radiation divided by extraterrestrial radiation (extraterrestrial radiation is calculated from latitude)

The surflist file contains lines that specify which tables are available and the rainfall surface patch they correspond to. The supplied surflist file specifies just 2 radiation ratio tables. The lines concerned look like this:

  PART 4
#
   1  1 nqlratio.dat
   1  5 tasratio.dat
Each line lists the country number, rainfall patch number and ratio table filename (relative to the directory containing the surflist file). The rainfall patch number is derived from the sequence of rainfall surface files listed in part 3 of the surflist file. The first rainfall surface is patch 1, the 2nd rainfall surface is patch 2 and so on. If you add or change the ratio table lines in the surflist file, you must take care to preserve the formatting exactly. These lines have the fortran format
(1x,2i3,1x,a)

Each ratio-table file consists of 12 sets of diffuse radiation values, followed by 12 sets of direct radiation values (one set for each month). Each set of radiation values consists of 37 lines of aspect values, and on each line are the 13 slope values. Each line has the fortran format

(11x,13f5.2)
The first line of aspect data refers to -5<=aspect<5, the next line refers to 5<=aspect<15, and so on up to line 37, which refers to 355<=aspect<365. The first slope value on a line refers to -2.5<=slope<2.5, the next one to 2.5<=slope<7.5 and so on up to the 13th field which refers to 57.5<=slope<62.5.

The table values are used to modify the radiation using the following algorithm:

ktt = qest/qext
kdf=ktt(1-e0.8(1-0.9/ktt))
kdf = kdf * qext
kdr = qest - kdf
kdf = kdf * rdif
kdr = kdr * rdir
qmod= = kdf + kdr

Customising fonts, colours etc.

You can change the fonts, colours and other properties of the ANUCLIM windows by creating or editing a text file containing option and value settings. The file should contain lines in the form
option: value
You can have blank lines in the file. Any line beginning with an exclamation mark(!) is treated as a comment. An app-defaults file containing all the configurable settings for ANUCLIM can be found in doc/app-defaults.txt in the ANUCLIM installation directory. The values shown in this file are those that give the default appearance. Copy any of the lines from this file into your own app-defaults file and change the values to suit your taste.

Directory for temporary files

ANUCLIM uses various temporary files in its operation. Usually these files are quite small, so the default directory settings are OK. However, if you are generating grid output from BIOMAP, these files can be quite large. If you run out of space in the standard temporary file directories, you can set environment variables to specify the name of your temporary file directory. On unix, set CRESEXECTEMP . On Microsoft Windows, set TEMP. The standard temporary file directories are usually /tmp on unix and c:\windows\temp on Microsoft Windows, but are determined at run time by looking in a number of standard places to see what is available and writable. If you set an environment variable, you must restart ANUCLIM from a shell that has inherited the new value.

Files in the surf directory

The file naming conventions for files in the surf directory are as follows:
Filename patternContents
surflist* Surface file catalog used by ANUCLIM to find surface files
*.?s? Surface coefficient files. The digits before and after the "s" in the extension are the major and minor surface version numbers respectively.