ocssw
V2022
|
Functions | |
def | get_cleaned_python_version () |
def | get_command_output (command) |
def | get_env () |
def | get_l_program_version (l_program, ocssw_root) |
def | get_installed_mission (ocdata_root) |
def | get_java_version () |
def | get_os_distribution () |
def | get_python3_path () |
def | get_seadas_version (seadas_root) |
def | handle_command_line () |
def | print_seadas_info (ocssw_root, ocdata_root) |
def | print_sys_info () |
def | main () |
Detailed Description
Print various items that may be of interest for SeaDAS and OCSSW troubleshooting or forum posts.
Function Documentation
◆ get_cleaned_python_version()
def seadas_info.get_cleaned_python_version | ( | ) |
Return the Python version, cleaned of extra text (especially relevant for Anaconda installations. Return "Not found" if the Python version is not found (although how that happens is a major mystery!).
Definition at line 21 of file seadas_info.py.
◆ get_command_output()
def seadas_info.get_command_output | ( | command | ) |
Definition at line 35 of file seadas_info.py.
◆ get_env()
def seadas_info.get_env | ( | ) |
Returns env output, which is obtained by running env via subprocess.
Definition at line 47 of file seadas_info.py.
◆ get_installed_mission()
def seadas_info.get_installed_mission | ( | ocdata_root | ) |
Definition at line 88 of file seadas_info.py.
◆ get_java_version()
def seadas_info.get_java_version | ( | ) |
Returns the java version, which is obtained by running java -version via subprocess.
Definition at line 103 of file seadas_info.py.
◆ get_l_program_version()
def seadas_info.get_l_program_version | ( | l_program, | |
ocssw_root | |||
) |
Returns the version for various "l programs" (e.g. l2gen, l3bin)
Definition at line 60 of file seadas_info.py.
◆ get_os_distribution()
def seadas_info.get_os_distribution | ( | ) |
Returns the distribution of the operating system.
Definition at line 116 of file seadas_info.py.
◆ get_python3_path()
def seadas_info.get_python3_path | ( | ) |
Returns the python3 path, which is obtained by running which python3 via subprocess.
Definition at line 141 of file seadas_info.py.
◆ get_seadas_version()
def seadas_info.get_seadas_version | ( | seadas_root | ) |
Returns the SeaDAS version as held in the VERSION.txt file in the directory pointed to by the SEADAS_ROOT environment variable.
Definition at line 155 of file seadas_info.py.
◆ handle_command_line()
def seadas_info.handle_command_line | ( | ) |
Handle help or version being requested on the command line.
Definition at line 169 of file seadas_info.py.
◆ main()
def seadas_info.main | ( | ) |
The program's main function - gets and prints items of interest.
Definition at line 220 of file seadas_info.py.
◆ print_seadas_info()
def seadas_info.print_seadas_info | ( | ocssw_root, | |
ocdata_root | |||
) |
Print out the items of interest for the SeaDAS installation specified by the seadas_root and ocssw_root parameters.
Definition at line 180 of file seadas_info.py.
◆ print_sys_info()
def seadas_info.print_sys_info | ( | ) |
Print out information about the system (OS, Python version, Java version).
Definition at line 196 of file seadas_info.py.