Running ADF on NIRD #17
Replies: 9 comments 11 replies
-
|
Improvements might involve:
|
Beta Was this translation helpful? Give feedback.
-
|
@adagj
|
Beta Was this translation helpful? Give feedback.
-
|
Hi @DirkOlivie Yes, I had problems with the environment taking so long. That's why I wrote this recipe, because that worked for me. @YanchunHe Can you let Dirk know what's the best way to intall ADF or if it is a common environment installed on NIRD? |
Beta Was this translation helpful? Give feedback.
-
|
@adagj and @YanchunHe , I guess we discussed this in the diagnostic meeting before Christmas and will discuss again in upcoming meeting (when will that be). But though having an environment definition to build from is good, a prebuilt environment for most users to just load and use so using diagnostics is more plug and play is probably what we want, right? |
Beta Was this translation helpful? Give feedback.
-
|
I have made a new branch in the ADF, https://github.com/NorESMhub/ADF/tree/adf_noresm_stuff, with the noresm specific additions I have made. I suggest the main branch can follow the development at NCAR |
Beta Was this translation helpful? Give feedback.
-
|
Any timing estimate for point 5? It did not finished within one hour. I stopped the processs and thought to try it on the IPCC node but that node does not have access to datalake. Returned to the standard nodes and will just run the set-up overnight. |
Beta Was this translation helpful? Give feedback.
-
|
Point 5 has now taken more than 12 hours and still not finished |
Beta Was this translation helpful? Give feedback.
-
|
The ADF is installed under: IPCC node (ssh ipcc.nird.sigma2.no)
One can activate with: The source code with currently Ada's branch activate at: We will try to come up with a better recipe on how to run it soon later. |
Beta Was this translation helpful? Give feedback.
-
|
I can confirm that the settings given by Yanchun works, thank you. Copy the file /diagnostics/ADF/src/config_noresm_default.yaml to a /my_local_directory/config_noresm_mycase.yaml Replace the given username (adagj) with your username. For model vs model comparison give your set the variable set path to files if different from default: For every simulation set start_year and end_year No input = whole timeseries Choose type of plots. Default only have tables and time-series. Run: /diagnostics/ADF/src/run_adf_diag --config-file /my_local_directory/config_noresm_mycase.yaml Minor inconvenience: If you re-run the script with a different time-period you need to delete the netcdf files created for the timeseries. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
The new atmospheric diagnostics package can be installed using conda. However, using a more recent conda version can lead to extended time (i.e. days) resolving dependencies. A more efficient approach is utilizing the conda module on NIRD. This method bypasses the need for personal conda installation and bashrc modifications, aligning with sigma2's recommendation against adding conda configurations to bashrc. I tested this method by removing my conda installation, and it proved efficient and effective:
$ module load Anaconda3/2022.05$ mkdir /projects/NS____K/user/conda$ my_conda_storage=/cluster/projects/NS____K/user/conda$ export CONDA_PKGS_DIRS=${my_conda_storage}/package-cache$ git clone https://github.com/NCAR/ADF ADF$ cd ADF$ conda env create -f env/conda_environment.yaml$ git pullSteps 1 through 5 are necessary only once. Each subsequent time you want to run the ADF diagnostics, you can skip these steps.
For each time you want to run the ADF diagnostics:
7. Activate the environment. The first time you need to log out and in of NIRD. Then:
$ module load Anaconda3/2022.05$ source ${EBROOTANACONDA3}/bin/activate$ conda activate adf_v0.11Running the diagnostics:
./run_adf_diag config_yourconfigname.yamlTo see some examples of the
config_yourconfigname.yamlfile, please have a look at/datalake/NS2345K/adagj/ADFout/config_ada_test.yamlor/datalake/NS2345K/mvertens/ADF/input_file//config_test_ghgmam4.yamlFor making the diagnostics available for all, please use the folder
/nird/datapeak/NS9560K/www/diagnostics/. To be set incam_diag_plot_locin the config file. Output can be view from https://ns9560k.web.sigma2.no/datapeak/diagnostics/.We recommend to run on the ipcc node in order to have sufficient available memory.
Useful links:
Beta Was this translation helpful? Give feedback.
All reactions