set kml fnameroot
Sets the filename root for KML output. GrADS will create two complementary files:
fnameroot.tif
A TIFF image file (default is grads.tif
)fnameroot.kml
A text file written in the Keyhole Markup Language (KML) that contains
the georeferencing information for the TIFF image (default is grads.kml
)This command is available in GrADS v2.0.a5 or later.
This command is used in conjunction with the set gxout kml
command which sets the graphics output type; the display
command will then create the two output files instead of drawing a plot. The output data files will be in two different but complementary formats. The TIFF image output is a grid of colored pixels, similar to the 'grfill' graphics output type. The KML output contains the necessary information for the TIFF image to be tied to a geographic location.
The files fnameroot.tif
and fnameroot.kml
will be replaced if they exist.
The output in KML format is intended for use with GIS tools such as Google Earth.
set kml my_name
set gxout kml
d my_var
Note: The GrADS expression my_var
must be a 2-dimensional grid that varies in X and Y (longitude and latitude).