drivecasa.casa_env - Shell environment configuration

Convenience routines for manipulating shell environments.

drivecasa.casa_env.casapy_env(casa_topdir)[source]

Returns an environment dictionary configured for CASA execution.

Args:

  • casa_topdir: should either contain the top-level directory containing CASA installation, or be set to None if casa is already available from the default environment.

Note

It’s not a bad idea to always specify the casa dir anyway, so you don’t have to rely on the environment paths being set up already.