# earth¶

## Globe Source¶

class PVGeo.model_build.earth.GlobeSource(radius=6371000000.0, npar=15, nmer=36, **kwargs)[source]

Creates a globe/sphere the size of the Earth with texture coordinates already mapped. The globe’s center is assumed to be (0,0,0).

Parameters: radius (float) – the radius to use npar (int) – the number of parallels (latitude) nmer (int) – the number of meridians (longitude)
BuildGlobe()[source]

Generates the globe as vtkPolyData

CreateSphere()[source]

Creates longitude/latitude as 2D points and returns the corresponding texture coordinates for those positions.

RequestData(request, inInfo, outInfo)[source]

The pipeline executes this to generate output

SetNumberOfMeridians(n)[source]

Set the number of meridians to use

SetNumberOfParallels(n)[source]

Set the number of parallels to use

SetRadius(radius)[source]

Set the radius of the globe. Defualt is 6.371.0e9 meters

SphericalToCartesian(meridian, parallel)[source]

Converts longitude/latitude to catesian coordinates. Assumes the arguments are given in degrees.

## Outline Continents¶

class PVGeo.model_build.earth.OutlineContinents(radius=6371000000.0)[source]

A simple data source to produce a vtkEarthSource outlining the Earth’s continents. This works well with our GlobeSource.

RequestData(request, inInfo, outInfo)[source]

Overwritten by subclass to execute the algorithm.

SetRadius(radius)[source]