Skip to content

qiqi1023t/HGS-PDAF_v1.0_GMD

Repository files navigation

HGS-PDAF_v1.0_GMD

November 28,2023 This is the public repository for HGS-PDAF. The codes are developed based on the development made by Dr. Wolfgang Kurtz (DWD, Germany) and Prof. Dr. Oliver S. Schilling (Uni Basel, Switzerland). It is currently being developed and maintained by Dr. Qi Tang at the University of Neuchâtel, Switzerland.

Introduction

HGS-PDAF is a modular DA framework for integrated hydrological modelling based on PDAF and HGS. It allows updating of states and parameters in integrated flow and transport simulations, assimilate different observation data, alone or jointly.

Getting started with HGS-PDAF

Download the source code of HGS-PDAF

  • Use git clone to checkout the source code from GitHub repository
  • Use git status to check if there is any update in the repository. This allows the user to get the latest version of the code.

Download the source code of PDAF

The PDAF source code can be downloaded from:

Compiling HGS-PDAF

  • Go to the pdaf directory and follow the instructions on GitHub or the PDAF website to compile PDAF as a library. This is machine and system dependent.
  • Go to the hgsiolib directory to compile the HGS I/O subroutines which are to write files that are compatible with HGS. This can be simply by typing: make.
  • Go to the hgs-pdaf/offline_omi directory to compile hgs-pdaf by typing make
  • When everything is successfully compiled, you will find the executable hgs-pdaf in the hgs-pdaf/offline_omi directory.

Test HGS-PDAF with the example test case

With this simplified, three dimensional synthetic model, the user can easily test HGS-PDAF. All the model configuration files are included in the examples directory. The following steps help the user to prepare running this test case on a Linux machine:

  • Go to the examples/3-D_synthetic_model directory. Use tar -xzvf prior_ensemble.tar.gz to extract the ensemble of 100 realisations of hydraulic conductivity fields from the archive file. The following two files will be extracted:
    • Prior_Ensemble.csv
    • Prior_Ensemble_homogeneous.csv Prepare the initial ensemble of hydraulic conductivity fields based on these two .csv files. This can be done by simply modifying the python script initialize.py. For example, if the user wants to run a test simulation with ensemble size 2, this can be specified in line 9 as Ensemble_size = 2. One example script init_100.py is geven for which an ensemble size of 100 is tested. After running this python script, a number of n folders will be created, where n is equal to the ensemble size.
  • Go back to the run_scripts directory and modify the run script runscript_n2.job to adapt to the actual ensemble size. In the runs cript, the user needs to define the ensemble size, paths to the source code, model input, and model output. This is an example run script for the slurm system. After the run script is prepared, the user can run this example case. Results will be written into the ouput directory.

A detailed description on different subroutines and modules of HGS-PDAF as well as the preparation for the example test case can be found in the docs directory.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
  翻译: