earth

Globe Source

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

Bases: AlgorithmBase

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)

RequestData(request, inInfo, outInfo)[source]

The pipeline executes this to generate output

build_globe()[source]

Generates the globe as vtkPolyData

create_sphere()[source]

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

set_n_meridians(n)[source]

Set the number of meridians to use

set_n_parallels(n)[source]

Set the number of parallels to use

set_radius(radius)[source]

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

spherical_to_cartesian(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]

Bases: AlgorithmBase

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

RequestData(request, inInfo, outInfo)[source]

Used by pipeline to generate the output

set_radius(radius)[source]

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