__parinit__(self,
pid,
nprocs,
filename,
split_dimension,
mode='r',
local_access=False)
|
|
-
- Parameters:
filename (str ) - the name of the netCDF file
split_dimension (str ) - the name of the dimension along which the data is distributed
over the processors
mode (str ) - read ('r'), write ('w'), or append ('a')
local_access (bool or str ) - if False , processor 0 is the only one to access
the file, all others communicate with processor 0. If
True (only for reading), each processor accesses the
file directly. In the latter case, the file must be accessible on
all processors under the same name. A third mode is 'auto', which
uses some heuristics to decide if the file is accessible
everywhere: it checks for existence of the file, then compares
the size on all processors, and finally verifies that the same
variables exist everywhere, with identical names, types, and
sizes.
|