isofit.__main__

ISOFIT command line interface.

Classes

CLI

Custom click class to load commands at runtime. This enables optional, external

Functions

cli(ctx, version, help, **kwargs)

ISOFIT contains a set of routines and utilities for fitting surface, atmosphere and instrument models to imaging spectrometer data.

Module Contents

class CLI(*args, lazy_subcommands=None, **kwargs)[source]

Bases: click.Group

Custom click class to load commands at runtime. This enables optional, external subcommands (such as isoplots) to be inserted into the sys path.

Reference: https://click.palletsprojects.com/en/stable/complex/#defining-the-lazy-group

laziest = False[source]
lazy[source]
main(*args, **kwargs)[source]

Loads the default ini and checks for the cli_laziest before shell tab completion, which may speed it up

invoke(ctx)[source]

Loads the ISOFIT ini into env and applies any overrides before invoking any subcommands

Parameters:

ctx (click.Context) – The Click context

list_commands(ctx)[source]

List the names of available commands

Parameters:

ctx (click.Context) – The Click context

Returns:

The names of available lazy-loaded commands

Return type:

list of str

resolve(cmd_name)[source]

Resolves the import of a click function from a module string

The import path to a Click command is to be in the format ‘module:function’ If ‘function’ is not provided, defaults seeking for a function named ‘cli’

Parameters:

cmd_name (str) – Command to retrieve

Returns:

Resulting Click function imported from a module

Return type:

function

get_command(ctx, cmd_name)[source]

Get a lazily-loaded command by name

Parameters:
  • ctx (click.Context) – The Click context

  • cmd_name (str) – Name of the command to retrieve

Returns:

The command object or None if not found

Return type:

click.Command or None

cli(ctx, version, help, **kwargs)[source]

ISOFIT contains a set of routines and utilities for fitting surface, atmosphere and instrument models to imaging spectrometer data.

 Repository: https://github.com/isofit/isofit Documentation: https://isofit.readthedocs.io/en/latest Report an issue: https://github.com/isofit/isofit/issues