Module trase.tools.pcs.nodes.retrieve
Functions
def get_biome_id(biome_name, country_id, cur=None)def get_limited_nodes_data(node_ids, cur=None)-
Retrieve a dictionary of node data without node attributes, with the caveat that the dictionary will have no entry for the node with id 0, even if it was passed in
def get_node_datasets(node_id, cur=None)-
Return ref_id of datasets the node is part of.
def get_node_role_id(node_type_id, role, cur=None)def get_node_time(node_id, cur=None)def get_nodes_data(node_ids, cur=None)-
Returns a dictionary of information about the given node ids, with the caveat that the dictionary will have no entry for the node with id 0, even if it was passed in
def print_node_info(node_id, cur=None)-
Return string with node type and parent names.
node_id – 'nodes.node_id' in core database
Keyword arguments: cur – Core database cursor object