Using the c2l CFIO offline.x program: Difference between revisions
No edit summary |
No edit summary |
||
(5 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
The c2l_CFIO_offline.x program is a simple program that uses the I/O layer that MAPL_History uses to read in a file and regrid it to a different resolution using our built in transformations to convert cubed-sphere files to lat-lon files. It also handles both bilinear and conservative regridding. The program is driven through a resource file. It must be run on at least 6 processors via the correct mpirun command for your build. | The c2l_CFIO_offline.x program is a simple program in the fv3 direcotry (GEOSgcs_GridComp/GEOSgcm_GridComp/GEOSagcm_GridComp/GEOSsuperdyn_GridComp/FVdycoreCubed_GridComp) that uses the I/O layer that MAPL_History uses to read in a file and regrid it to a different resolution using our built in transformations to convert cubed-sphere files to lat-lon files. It also handles both bilinear and conservative regridding. The program is driven through a resource file. It must be run on at least 6 processors via the correct mpirun command for your build. It is normally built when you build GEOS-5 and copied to $ESMADIR/Linux/bin | ||
The name of resource file is c2l_CFIO_offline.rc | The name of resource file is c2l_CFIO_offline.rc | ||
Line 5: | Line 5: | ||
An example resource file to go from c90 to 180x91 is given below, note you must give the time you want to regrid. | An example resource file to go from c90 to 180x91 is given below, note you must give the time you want to regrid. | ||
<pre> | |||
# required entries | # required entries | ||
IM_World: 90 | IM_World: 90 | ||
JM_World: 540 | JM_World: 540 | ||
LM_World: 72 | LM_World: 72 | ||
nlon: 180 | nlon: 180 | ||
nlat: 91 | nlat: 91 | ||
input_file: myinputfile.nc4 | input_file: myinputfile.nc4 | ||
output_file myoutputfile.nc4 | output_file myoutputfile.nc4 | ||
year: 2000 | year: 2000 | ||
month: 12 | month: 12 | ||
day: 1 | day: 1 | ||
hour: 21 | hour: 21 | ||
minute: 0 | minute: 0 | ||
# optional entries, the defaults are in parentheses | # optional entries, the defaults are in parentheses | ||
NX: 1 (1) | NX: 1 (1) | ||
NY: 6 (6) | NY: 6 (6) | ||
USE_SHMEM: .false. (.false.) | USE_SHMEM: .false. (.false.) | ||
CONSERVATIVE: .true. (.false.) | CONSERVATIVE: .true. (.false.) | ||
vars: (give a comma separated list of variables you want regridded) | vars: (give a comma separated list of variables you want regridded) | ||
</pre> | |||
If you choose conservative regridding you must link in the tile file you would need for the 2 resolutions. These can be found here (all the .bin files): | |||
/discover/nobackup/ltakacs/bcs/Icarus/Shared/ | /discover/nobackup/ltakacs/bcs/Icarus/Shared/ |