A module to handle file IO regarding GPhys.
Many of the functionality of this module is implemented in the modules for specific file types such as NumRu::GPhys::NetCDF_IO, to which this module directs operations.
For example, GPhys::IO.open(file, name) simply calls GPhys::*_IO.open(file, name), where '*' is NetCDF, GrADS, or grib.
open(files, varname)
write(file, gphys, name=nil)
write_grid(file, grid_or_gphys)
each_along_dims_write(gphyses, files, *loopdims){...} # a block is expected
var_names(file)
var_names_except_coordinates(file)
See the manual of NumRu::GPhys::NetCDF_IO for the methods listed above.
file2type(file)
Figures out the file type supported in this module.
ARGUMENTS
RETURN VALUE
file2specific_module(file)
Same as file2type, but returns GPhys::NetCDF_IO, GPhys::GrADS_IO, or GPhys::Grib_IO.
file2file_class(file)
Same as file2type, but returns NetCDF, GrADS_Gridded, or Grib.
parse_gturl(gturl)
Parses GTOOL4-type URLs to specify path, variable name, and optionally subsets, whose format is path@varname[,dimname=pos1[:pos2[:thinning_intv]][,dimname=...]]
ARGUMENTS
RETURN VALUES
open_gturl(gturl)
a GPhys constructor from a Gtool4-type URL. See parse_gturl for its format.
RETURN VALUE
GTURLfmt
The format of Gtool4URL.