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

Alternative Constructors

from_definition(definition)

Create podpac Node from a dictionary definition.

from_json(s)

Create podpac Node from a JSON definition.

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 coordinates for the Node.

from_url(url)

Create podpac Node from a WMS/WCS request.

get_cache(key[, coordinates])

Get cached data for this node.

get_coordinates()

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

get_data(coordinates, coordinates_index)

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

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.

load(path)

Create podpac Node from file.

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

Cache data for this node.

rem_cache(key[, coordinates, mode])

Clear cached data for this node.

save(path)

Write node to file.

set_coordinates(coordinates[, force])

Set the coordinates.

set_credentials([username, password])

Shortcut to podpac.authentication.set_crendentials() using class member self.hostname for the hostname

trait_is_defined(name)

Attributes

attrs

List of node attributes

auth_required

available_times

base_ref

Default reference/name in node definitions

boundary

An instance of a Python dict.

cache_coordinates

A boolean (True, False) trait.

cache_ctrl

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

cache_output

A boolean (True, False) trait.

coordinate_index_type

An enum whose value must be in a given sequence.

coordinates

{coordinates}

data_key

PyDAP data_key, constructed from the layer_key and root_data_key

dataset

date_file_url_re

date_time_file_url_re

definition

dtype

A trait which allows any value.

file_url_re

force_eval

A boolean (True, False) trait.

hash

hostname

interpolation

interpolation_class

Get the interpolation class currently set for this data source.

interpolators

Return the interpolators selected for the previous node evaluation interpolation.

json

json_pretty

keys

lat_key

OpenDap dataset key for latitude.

layer_key

A trait for unicode strings.

lon_key

OpenDap dataset key for longitude.

nan_vals

output

A trait for unicode strings.

outputs

An instance of a Python list.

password

Returns password stored in settings for accessing self.hostname.

product

SMAP product from the OpenDAP URL

product_url

property

An enum whose value must be in a given sequence.

root_data_key

A trait for unicode strings.

session

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

Returns username stored in settings for accessing self.hostname.

version

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_coordinates()[source]

Returns a Coordinates object that describes the 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.coordinates if self.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.