Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RPATH Issue (?) #39

Open
rmclaren opened this issue Dec 11, 2024 · 1 comment
Open

RPATH Issue (?) #39

rmclaren opened this issue Dec 11, 2024 · 1 comment
Assignees

Comments

@rmclaren
Copy link
Collaborator

On HERA, when loading Emilies modules (source /home/Emily.Liu/modules/env_jedi.sh) we have to manually set the LD_LIBRARY_PATH to the build/lib directory because otherwise it will not find the libbufr_query.so object file.

I believe this is necessary because the RPATH is not set up correctly for some reason (??). Need to investigate and fix this somehow...

@emilyhcliu
Copy link
Collaborator

Do not use env_jedi.sh. This script only associates modules for JEDI.

Use ~Emily.Liu/modules/env_obsforge.sh

module purge

export obsforge_dir="/scratch1/NCEPDEV/da/Emily.Liu/EMC-obsForge/obsForge"

module use ${obsforge_dir}/modulefiles
module load obsforge/hera.intel

# ==============================
# Set bufr-query python library
# ==============================
export LD_LIBRARY_PATH="${obsforge_dir}/build/lib:${LD_LIBRARY_PATH}"
export PYTHONPATH="${PYTHONPATH}:${obsforge_dir}/build/lib/python3.10/site-packages"

# ========================
# Set ioda python library
# =========================
export PYTHONPATH="${PYTHONPATH}:${obsforge_dir}/build/lib/python3.10"

# ============
# Set wxfloww 
# ============
export PYTHONPATH="${PYTHONPATH}:${obsforge_dir}/sorc/wxflow/src"

This env_obsforge.sh will make sure all libraries in obsForge are available for you.

source ~Emily.Liu/modules/env_obsforge.sh

show_queries.x -h

Description: 
  Lists all the queries possible on a BUFR file per subset.
Arguments: 
  -h          (Optional) Print out the help message.
  -s <subset> (Optional) Print paths only for this subset.
  input_file  Path to the BUFR file.
  output_file  (Optional) Save the output. 
  -t <table_path>  (Optional) Path to the WMO table file.
Examples: 
  ./show_queries.x ../data/bufr_satwnd_old_format.bufr
  ./show_queries.x -s NC005066 ../data/bufr_satwnd_old_format.bufr

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants