Fortran engine to couple neural network based Mie emulator, called MieAI, with ICON-ART
It uses Fortran-Keras Bridge for coupling MieAI to Fortran.
Compile the MieAI model in the terminal using:
make
This will create a static library, called libneural.a
inside build/lib/
folder, which contains necessary objects for linking fortran with keras using FKB bridge and an executable, called MieAI, in bin
folder which can be executed by running:
./bin/MieAI ./data/mie_input.txt
Here, mie_input.txt
cantains the input data for Mie calculations. An example file is located in data
folder. Further, data
folder contains the csv
files containing the min-max data useful for normalization (mlp_min_max.csv
) and quantile transform parameters (quantile_trasnform.csv
). The path for these files and MieAI model is specified in a namelist file, called MieAI.nml
, which is read by the MieAI fortran code.