helps read Grib-formatted data
is_a_Grib? filename)test whether the file is a Grib file.
ARGUMENTS
RETURN VALUE
open(file, varname)GPhys constructor from Grib.
ARGUMENTS
RETURN VALUE
EXAMPLE
Suppose that you have a file temp in the currentdirectly, and it contains a variable "T". The following creates a GPhys object representing the variable in the file.
require "numru/gphys"
include GPhys
temp = GPhys::Grib_IO.open("temp","T")write(file, gphys, name_dummy=nil)Write a GPhys into a Grib file. The whole data under the GPhys (such as coordinate vars) are written self-descriptively.
ARGUMENTS
RETURN VALUE
var_names(file)ARGUMENTS
RETURN VALUE
var_names_except_coordinates(file)