metobs_toolkit.Dataset.get_lcz#

Dataset.get_lcz()[source]#

Extract local climate zones for all stations.

Function to extract the Local CLimate zones (LCZ) from the wudapt global LCZ map on the Google engine for all stations.

A ‘LCZ’ column will be added to the metadf, and series is returned.

Returns:

lcz_series – A series with the stationnames as index and the LCZ as values.

Return type:

pandas.Series()

Examples

import metobs_toolkit

# Import data into a Dataset
dataset = metobs_toolkit.Dataset()
dataset.update_settings(
                        input_data_file=metobs_toolkit.demo_datafile,
                        input_metadata_file=metobs_toolkit.demo_metadatafile,
                        template_file=metobs_toolkit.demo_template,
                        )
dataset.import_data_from_file()

# Get the local climate zones for all stations
lcz_series = dataset.get_lcz()

# in addition to the returned series, the metadf attribute is updated aswell
print(dataset.metadf)