podpac.algorithm.SelectCoordinates

class podpac.algorithm.SelectCoordinates(**kwargs)[source]

Bases: podpac.core.algorithm.coord_select.ModifyCoordinates

Evaluate a source node with select coordinates.

While this is simple to do when evaluating a single node (just provide the coordinates), this functionality is needed for nodes buried deeper in a pipeline. For example, if a single spatial reference point is used for a particular comparison, and this reference point is different than the requested coordinates, we need to explicitly select those coordinates using this Node.

lat, lon, time, altList
Selection parameters for the given dimension: The options are::
  • [value]: select this coordinate value

  • [start, stop]: select the available source coordinates within the given bounds

  • [start, stop, step]: select uniform coordinates defined by the given start, stop, and step

Methods

__init__(**kwargs)

Do not overwrite me

algorithm(inputs)

param inputs

Evaluated outputs of the input nodes. The keys are the attribute names.

create_output_array(coords[, data])

Initialize an output data array

eval(coordinates[, output])

Evaluates this nodes using the supplied coordinates.

eval_group(group)

Evaluate the node for each of the coordinates in the group.

find_coordinates()

Get the available native coordinates for the inputs to the Node.

get_cache(key[, coordinates])

Get cached data for this node.

get_modified_coordinates1d(coords, dim)

Get the desired 1d coordinates for the given dimension, depending on the selection attr for the given dimension.

has_cache(key[, coordinates])

Check for cached data for this node.

init()

Overwrite this method if a node needs to do any additional initialization after the standard initialization.

put_cache(data, key[, coordinates, overwrite])

Cache data for this node.

rem_cache(key[, coordinates, mode, all_cache])

Clear cached data for this node.

Attributes

alt

An instance of a Python list.

base_definition

Base node definition.

base_ref

Default pipeline node reference/name in pipeline node definitions

cache_ctrl

A trait whose value must be an instance of a specified class.

cache_output

A boolean (True, False) trait.

cache_update

A boolean (True, False) trait.

coordinates_source

definition

Full pipeline definition for this node.

dtype

A trait which allows any value.

hash

json

definition for this node in json format

json_pretty

lat

An instance of a Python list.

lon

An instance of a Python list.

pipeline

Create a pipeline node from this node

source

style

A trait whose value must be an instance of a specified class.

time

An instance of a Python list.

units

A trait for unicode strings.

Members

__init__(**kwargs)

Do not overwrite me

get_modified_coordinates1d(coords, dim)[source]

Get the desired 1d coordinates for the given dimension, depending on the selection attr for the given dimension:

:param dim: Dimension for doing the selection
:type dim: str
Returns

coords1d – The selected coordinates for the given dimension.

Return type

ArrayCoordinates1d