Class - MetMast¶
This is the foundational object within the Anemoi wind analysis package.
-
class
mast.
MetMast
(data=None, name=None, lat=None, lon=None, elev=None, height=None, primary_ano=None, primary_vane=None, shear_sensors=None)[source]¶ Primary Anemoi object. Data structure made up of two components:
- Metadata (mast coordinates, mast height, primary anemometer, primary wind vane)
- Pandas DataFrame of time series wind measurements which assumes EDF’s standard sensor naming conventions.
Metadata: - lat: float, default None
- Latitude of met mast
- long: float, default None
- Longitude of met mast
- height: float or int, default None
- Height of met mast in meters
- primary_ano: string
- Column label of the primary anemometer
- primary_vane: string
- Column label of the primary wind vane
- shear_sensors: list of strings
- List of anemometer columns for use in shear analysis
Data: - data: DataFrame
- Pandas DataFrame of a time series of measured wind data. The column labels assume EDF’s standard naming convention.
-
get_sensor_names
(sensors=None)[source]¶ Returns a list of sensor names for columns in an.MetMast.data
Parameters: - sensors: list, default None
- List of specific sensors from which to return details, otherwise all columns assumed
-
resample_sensor_data
(sensors, freq, agg='mean', minimum_recovery_rate=0.7)[source]¶ Returns a DataFrame of measured data resampled to the specified frequency
Parameters: - sensors: list of sensors
- List of specific sensor columns to resample
- freq: string; (‘hourly’, ‘daily’, ‘weekly’, ‘monthly’, ‘yearly’)
Frequency to resample.
Accepts Python offset aliases.
http://pandas.pydata.org/pandas-docs/stable/timeseries.html#offset-aliases
- agg: string; default ‘mean’
- Aggregator (‘mean’, ‘std’, ‘max’, ‘min’, ‘count’, ‘first’, ‘last’)
-
return_primary_ano_vane_data
()[source]¶ Returns a DataFrame of measured data from the primary anemometer and primary wind vane
-
return_sensor_data
(sensors=None)[source]¶ Returns a DataFrame of measured data from specified sensors
Parameters: - sensors: list, default None
- List of specific sensors from which to return data
-
return_sensor_type_data
(sensor_type=None, sensor_signal='AVG')[source]¶ Returns a DataFrame of measured data from a specified sensor type
Parameters: - sensor_type: string, default None
- Sensor type (‘SPD’, ‘DIR’, ‘T’, ‘RH’)
Sensor Naming Convention:
Anemometer: SPD_height_orientation; Ex: SPD_102_SW
Vertical Anemometer: VFS_height_orientation; Ex: VFS_77_W
Wind Vane: DIR_height; Ex: DIR_88
Ambient Temperature: T_height; Ex: T_92
Barometric Pressure: BP_height; Ex: BP_92
Relative Humidity: RH_height; Ex: RH_91
Dew Point: DEW; Ex: DEW
Air Density: AIRD; Ex: AIRD
Rain Gauge: RG; Ex: RG
Logger Battery Voltage: VBAT; Ex: VBAT
Logger Internal Temperature: TLOG; Ex: TLOG
Multiplexer: MUX; Ex: MUX
Instrument Current: CUR_[number]; Ex: CUR_1, CUR_2, etc.
Obstruction Lighting Status: OLS; Ex: OLS
Power System Voltage - 12: PS12; Ex: PS12
Power System Voltage - 24: PS24; Ex: PS24
Grid Power Status: GRID; Ex: GRID
Ice Detectors: ICE_height; Ex: ICE_20
Visibility Detectors: VIS_height; Ex: VIS_20
Pyranometer: PYR_height; Ex: PYR_3
Wetness: WET; Ex: WET
Logger Clock Drift: LCDR; Ex: LCDR
Heated sensors: [SensorType]H_ height_orientation; Ex: SPDH_80_SW
[SensorType]H_ height; Ex: DIRH_77
(based on sensor type); Ex: BPH_75
-
sensor_details
(level, sensors=None)[source]¶ Returns a list of sensor details for a given column level in MetMast.data. See also: an.utils.mast_data.get_sensor_details
Parameters: - level: string, default None
- Level from which to return details (‘type’, ‘height’, ‘orient’, ‘signal’, ‘sensor’)
- sensors: list, default None
- List of specific sensors from which to return details
-
sensor_details_unique
(level, sensors=None)[source]¶ Returns a list of sensor details for a given column level in an.MetMast.data. See also: an.utils.mast_data.get_unique_sensor_details
Parameters: - level: string, default None
- Level from which to return details (‘type’, ‘height’, ‘orient’, ‘signal’, ‘sensor’)
- sensors: list, default None
- List of specific sensors from which to return details
-
sensor_heights
(sensors=None)[source]¶ Returns a list of sensor heights for columns in an.MetMast.data
Parameters: - sensors: list, default None
- List of specific sensors from which to return details, otherwise all columns assumed
-
sensor_heights_unique
(sensors=None)[source]¶ Returns a list of unique sensor heights for columns in an.MetMast.data
Parameters: - sensors: list, default None
- List of specific sensors from which to return details, otherwise all columns assumed
-
sensor_orients
(sensors=None)[source]¶ Returns a list of sensor orientations for columns in an.MetMast.data
Parameters: - sensors: list, default None
- List of specific sensors from which to return details, otherwise all columns assumed
-
sensor_orients_unique
(sensors=None)[source]¶ Returns a list of unique sensor orientations for columns in an.MetMast.data
Parameters: - sensors: list, default None
- List of specific sensors from which to return details, otherwise all columns assumed
-
sensor_signals
(sensors=None)[source]¶ Returns a list of sensor signals for columns in an.MetMast.data
Parameters: - sensors: list, default None
- List of specific sensors from which to return details, otherwise all columns assumed
-
sensor_signals_unique
(sensors=None)[source]¶ Returns a list of unique sensor signals for columns in an.MetMast.data
Parameters: - sensors: list, default None
- List of specific sensors from which to return details, otherwise all columns assumed