scientimate.gridgenerator

xgrid, ygrid = scientimate.gridgenerator(xmin, xmax, ymin, ymax, gridsize=100, gridsizetype='points', dispout='no')

Description

Generate 2d x-y grid

Inputs

xmin
Minimum x of the domain to be generated
xmax
Maximum x of the domain to be generated
ymin
Minimum y of the domain to be generated
ymax
Maximum y of the domain to be generated
gridsize=100
Grid size in x (longitude) and y (latitude) directions to interpolate elevation data on them
if gridsizetype=’length’ then gridsize is a distance between grid points
if gridsizetype=’points’ then gridsize is number of grid points in each direction
gridsizetype=’points’
Grid size type
‘number’: gridsize is considered as number of grid points in each direction
‘length’: gridsize is considered as length between grid points
dispout=’no’
Define to display outputs or not (‘yes’: display, ‘no’: not display)

Outputs

xgrid
x of the defined mesh
ygrid
y of the defined mesh

Examples

import scientimate as sm
xgrid,ygrid=sm.gridgenerator(0,100,0,100,100,'points','yes')
xgrid,ygrid=sm.gridgenerator(0,100,0,100,20,'length','yes')

References