4.17. Grid¶

The grid defines the geographical extent of the simulated domain and the spatial discretization. The grid is defined by a NetCDF file that provides for every cell of the grid the latitude, the longitude and whether it is land or ocean (the mask). OSMOSE does not set any convention regarding the latitude and the longitude. Just make sure it is consistent with the convention of the biotic resource dataset. The grid does not have to be regular.

grid.netcdf.file is the path of the NetCDF grid file.

grid.var.lat = lat
grid.var.lon = lon


is the name of the latitude, longitude and mask variables in the NetCDF grid file.

grid.java.classname is the Java class that should be used to build the OSMOSE grid. Do not change this parameter unless you know exactly what you are doing.

Historically OSMOSE allows to define a regular grid, given a few parameters. Even though it is preferable to use the NetCDF grid definition, here is how a regular grid can be defined:

grid.ncolumn = 56
grid.nline = 62
grid.lowright.lat = -37.5
grid.lowright.lon = 24.4
grid.upleft.lat = -28.2
grid.upleft.lon = 16

The mask file is a CSV with ncolumn and nline. Land takes the value -99, and ocean cell are defined by a 0. Here is an example of a CSV mask file for a 4x4 grid: