Next: 7.4 Monitor: Simulation state
Up: 7.3 Fortran Native I/O:
Previous: 7.3.1 MDSIO
Contents
Subsections
7.3.2 RW Basic binary I/O utilities
The rw package provides a very rudimentary binary I/O capability
for quickly writing single record direct-access Fortran binary files.
It is primarily used for writing diagnostic output.
Package rw is an interface to the more general mdsio package.
The rw package can be used to write or read direct-access Fortran
binary files for two-dimensional XY and three-dimensional XYZ arrays.
The arrays are assumed to have been declared according to the standard
MITgcm two-dimensional or three-dimensional floating point array type:
C Example of declaring a standard two dimensional "long"
C floating point type array (the _RL macro is usually
C mapped to 64-bit floats in most configurations)
_RL anArray(1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
Each call to an rw read or write routine will read (or write) to
the first record of a file. To write direct access Fortran files with
multiple records use the package mdsio (see section
7.3.1). To write self-describing files that contain
embedded information describing the variables being written and the
spatial and temporal locations of those variables use the package mnc (see section 7.2) which produces
netCDF
Rew et al. [1997] based output.
Next: 7.4 Monitor: Simulation state
Up: 7.3 Fortran Native I/O:
Previous: 7.3.1 MDSIO
Contents
mitgcm-support@mitgcm.org
Copyright © 2006
Massachusetts Institute of Technology |
Last update 2011-01-09 |
|
|