-
Notifications
You must be signed in to change notification settings - Fork 3
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
Missing OPTIONS.nam; Which binary should I use and can I build without netCDF or GRIB-API? #3
Comments
Hi! Yes, you have built open-SURFEX in the correct way and, if you don't provide any additional options for There are quite a number of different binaries in the installation directory, but if you're interested in running some basic SURFEX experiments, you would use mainly:
To run SURFEX, one would need to prepare some forcing data (air temperature and specific humidity, surface pressure, direct and diffuse downward short-wave radiation, downward long-wave radiation, rainfall and snowfall amount, wind speed and direction, CO2 concentration) for the area of interest, and configure experiment through OPTIONS.nam namelist file. Quite some work, I'd say. But there is a number of test experiments provided with open-SURFEX that are relatively easy to run and could be used to get an idea on how a SURFEX experiment should be set up. The problem is, that these experiments are not ready to run, and to configure them you should do the following (please note that each step starts from the open-SURFEX root directory):
mkdir build && cd build
cmake .. -DCMAKE_INSTALL_PREFIX=../_install -DUSER_SOURCES_DIR=../src/FORC
cmake --build .
cmake --build . --target install you could re-use your old build to not re-compile the whole thing: cd build
cmake .. -DCMAKE_INSTALL_PREFIX=../_install -DUSER_SOURCES_DIR=../src/FORC
cmake --build . --target pre_input_experiment
cmake --build . --target install
cd MY_RUN/ECOCLIMAP
gfortran -fdefault-real-8 -fdefault-double-8 -g -fno-second-underscore -fpic -ffpe-trap=overflow,zero,invalid -fbacktrace -fconvert=swap convert_ecoclimap_param.f90
./a.out
# To set up the experiment directory and copy required data files:
#
# Please note that your experiment should be located in MY_RUN
# directory because PRE_INPUT_EXPERIMENT uses relative paths
# to find its input data.
#
cd MY_RUN
cp -rv NAMELIST/Alp_for_0203 .
cd Alp_for_0203
cp -v ../ECOCLIMAP/*.dat .
# To prepare forcing data in format that SURFEX could understand
<path to SURFEX binaries>/PRE_INPUT_EXPERIMENT You could check the
cd MY_RUN/Alp_for_0203
<path to SURFEX binaries>/PGD
<path to SURFEX binaries>/PREP
<path to SURFEX binaries>/OFFLINE You will get a lot of different ASCII files that contain time series of SURFEX output variables. More information about different SURFEX options you could get from the Météo-France SURFEX documentation. |
Hi Joewkr! If there is still something I would like to note, it could be that Anyway, problems solved and my SURFEX is running fairly decent on my machine now thanks to your help. |
Oops, my bad... of course |
Hi! Thank you for this cmake version of open-SURFEX.
I built using the following commands
While I found a couple of binaries in _install, SODA, SXPOST, VARASSIM, PGD, OI_MAIN, OFFLINE, NCPOST. They all report error opening OPTIONS.nam to me.
In LISTING_SODA0.txt, I also have
What is OPTIONS.nam? Which binary should I use to start? Is my way of building correct? I have not install netCDF nor GRIB-API.
Thank you in advance!
The text was updated successfully, but these errors were encountered: