To answer the last part of the question, I will assume that you have downloaded the repository following:
NOAA-GFDL/MOM6-examples
For me, I have a src directory off my $HOME directory in which I have downloaded MOM6-examples:
/home/cermak/src/MOM6-examples
Let us look at one particular example:
./ice_ocean_SIS2/Baltic_OM4_05/INPUT
The full path is : /home/cermak/src/MOM6-examples/ice_ocean_SIS2/Baltic_OM4_05/INPUT
$ ls -la .datasets
lrwxrwxrwx 1 cermak staff 18 Jun 19 20:37 .datasets -> ../../../.datasets
If you follow those .. back three times, we get back to /home/cermak/src/MOM6-examples. At this
point you have two options.
Option A: Within /home/cermak/src/MOM6-examples, make a directory
.datasets and expand all the downloaded datasets/files in that directory (space permitting).
Option B: Create a symbolic link from
.datasets to a storage location (and directory) large enough to store the downloaded datasets.
For a demonstration of option B, I will go back to $HOME (/home/cermak) and create a datasets directory.
$ cd $HOME
$ mkdir datasets
$ cd datasets
$ wget ftp://ftp.gfdl.noaa.gov/perm/Alistair.Adcroft/MOM6-testing/Baltic_OM4_05.tgz
$ tar xzf Baltic_OM4_05.tgz
Now within the "datasets" directory, I have the Baltic_OM4_05 directory we need for our INPUT
to the above example.
$ ls
Baltic_OM4_05 Baltic_OM4_05.tgz
At this point, we now have to establish a symbolic link my storage location for the datasets.
$ cd /home/cermak/src/MOM6-examples
# DON'T FORGET THE PERIOD...
$ ln -s /home/cermak/datasets .datasets
# Check our work
$ cd /home/cermak/src/MOM6-examples/ice_ocean_SIS2/Baltic_OM4_05/INPUT
$ ncdump -h ocean_hgrid.nc
Code:
netcdf ocean_hgrid {
dimensions:
nyp = 107 ;
nxp = 99 ;
ny = 106 ;
nx = 98 ;
string = 255 ;
variables:
double angle_dx(nyp, nxp) ;
angle_dx:units = "degrees" ;
double area(ny, nx) ;
area:units = "m2" ;
double dx(nyp, nx) ;
dx:units = "meters" ;
double dy(ny, nxp) ;
dy:units = "meters" ;
char tile(string) ;
double x(nyp, nxp) ;
x:units = "degrees" ;
double y(nyp, nxp) ;
y:units = "degrees" ;
// global attributes:
:history = "Fri Nov 18 20:50:33 2016: ncks -O -d nx,1224,1321 -d ny,820,925 -d nxp,1224,1322 -d nyp,820,926 /local2/home/inputs/MOM6_datasets/OM4_05/mosaic.v20151203.unpacked/ocean_hgrid.nc ocean_hgrid.nc" ;
:NCO = "4.0.3" ;
}
There are other parts to that example problem that will also need to be downloaded.
Once all the datasets are in place, things should follow fairly closely to the MOM6-examples wiki. The "
Compiling the models" section to getting started is a great place to begin setting up the compile environment. See:
NOAA-GFDL/MOM6-examples