Table Of Contents

Previous topic

ScatPy.core

Next topic

ScatPy.ranges

This Page

ScatPy.fileio

Functions for reading and writing from files.

Function Summary

build_ddscat_par(settings, target) Return a string with the contents of the ddscat.par file.
read_Target_FROM_FILE
QSub_Batchfile(fname, base_path, folders) Create a csh script for batch submission of many runs via qsub.

Function Definitions

Functions for reading and writing from files.

ScatPy.fileio.QSub_Batchfile(fname, base_path, folders)[source]

Create a csh script for batch submission of many runs via qsub.

This assumes that the server uses posix paths, regardless of the path convention on the local machine.

Parameters:
  • fname – the name of the batch file
  • base_path – the path from which the folders will be resolved. This must be an absolute path on the server.
  • folders – a list of folders (relative to base_path) containing the submission scripts (.sge files)
ScatPy.fileio.build_ddscat_par(settings, target)[source]

Return a string with the contents of the ddscat.par file.

Parameters:
  • settings – a core.Settings object
  • target – a core.Target object