Initialize structure for packing and unpacking given their mask. s = statevector_init(mask1, mask2, ...) Initialize structure for packing and unpacking multiple variables given their corresponding land-sea mask. Input: mask1, mask2,...: land-sea mask for variable 1,2,... Sea grid points correspond to one and land grid points to zero. Every mask can have a different shape. Output: s: structure to be used with statevector_pack and statevector_unpack. Note: see also statevector_pack, statevector_unpack
Package: divand