pyrocko.plot.automap¶
Classes
|
Undocumented. |
|
Undocumented. |
|
Undocumented. |
- class FloatTile(xmin, ymin, dx, dy, data)[source]¶
Bases:
ObjectUndocumented.
- ♦ xmin¶
float
- ♦ ymin¶
float
- ♦ dx¶
float
- ♦ dy¶
float
- ♦ data¶
numpy.ndarray (
pyrocko.guts_array.Array)
- class City(name, lat, lon, population=None, asciiname=None)[source]¶
Bases:
ObjectUndocumented.
- ♦ name¶
str
- ♦ lat¶
float
- ♦ lon¶
float
- ♦ population¶
int
- ♦ asciiname¶
str
- class Map(gmtversion='newest', **kwargs)[source]¶
Bases:
ObjectUndocumented.
- ♦ lat¶
float, optional
- ♦ lon¶
float, optional
- ♦ radius¶
float, optional
- ♦ width¶
float, default:20.0
- ♦ height¶
float, default:14.0
- ♦ margins¶
listoffloatobjects, default:[]
- ♦ illuminate¶
bool, default:True
- ♦ skip_feature_factor¶
float, default:0.02
- ♦ show_grid¶
bool, default:False
- ♦ show_topo¶
bool, default:True
- ♦ show_scale¶
bool, default:False
- ♦ show_topo_scale¶
bool, default:False
- ♦ show_center_mark¶
bool, default:False
- ♦ show_rivers¶
bool, default:True
- ♦ show_plates¶
bool, default:False
- ♦ show_plate_velocities¶
bool, default:False
- ♦ show_plate_names¶
bool, default:False
- ♦ show_boundaries¶
bool, default:False
- ♦ illuminate_factor_land¶
float, default:0.5
- ♦ illuminate_factor_ocean¶
float, default:0.25
- ♦ color_wet¶
tupleof 3intobjects, default:(216, 242, 254)
- ♦ color_dry¶
tupleof 3intobjects, default:(172, 208, 165)
- ♦ color_boundaries¶
tupleof 3intobjects, default:(1, 1, 1)
- ♦ topo_resolution_min¶
float, default:40.0minimum resolution of topography [dpi]
- ♦ topo_resolution_max¶
float, default:200.0maximum resolution of topography [dpi]
- ♦ topo_cpt_wet¶
str, default:'light_sea'
- ♦ topo_cpt_dry¶
str, default:'light_land'
- ♦ topo_dry_path¶
str, optional
- ♦ topo_wet_path¶
str, optional
- ♦ axes_layout¶
str, optional
- ♦ gmt_config¶
dictofstrobjects, default:{}
- ♦ comment¶
str, optional
- ♦ approx_ticks¶
int, default:4
- save(outpath, resolution=75.0, oversample=2.0, size=None, width=None, height=None, psconvert=False, crop_eps_mode=False)[source]¶
Save the image.
Save the image to
outpath. The format is determined by the filename extension. Formats are handled as follows:'.eps'and'.ps'produce EPS and PS, respectively, directly with GMT. If the file name ends with'.pdf', GMT output is fed throughgmtpy-epstopdfto create a PDF file. For any other filename extension, output is first converted to PDF withgmtpy-epstopdf, then withpdftocairoto PNG with a resolution oversampled by the factoroversampleand finally the PNG is downsampled and converted to the target format withconvert. The resolution of rasterized target image can be controlled either byresolutionin DPI or by specifyingwidthorheightorsize, where the latter fits the image into a square with given side length. To save transparency usepsconvert=True. To crop the output image with a rectangle to the nearest non-white element setcrop_eps_mode=True.