isofit.__main__
ISOFIT command line interface.
Classes
Custom click class to load commands at runtime. This enables optional, external |
Functions
|
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.GroupCustom 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
- 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
- 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
- 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