podpac.datalib.SMAPProperties

class podpac.datalib.SMAPProperties(**kwargs)[source]

Bases: podpac.datalib.smap.SMAPSource

Accesses properties related to the generation of SMAP products.

property
A SMAP property, which includes:

‘clsm_dzsf’, ‘mwrtm_bh’, ‘clsm_cdcr2’, ‘mwrtm_poros’, ‘clsm_dzgt3’, ‘clsm_dzgt2’, ‘mwrtm_rghhmax’, ‘mwrtm_rghpolmix’, ‘clsm_dzgt1’, ‘clsm_wp’, ‘mwrtm_lewt’, ‘clsm_dzgt4’, ‘clsm_cdcr1’, ‘cell_elevation’, ‘mwrtm_rghwmin’, ‘clsm_dzrz’, ‘mwrtm_vegcls’, ‘mwrtm_bv’, ‘mwrtm_rghwmax’, ‘mwrtm_rghnrh’, ‘clsm_dztsurf’, ‘mwrtm_rghhmin’, ‘mwrtm_wangwp’, ‘mwrtm_wangwt’, ‘clsm_dzgt5’, ‘clsm_dzpr’, ‘clsm_poros’, ‘cell_land_fraction’, ‘mwrtm_omega’, ‘mwrtm_soilcls’, ‘clsm_dzgt6’, ‘mwrtm_rghnrv’, ‘mwrtm_clay’, ‘mwrtm_sand’

Type

str

source
Source OpenDAP url for SMAP properties. Default is (SMAP_BASE_URL() +

‘SPL4SMLM{latest_version}/2015.03.31/’ ‘SMAP_L4_SM_lmc_00000000T000000_Vv{latest_version}.h5’)

Type

str, optional

Methods

__init__(**kwargs)

Do not overwrite me

create_output_array(coords[, data])

Initialize an output data array

eval(coordinates[, output])

Evaluates this node 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 Node.

get_available_times()

Retrieve the available times from the SMAP file.

get_cache(key[, coordinates])

Get cached data for this node.

get_data(coordinates, coordinates_index)

This method must be defined by the data source implementing the DataSource class.

get_native_coordinates()

Returns a Coordinates object that describes the native coordinates of the data source.

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

auth_class

A trait whose value must be a subclass of a specified class.

auth_session

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

base_definition

Base node defintion for DataSource nodes.

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.

coordinate_index_type

An enum whose value must be in a given sequence.

datakey

A trait for unicode strings.

dataset

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

date_file_url_re

date_time_file_url_re

definition

Full pipeline definition for this node.

dtype

A trait which allows any value.

file_url_re

hash

interpolation

A trait type representing a Union type.

interpolation_class

Get the interpolation class currently set for this data source.

interpolators

Return the interpolators selected for the previous node evaluation interpolation.

json

definition for this node in json format

json_pretty

keys

The list of available keys from the OpenDAP dataset.

latkey

The key used to retrieve the latitude

layerkey

A trait for unicode strings.

lonkey

The key used to retrieve the latitude

nan_vals

native_coordinates

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

password

A trait for unicode strings.

pipeline

Create a pipeline node from this node

product

Returns the SMAP product from the OpenDAP Url

property

An enum whose value must be in a given sequence.

rootdatakey

A trait for unicode strings.

source

A trait for unicode strings.

style

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

units

A trait for unicode strings.

username

A trait for unicode strings.

version

Returns the SMAP product version from the OpenDAP Url

Members

__init__(**kwargs)

Do not overwrite me

file_url_re = re.compile('SMAP.*_[0-9]{8}T[0-9]{6}_.*\\.h5')
get_native_coordinates()[source]

Returns a Coordinates object that describes the native coordinates of the data source.

In most cases, this method is defined by the data source implementing the DataSource class. If method is not implemented by the data source, it will try to return self.native_coordinates if self.native_coordinates is not None.

Otherwise, this method will raise a NotImplementedError.

Returns

The coordinates describing the data source array.

Return type

podpac.Coordinates

Notes

Need to pay attention to: - the order of the dimensions - the stacking of the dimension - the type of coordinates

Coordinates should be non-nan and non-repeating for best compatibility

property

An enum whose value must be in a given sequence.

source

A trait for unicode strings.