ppenteado / ominas

Opensource Multi-INstrument Analysis Software
2 stars 8 forks source link

Installing and testing OMINAS #8

Open ppenteado opened 7 years ago

ppenteado commented 7 years ago

Here is a typical output of installing OMINAS on a fresh account (that never had OMINAS, Icy or any IDL libraries setup before), for the 3 main packages (Core, Demo and Icy):

[ominas_test_8@cmp ~]$ git clone https://github.com/ppenteado/ominas.git
Cloning into 'ominas'...
Username for 'https://github.com': ppenteado
Password for 'https://ppenteado@github.com': 
remote: Counting objects: 13377, done.
remote: Compressing objects: 100% (85/85), done.
remote: Total 13377 (delta 51), reused 71 (delta 34), pack-reused 13258
Receiving objects: 100% (13377/13377), 200.48 MiB | 8.10 MiB/s, done.
Resolving deltas: 100% (7628/7628), done.
Checking connectivity... done.
Checking out files: 100% (3479/3479), done.
[ominas_test_8@cmp ~]$ cd ominas/
[ominas_test_8@cmp ominas]$ source configure.sh 
Detecting .bash_profile...
.bash_profile detected!
Detecting .bashrc...
.bashrc detected!
Using IDL at /usr/local/bin/idl
IDL Version 8.5.1 (linux x86_64 m64). (c) 2015, Exelis Visual Information Solutions, Inc., a subsidiary of Harris Corporation.
Installation number: 5502667.
Licensed for use by: NASA - Jet Propulsion Laboratory

Creating ~/.ominas directory
Creating ~/ominas_data directory
The setup will guide you through the installation of OMINAS
OMINAS files located in /home/ominas_test_8/ominas

IDL Version 8.5.1 (linux x86_64 m64). (c) 2015, Exelis Visual Information Solutions, Inc., a subsidiary of Harris Corporation.
Installation number: XXXXX.
Licensed for use by: XXXXX

% Compiled module: OMINAS_ICY_TEST.
Icy: Icy not found
        Current OMINAS configuration settings
Required:
        1) OMINAS Core  . . . . . . . . . . . . .  NOT CONFIGURED
           Contains the OMINAS code. If you select only one 
           of the other packages, this will be included.                                                                                                                                                                  
Optional packages:                                                                                                                                                                                                        
        2) Demo package . . . . . . . . . . . . .  NOT CONFIGURED                                                                                                                                                         
           Contains the demo scripts and the data required                                                                                                                                                                
           to run then.                                                                                                                                                                                                   
           These files are always present (in ominas/demo),                                                                                                                                                               
           this option is to set up the environment so that                                                                                                                                                               
           the demos can be run.                                                                                                                                                                                          
        3) SPICE Icy  . . . . . . . . . . . . . .  NOT CONFIGURED                                                                                                                                                         
           Library maintained by JPL's NAIF (Navigation and Ancillary                                                                                                                                                     
           Information Facility, https://naif.jpl.nasa.gov/naif/toolkit.html,                                                                                                                                             
           required to use spacecraft / planetary kernel files.                                                                                                                                                           

Mission Packages:                                                                                                                                                                                                         
           Kernels used for each mission's position and 
           pointing data. If you do not already have them,
           an option to download them from PDS will be provided.
           If you already have them, you will need to provide
           the path to your kernel files.
           Note: the NAIF Generic Kernels (one of the optional 
           data packages) are not required for the missions, they
           already contain a copy the subset of the generic kernel
           files they need.
        4) Cassini . . . . . . . . . . . . . . . . NOT CONFIGURED
           Subsetted, about 16 GB as of Dec/2016
        5) Galileo (GLL) . . . . . . . . . . . . . NOT CONFIGURED
           About 833 MB as of Dec/2016
        6) Voyager . . . . . . . . . . . . . . . . NOT CONFIGURED
           About 163 MB as of Dec/2016
        7) Dawn  . . . . . . . . . . . . . . . . . NOT CONFIGURED
           Subsetted, about 8 GB as of Jan/2017
Data:
        8) NAIF Generic Kernels . . . . . . . . .  NOT CONFIGURED
           About 22 GB as of Dec/2016
        9) SEDR image data . . . . . . . . . . . . NOT CONFIGURED
       10) TYCHO2 star catalog . . . . . . . . . . NOT CONFIGURED
           About 161 MB download, 665 MB unpacked
       11) SAO star catalog . . . . . . . . . . . NOT CONFIGURED
           About 19 MB download, 70 MB unpacked
       12) GSC star catalog . . . . . . . . . . . NOT CONFIGURED
       13) UCAC4 star catalog . . . . . . . . . . NOT CONFIGURED
           About 8.5 GB download
For more information, see
https://ppenteado.github.io/ominas_doc/demo/install_guide.html
Modify Current OMINAS configuration (Exit/Auto/Uninstall 1 2 ...)?  1 2 3
Settiing OMINAS Core...
OMINAS requires the NAIF Icy toolkit to process SPICE kernels.
Would you like to install Icy from the internet now? [y]
http://naif.jpl.nasa.gov/pub/naif/toolkit//IDL/PC_Linux_GCC_IDL8.x_64bit/packages/icy.tar.Z ~/ominas_data/icy.tar.Z
http://naif.jpl.nasa.gov/pub/naif/toolkit//IDL/PC_Linux_GCC_IDL8.x_64bit/packages/icy.tar.Z --localdir=/home/ominas_test_8/ominas_data/

IDL Version 8.5.1 (linux x86_64 m64). (c) 2015, Exelis Visual Information Solutions, Inc., a subsidiary of Harris Corporation.
Installation number: XXXXX.
Licensed for use by: XXXXX

% Compiled module: PP_WGETCL.
% Compiled module: PP_COMMAND_LINE_ARGS_PARSE.
% Loaded DLM: URL.
% Compiled module: PP_WGET__DEFINE.
util/downloader/ca-bundle.crt
% Compiled module: PARSE_URL.
downloading http://naif.jpl.nasa.gov/pub/naif/toolkit//IDL/PC_Linux_GCC_IDL8.x_64bit/packages/icy.tar.Z
% Compiled module: PP_READABLESIZE.
Content Length:  276.00000 B
% Compiled module: PP_PARSE_DATE.
% Compiled module: JULDAY.
Content Length:  43.669736 MB
% Compiled module: CALDAT.
Extracting Icy source files...
Compiling Icy...
Icy compiled. Log is at ~/.ominas/icy_make.log
writing /home/ominas_test_8/.ominas/ominas_setup.sh
‘/home/ominas_test_8/.ominas/ominas_setup.sh’ -> ‘/home/ominas_test_8/.ominas/ominas_setup_old.sh’

done with writing /home/ominas_test_8/.ominas/ominas_setup.sh
IDL Version 8.5.1 (linux x86_64 m64). (c) 2015, Exelis Visual Information Solutions, Inc., a subsidiary of Harris Corporation.
Installation number: XXXXX.
Licensed for use by: XXXXX

% Compiled module: OMINAS_PATHS_ADD.
Checking to see if IDL paths need to be changed...
% Compiled module: IDLASTRO_DOWNLOAD.
% Compiled module: ROUTINE_EXISTS.
There are missing IDLAstro routines.
Auto installing
git clone https://github.com/wlandsman/IDLAstro.git /home/ominas_test_8/ominas_data/idlastro
Cloning into '/home/ominas_test_8/ominas_data/idlastro'...
remote: Counting objects: 1400, done.
remote: Compressing objects: 100% (7/7), done.
remote: Total 1400 (delta 1), reused 3 (delta 1), pack-reused 1392
Receiving objects: 100% (1400/1400), 11.63 MiB | 4.85 MiB/s, done.
Resolving deltas: 100% (556/556), done.
Checking connectivity... done.
IDLAstro path set in preferences:  <IDL_DEFAULT>:+/home/ominas_test_8/ominas_data/idlastro/pro
OMINAS paths set in IDL preferences
Icy path set in IDL preferences
OMINAS aliase set in /home/ominas_test_8/.bashrc.
OMINAS aliase set in /home/ominas_test_8/.bash_profile.
IDL Version 8.5.1 (linux x86_64 m64). (c) 2015, Exelis Visual Information Solutions, Inc., a subsidiary of Harris Corporation.
Installation number: XXXXX.
Licensed for use by: XXXXX

% Compiled module: OMINAS_ICY_TEST.
% Loaded DLM: ICY.
Icy: /home/ominas_test_8/ominas_data/icy/lib/icy.so
        Current OMINAS configuration settings
Required:
        1) OMINAS Core  . . . . . . . . . . . . .  CONFIGURED
           Contains the OMINAS code. If you select only one 
           of the other packages, this will be included.
Optional packages:
        2) Demo package . . . . . . . . . . . . .  CONFIGURED
           Contains the demo scripts and the data required 
           to run then.
           These files are always present (in ominas/demo), 
           this option is to set up the environment so that
           the demos can be run.
        3) SPICE Icy  . . . . . . . . . . . . . .  CONFIGURED
           Library maintained by JPL's NAIF (Navigation and Ancillary
           Information Facility, https://naif.jpl.nasa.gov/naif/toolkit.html,
           required to use spacecraft / planetary kernel files.

Mission Packages:
           Kernels used for each mission's position and 
           pointing data. If you do not already have them,
           an option to download them from PDS will be provided.
           If you already have them, you will need to provide
           the path to your kernel files.
           Note: the NAIF Generic Kernels (one of the optional 
           data packages) are not required for the missions, they
           already contain a copy the subset of the generic kernel
           files they need.
        4) Cassini . . . . . . . . . . . . . . . . NOT CONFIGURED
           Subsetted, about 16 GB as of Dec/2016
        5) Galileo (GLL) . . . . . . . . . . . . . NOT CONFIGURED
           About 833 MB as of Dec/2016
        6) Voyager . . . . . . . . . . . . . . . . NOT CONFIGURED
           About 163 MB as of Dec/2016
        7) Dawn  . . . . . . . . . . . . . . . . . NOT CONFIGURED
           Subsetted, about 8 GB as of Jan/2017
Data:
        8) NAIF Generic Kernels . . . . . . . . .  NOT CONFIGURED
           About 22 GB as of Dec/2016
        9) SEDR image data . . . . . . . . . . . . NOT CONFIGURED
       10) TYCHO2 star catalog . . . . . . . . . . NOT CONFIGURED
           About 161 MB download, 665 MB unpacked
       11) SAO star catalog . . . . . . . . . . . NOT CONFIGURED
           About 19 MB download, 70 MB unpacked
       12) GSC star catalog . . . . . . . . . . . NOT CONFIGURED
       13) UCAC4 star catalog . . . . . . . . . . NOT CONFIGURED
           About 8.5 GB download
For more information, see
https://ppenteado.github.io/ominas_doc/demo/install_guide.html
Modify Current OMINAS configuration (Exit/Auto/Uninstall 1 2 ...)?  e
Setup has completed. It is recommended to restart your terminal session before using OMINAS.
You may want to try some of the tutorials at https://ppenteado.github.io/ominas_doc/demo/
ppenteado commented 7 years ago

And here is the output of a few tests after completing this installation:

[ominas_test_8@cmp ominas]$ which ominas
alias ominas='/home/ominas_test_8/.ominas/ominas'
        ~/.ominas/ominas
[ominas_test_8@cmp ominas]$ which ominasde
alias ominasde='/home/ominas_test_8/.ominas/ominasde'
        ~/.ominas/ominasde
[ominas_test_8@cmp ominas]$ cat ~/.ominas/ominas_setup.sh 
#!/usr/bin/env bash
alias ominas=~/.ominas/ominas
alias ominasde=~/.ominas/ominasde
export OMINAS_DIR=/home/ominas_test_8/ominas
export DFLAG=true
source /home/ominas_test_8/ominas/config/ominas_env_def.sh
unset NV_Generic_kernels_DATA
unset NV_SEDR_DATA
unset NV_TYCHO2_DATA
unset NV_SAO_DATA
unset NV_GSC_DATA
unset NV_UCAC4_DATA
[ominas_test_8@cmp ominas]$ ominas -e 'spawn,"env | grep NV"'
IDL Version 8.5.1 (linux x86_64 m64). (c) 2015, Exelis Visual Information Solutions, Inc., a subsidiary of Harris Corporation.
Installation number: XXXXX.
Licensed for use by: XXXXX

NV_TRANSLATORS=/home/ominas_test_8/ominas/config/tab/translators.tab:/home/ominas_test_8/ominas/demo/data/translators.tab
NV_CONFIG=/home/ominas_test_8/ominas/config
NV_IO=/home/ominas_test_8/ominas/config/tab/io.tab
NV_SPICE=/home/ominas_test_8/ominas/config/spice
NV_ORBIT_DATA=/home/ominas_test_8/ominas/config/orb/
NV_ARRAY_DATA=/home/ominas_test_8/ominas/config/arr/dat/
NV_TRANSFORMS=/home/ominas_test_8/ominas/config/tab/transforms.tab:/home/ominas_test_8/ominas/demo/data/transforms.tab
NV_STATION_DATA=/home/ominas_test_8/ominas/config/stn/
NV_RING_DATA=/home/ominas_test_8/ominas/config/rings/
NV_FTP_DETECT=/home/ominas_test_8/ominas/config/tab/filetype_detectors.tab
NV_SPICE_KER=::/home/ominas_test_8/ominas/demo/data
NV_INS_DETECT=/home/ominas_test_8/ominas/config/tab/instrument_detectors.tab:/home/ominas_test_8/ominas/demo/data/instrument_detectors.tab
[ominas_test_8@cmp ominas]$ ominas -e 'print,pref_get("IDL_PATH")'
IDL Version 8.5.1 (linux x86_64 m64). (c) 2015, Exelis Visual Information Solutions, Inc., a subsidiary of Harris Corporation.
Installation number: XXXXX.
Licensed for use by: XXXXX

<IDL_DEFAULT>:+/home/ominas_test_8/ominas_data/idlastro/pro:+/home/ominas_test_8/ominas_data/icy/lib:+/home/ominas_test_8/ominas:+/home/ominas_test_8/ominas/util/xidl
[ominas_test_8@cmp ominas]$ ominas -e 'print,pref_get("IDL_DLM_PATH")'
IDL Version 8.5.1 (linux x86_64 m64). (c) 2015, Exelis Visual Information Solutions, Inc., a subsidiary of Harris Corporation.
Installation number: XXXXX.
Licensed for use by: XXXXX

<IDL_DEFAULT>:+/home/ominas_test_8/ominas_data/icy/lib
ppenteado commented 7 years ago

I just pushed a new routine, ominas_env_info. It prints out (to the terminal, if called with no arguments, or to a file, if a filename is provided) the most commonly useful stuff for me to debug problems with the OMINAS envinronment. A typical use:

[user@cmp ~]$ ominas
IDL Version 8.5.1 (linux x86_64 m64). (c) 2015, Exelis Visual Information Solutions, Inc., a subsidiary of Harris Corporation.
Installation number: XXXXXX.
Licensed for use by: XXXXXX

IDL> ominas_env_info,'~/ominas_env_info.txt'

Which produces

OMINAS variables:
OMINAS_RC=/home/user/.ominas
OMINAS_DEMO=/home/user/ominas/demo
OMINAS_DIR=/home/user/ominas
OMINAS_DATA=/home/user/ominas_data
--------------------------------------------------------------------------------
NV variables:
NV_TRANSLATORS=/home/user/ominas/config/tab/translators.tab:/home/user/ominas/demo/data/translators.tab
NV_CONFIG=/home/user/ominas/config
NV_IO=/home/user/ominas/config/tab/io.tab
NV_SPICE=/home/user/ominas/config/spice
NV_ORBIT_DATA=/home/user/ominas/config/orb/
NV_ARRAY_DATA=/home/user/ominas/config/arr/dat/
NV_TRANSFORMS=/home/user/ominas/config/tab/transforms.tab:/home/user/ominas/demo/data/transforms.tab
NV_STATION_DATA=/home/user/ominas/config/stn/
NV_RING_DATA=/home/user/ominas/config/rings/
NV_FTP_DETECT=/home/user/ominas/config/tab/filetype_detectors.tab
NV_SPICE_KER=::/home/user/ominas/demo/data
NV_INS_DETECT=/home/user/ominas/config/tab/instrument_detectors.tab:/home/user/ominas/demo/data/instrument_detectors.tab
--------------------------------------------------------------------------------
ominas_setup.sh:
#!/usr/bin/env bash
alias ominas=~/.ominas/ominas
alias ominasde=~/.ominas/ominasde
export OMINAS_DIR=/home/user/ominas
export OMINAS_DATA=/home/user/ominas_data
export OMINAS_RC=/home/user/.ominas
export DFLAG=true
source /home/user/ominas/config/ominas_env_def.sh
unset NV_Generic_kernels_DATA
unset NV_SEDR_DATA
unset NV_TYCHO2_DATA
unset NV_SAO_DATA
unset NV_GSC_DATA
unset NV_UCAC4_DATA
--------------------------------------------------------------------------------

IDL:
** Structure !VERSION, 8 tags, length=104, data length=100:
   ARCH            STRING    'x86_64'
   OS              STRING    'linux'
   OS_FAMILY       STRING    'unix'
   OS_NAME         STRING    'linux'
   RELEASE         STRING    '8.5.1'
   BUILD_DATE      STRING    'Nov 14 2015'
   MEMORY_BITS     INT             64
   FILE_OFFSET_BITS
                   INT             64
--------------------------------------------------------------------------------
environment IDL_PATH

--------------------------------------------------------------------------------
environment IDL_DLM_PATH

--------------------------------------------------------------------------------
preferences IDL_PATH
<IDL_DEFAULT>:+/home/user/ominas_data/idlastro/pro:+/home/user/ominas:+/home/user/ominas/util/xidl:+/home/user/ominas_data/icy/lib
--------------------------------------------------------------------------------
preferences IDL_DLM_PATH
<IDL_DEFAULT>:+/home/user/ominas_data/icy/lib
--------------------------------------------------------------------------------

Icy:
--------------------------------------------------------------------------------
** ICY - IDL/CSPICE interface from JPL/NAIF (not loaded)
    Version: 1.8.0, Build Date: 05-JAN-2017, Source: ed.wright@jpl.nasa.gov
    Path: /home/user/ominas_data/icy/lib/icy.so
--------------------------------------------------------------------------------
CSPICE_N0066
--------------------------------------------------------------------------------
0 loaded kernels:
--------------------------------------------------------------------------------

OMINAS repository:
On branch master
Your branch is up-to-date with 'origin/master'.
Last commit:
b373f70 Paulo Penteado Wed Jun 14 14:03:42 2017 -0700
penteado-jpl commented 6 years ago

This issue was moved to nasa/ominas#6