TRACK core

pyTRACK.track(input_file='input.nc', ext='_ext', namelist=None)

Runs TRACK.

Equivalent to bin/track.linux -i {input_file} -f {ext} < namelist

If no parameters are passed, then the usual TRACK namelist interface is triggered.

Parameters:
  • input_file (str) – Name of the input file.

  • ext (str) – Extension to append to the TRACK output files.

  • namelist (str or None) – The namelist file to be fed to track. This file should have track inputs in the right order in seperate lines.

pyTRACK.set_track_env()

Automatically called when the track() function is run. Sets and passes various paths required by TRACK.

These paths are set and passed onto the variables defined in the src/TRACK-1.5.2/include/*.in files.

The input and output paths are set to be the current working directory. The file paths of the required input files are set to the correct location with respect to the package location. Modify here if you would like to change filepaths.