GMTB Workflow Documentation
maps.general_map Class Reference
Inheritance diagram for maps.general_map:
Collaboration diagram for maps.general_map:

Public Member Functions

def __init__ (self)
 
def set_fig_params (self)
 
def draw_map (self)
 
def save_figure (self, outdir)
 
def fill_field (self)
 
def scale_field
 
def contour_field (self, var, field)
 
def wind_field (self)
 
def coord_str
 
def plot_title (self)
 
def display_map (self)
 
def run (self)
 

Public Attributes

 params
 
 area_flag
 
 barbs
 
 myvar
 

Detailed Description

Class that generates all of the generic parts of a map figure.

Definition at line 39 of file maps.py.

Constructor & Destructor Documentation

def maps.general_map.__init__ (   self)
Load the parameters dictionary that defines plotting parameters for various variables.

Definition at line 41 of file maps.py.

Member Function Documentation

def maps.general_map.contour_field (   self,
  var,
  field 
)
Draw field contours. Does not have to be the main field being processed. Mostly plotting height.

Definition at line 277 of file maps.py.

References maps.make_basemap.level, maps.make_basemap.lon, maps.make_basemap.m, maps.general_map.myvar, maps.general_map.params, and maps.general_map.scale_field().

Referenced by maps.general_map.run().

Here is the call graph for this function:

Here is the caller graph for this function:

def maps.general_map.coord_str (   self,
  coord,
  title = True 
)
Determine how to label the vertical coordinate based on the contents of the grib file, or other
   information.

Definition at line 342 of file maps.py.

References maps.make_basemap.field.

Referenced by maps.general_map.plot_title(), and maps.general_map.save_figure().

Here is the caller graph for this function:

def maps.general_map.display_map (   self)

Definition at line 404 of file maps.py.

def maps.general_map.draw_map (   self)
Make figure

Definition at line 146 of file maps.py.

References maps.make_basemap.lon, maps.make_basemap.m, and maps.general_map.params.

Referenced by maps.general_map.run().

Here is the caller graph for this function:

def maps.general_map.fill_field (   self)
Color-fill the field of the figure being plotted

Definition at line 202 of file maps.py.

References maps.make_basemap.field, maps.make_basemap.level, maps.make_basemap.line, maps.make_basemap.lon, maps.make_basemap.m, maps.general_map.myvar, maps.general_map.params, and maps.general_map.scale_field().

Referenced by maps.general_map.run().

Here is the call graph for this function:

Here is the caller graph for this function:

def maps.general_map.plot_title (   self)
configure plot title

Definition at line 362 of file maps.py.

References maps.general_map.coord_str(), maps.make_basemap.fhr, maps.make_basemap.field, maps.make_basemap.level, maps.general_map.myvar, and maps.general_map.params.

Referenced by maps.general_map.run().

Here is the call graph for this function:

Here is the caller graph for this function:

def maps.general_map.run (   self)
def maps.general_map.save_figure (   self,
  outdir 
)
save figures

Definition at line 171 of file maps.py.

References maps.general_map.area_flag, maps.general_map.coord_str(), maps.make_basemap.fhr, maps.make_basemap.field, maps.general_map.myvar, and maps.general_map.params.

Here is the call graph for this function:

def maps.general_map.scale_field (   self,
  scale = None 
)
scale field values

Definition at line 263 of file maps.py.

References maps.make_basemap.field.

Referenced by maps.general_map.contour_field(), and maps.general_map.fill_field().

Here is the caller graph for this function:

def maps.general_map.set_fig_params (   self)
Definition of parameters for plotting standard maps. 
   The top level variable name must match the "shortName" used in the grib file.
   Each variable has a 
   subdictionary for various height levels to define either int/min/max values, 
   or contour values directly. Other options that the scripts use: 
       cbar: user-specified color tables
      scale: a scale factor (should start with an operator (*,/,+,-)
       unit: a string for unit if the one in the grib file is inappropriate
    varname: option for using a variable name different than that in the grib file

Definition at line 46 of file maps.py.

def maps.general_map.wind_field (   self)
Plot the wind field in barbs. Masks are applied here to thin 
   the quantity of barbs plotted for clarity

Definition at line 317 of file maps.py.

References maps.make_basemap.m, maps.general_map.params, and maps.make_basemap.winds.

Referenced by maps.general_map.run().

Here is the caller graph for this function:

Member Data Documentation

maps.general_map.area_flag

Definition at line 328 of file maps.py.

Referenced by maps.general_map.save_figure(), and maps.make_basemap.set_bm().

maps.general_map.barbs

Definition at line 340 of file maps.py.


The documentation for this class was generated from the following file: