next up previous
Next: Coupling restart files Up: OASIS3 auxiliary data files Previous: Field names and units


Grid data files

The grids of the models being coupled must be given by the user, or directly by the model through PSMILe specific calls in grid data files. Note that if the grid data files exist in the working directory, they are not overwritten by the PSMILe specific calls (see section 4.2). These files can be all binary or all NetCDF. In
oasis3/examples/toyoasis3/data, NetCDF examples can be found.

The arrays containing the grid information are dimensioned (nx, ny), where nx and ny are the grid first and second dimension, except for Unstructured (U) and Reduced (D) grid, for which the arrays are dimensioned (nbr_pts,1), where nbr_pts is the total number of grid points.

  1. grids or grids.nc: contains the model grid longitudes, latitudes, and local angles (if any) in single or double precision REAL arrays (depending on OASIS3 compilation options). The array names must be composed of a prefix (4 characters), given by the user in the namcouple on the second line of each field (see section 5.3), and of a suffix (4 characters); this suffix is ``.lon'' or ``.lat'' for respectively the grid point longitudes or latitudes (see oasis3/src/mod_label.F90.)

    For SCRIPR interpolations, the grid data files must be NetCDF files. If the SCRIPR/CONSERV remapping is used, longitudes and latitudes for the source and target grid corners must also be available in the grids.nc file as arrays dimensioned (nx,ny,4) or (nbr_pts,1,4) where 4 is the number of corners (in the counterclockwize sense). The names of the arrays must be composed of the grid prefix and the suffix ``.clo'' or ``.cla'' for respectively the grid corner longitudes or latitudes. As for the other grid information, the corners can be provided in grids.nc before the run by the user or directly by the model through PSMILe specific calls (see section 4.2). For source grids of Logically Rectangular LR type only, the grid corners will however be automatically calculated and stored by OASIS if they are not initially available in grids.nc18.

    Longitudes must be given in degrees East in the interval -360.0 to 720.0. Latitudes must be given in degrees North in the interval -90.0 to 90.0. Note that if some grid points overlap, it is recommended to define those points with the same number (e.g. 360.0 for both, not 450.0 for one and 90.0 for the other) to ensure automatic detection of overlap by OASIS.

    The corners of a cell cannot be defined modulo 360 degrees. For example, a cell located over Greenwich will have to be defined with corners at -1.0 deg and 1.0 deg but not with corners at 359.0 deg and 1.0 deg.

    Cells larger than 180.0 degrees in longitude are not supported.

    If vector fields are defined on a grid which has a local coordinate system not oriented in the usual zonal and meridional directions, the local angle of the grid coordinate system must be given in grids.nc file in an array which name must be composed of the grid prefix and the suffix ``.ang''. The angle is defined as the angle between the first component and the zonal direction (which is also the angle between the second component and the meridional direction). For example, the angles of the torc grid are given in array torc.ang in the grids.nc file in oasis3/examples/testinterp/
    input. If one of the SCRIPR interpolations is requested for a vector field, OASIS3 automatically performs the rotation from the local coordinate system to the geographic spherical coordinate system for a source grid, or vice-versa for a target grid.

    File grids or grids.nc must be present with at least the grid point longitudes and latitudes for all component model.

  2. masks or masks.nc: contains the masks for all component model grids in INTEGER arrays (0 -not masked i.e. active- or 1 -masked i.e. not active- for each grid point). The array names must be composed of the grid prefix and the suffix ``.msk''. This file, masks or masks.nc, is mandatory.

  3. areas or areas.nc: this file contains mesh surfaces for the component model grids in single or double precision REAL arrays (depending on OASIS3 compilation options). The array names must be composed of the grid prefix and the suffix ``.srf''. The surfaces may be given in any units but they must be all the same (in INTERP/GAUSSIAN, it is assumed that the units are $m^2$ but they are used for statistics calculations only.) This file areas or areas.nc is mandatory for CHECKIN, CHECKOUT or CONSERV, and used for statistic calculations in INTERP/GAUSSIAN; it is not required otherwise.

  4. maskr or maskr.nc: (this file is obsolete with the current OASIS3 version and should not be used anymore) this file contains Reduced (D) grid mask in INTEGER arrays dimensioned array(nbr_pts) where nbr_pts is the total number of the Reduced grid points (0 -not masked- or 1 -masked- for each grid point). This file is required only for grids to which the REDGLO or GLORED transformation is applied. As mentionned above, these transformations should not be used anymore as interpolations are now available for Reduced grids directly. If used, the mask array name must be ``MSKRDxxx'' where ``xxx'' is half the number of latitude circles of the reduced grid (032 for a T42 for example).

If the binary format is used, grids, masks, areas, and maskr must have the following structure. The array name is first written to the file to locate a data set corresponding to a given grid. The data set is then written sequentially after its name. Let us call ``brick'' the name and its associated data set. The order in which the bricks are written doesn't matter. All the bricks are written in the grid data file in the following way:

        ...
        WRITE(LU) array_name
        WRITE(LU) auxildata
        ...
where



Footnotes

...grids.nc18
Tip: to automatically calculate the corners of a Logically Rectangular LR target grid, use the corresponding reverse remapping in which the current target grid becomes the source grid.

next up previous
Next: Coupling restart files Up: OASIS3 auxiliary data files Previous: Field names and units
Laure Coquart 2013-06-11