Skip to content
Snippets Groups Projects
Select Git revision
  • 8a71f2f0e04a77dfaf3b4f7428570396d01ae734
  • master default protected
  • use_flight_altitude
  • distribute
4 results

performance_diagrams.py

Blame
  • run_windpro_process_profile.sh 819 B
    #!/usr/bin/env bash
    # This script should be run as the metobs user with "sudo -u davidh"
    
    # Need to load some environment, otherwise we don't have the "module" command
    source ~/.bash_profile
    
    # Load the IDL environment
    module load license_idl idl
    
    # Load the IDL path
    #export GDL_PATH=$GDL_PATH:/opt/metobs/sparchive/repos/git/sparchive/idl/windpro
    export IDL_PATH=$IDL_PATH:/opt/metobs/sparchive/repos/git/sparchive/idl/windpro:+'/opt/idl/8.4/idl84/lib'
    
    # Run the actual IDL
    idl -e run_process_vad_profile -args "$1" "$2"
    IDL_EXIT_STATUS=$?
    
    # Change permissions so the parent has full access to things
    # We want to run the chmod no matter how the IDL exited just in case some files were created
    # otherwise they can't be deleted by the parent
    chmod 777 ${2}/*.dat ${2}/*.png && [ $IDL_EXIT_STATUS -eq 0 ] || exit 1