metobs_toolkit.Dataset.get_altitude#
- Dataset.get_altitude()[source]#
Extract Altitudes for all stations.
Function to extract the Altitude from the SRTM Digital Elevation Data global map on the Google engine for all stations.
A ‘altitude’ column will be added to the metadf, and series is returned.
- Returns:
altitude_series – A series with the stationnames as index and the altitudes as values.
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 altitude for all stations alt_series = dataset.get_altitude() # in addition to the returned series, the metadf attribute is updated aswell print(dataset.metadf)
- Return type:
pandas.Series()