Skip to content
Snippets Groups Projects
Select Git revision
  • df896ef3816d8839c8e0f58419e936db3f10e09a
  • master default
  • bing_issues#190_tf2
  • bing_tf2_convert
  • bing_issue#189_train_modular
  • simon_#172_integrate_weatherbench
  • develop
  • bing_issue#188_restructure_ambs
  • yan_issue#100_extract_prcp_data
  • bing_issue#170_data_preprocess_training_tf1
  • Gong2022_temperature_forecasts
  • bing_issue#186_clean_GMD1_tag
  • yan_issue#179_integrate_GZAWS_data_onfly
  • bing_issue#178_runscript_bug_postprocess
  • michael_issue#187_bugfix_setup_runscript_template
  • bing_issue#180_bugs_postprpocess_meta_postprocess
  • yan_issue#177_repo_for_CLGAN_gmd
  • bing_issue#176_integrate_weather_bench
  • michael_issue#181_eval_era5_forecasts
  • michael_issue#182_eval_subdomain
  • michael_issue#119_warmup_Horovod
  • bing_issue#160_test_zam347
  • ambs_v1
  • ambs_gmd_nowcasting_v1.0
  • GMD1
  • modular_booster_20210203
  • new_structure_20201004_v1.0
  • old_structure_20200930
28 results

modules_preprocess.sh

Blame
  • modules_preprocess.sh 1.07 KiB
    #!/usr/bin/env bash
    
    # __author__ = Bing Gong, Michael Langguth
    # __date__  = '2020_06_26'
    
    # This script loads the required modules for ambs on Juwels and HDF-ML.
    # Note that some other packages have to be installed into a venv (see create_env.sh and requirements.txt).
    
    HOST_NAME=`hostname`
    
    echo "Start loading modules on ${HOST_NAME} required for preprocessing..."
    echo "modules_preprocess.sh is subject to: "
    echo "* preprocess_data_era5_step1.sh"
    
    module purge
    module use $OTHERSTAGES
    ml Stages/2019a
    ml GCC/8.3.0
    ml ParaStationMPI/5.2.2-1
    ml mpi4py/3.0.1-Python-3.6.8
    # serialized version is not available on HFML
    # see https://gitlab.version.fz-juelich.de/haf/Wiki/-/wikis/HDF-ML%20System
    if [[ "${HOST_NAME}" == hdfml* ]]; then
      ml h5py/2.9.0-serial-Python-3.6.8
    elif [[ "${HOST_NAME}" == juwels* ]]; then
      ml h5py/2.9.0-Python-3.6.8
    fi
    ml SciPy-Stack/2019a-Python-3.6.8
    ml scikit/2019a-Python-3.6.8
    ml netcdf4-python/1.5.0.1-Python-3.6.8
    
    # clean up if triggered via script argument
    if [[ $1 == purge ]]; then
      echo "Purge all modules after loading them..."
      module --force purge
    fi