1 | This directory contains some prototypes and example of programs |
---|
2 | and scripts to generate initial condition files for Venus-DYNAMICO |
---|
3 | from a Venus PCM (lon-lat) start_archive file |
---|
4 | |
---|
5 | Preliminary steps and requirements: |
---|
6 | ---------------------------------- |
---|
7 | - You must have run a Venus-DYNAMICO simulation (with startphy_file=.false.) |
---|
8 | at the sought horizontal (nbp=...) and vertical (llm=...) resolution |
---|
9 | to have adequate start.nc and startphy.nc files |
---|
10 | called start_icosa_ref.nc and startphy_icosa_ref.nc hereafter |
---|
11 | - You will need at start_archive.nc file obtained from a Venus PCM run. |
---|
12 | - You need a high resolution topography file, e.g. topo_Thomas_inv_nc4.nc |
---|
13 | |
---|
14 | - You need some NCO tools to post-process/adapt some of the NetCDF files |
---|
15 | |
---|
16 | In a nutshell: |
---|
17 | -------------- |
---|
18 | 1) The input start_archive.nc needs to be converted to NetCDF4 format |
---|
19 | (for compliance with XIOS); you can use "nccopy" for that: |
---|
20 | nccopy -k 4 start_archive.nc start_archive_nc4.nc |
---|
21 | |
---|
22 | 2) Two Fortran programs, start_archive2icosa.f90 and rearrange_startphy.f90 |
---|
23 | will be needed, so you have to compile them |
---|
24 | An example "compile" script is provided, which you'll need to adapt to |
---|
25 | your own settings to generate executables start_archive2icosa and |
---|
26 | rearrange_startphy |
---|
27 | |
---|
28 | 3) You should first run "start_archive2icosa". It needs quite a bit of memory |
---|
29 | and cores so you'll probably need to create and submit a job |
---|
30 | script "job_start_archive2icosa" is provided as an illutrative example |
---|
31 | to adapt to your own system. |
---|
32 | To run, "start_archive2icosa" needs: |
---|
33 | start_archive_nc4.nc, start_icosa_ref.nc, startphy_icosa_ref.nc, |
---|
34 | topo_Thomas_inv_nc4.nc and iodef.xml |
---|
35 | You may need to adapt iodef.xml to match variable names in start_icosa_ref.nc |
---|
36 | (especially if you have tracers which might have different names) |
---|
37 | Upon successful completion, the program will generate two files: |
---|
38 | "start_icosa.nc" and "startphy_icosa.nc" |
---|
39 | |
---|
40 | 4) Some further tailoring is needed, including a reordering of columns |
---|
41 | (via the rearrange_startphy program) and some minor additions. |
---|
42 | All this is handled by the icosa_finalize.bash script which should be run |
---|
43 | and will generate start.nc and startphy.nc files usable by Venus-DYNAMICO |
---|
44 | |
---|