How to use the eeweather.load_tmy3_hourly_temp_data function in eeweather

To help you get started, we’ve selected a few eeweather examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github openeemeter / eemeter / eemeter / weather / eeweather_wrapper.py View on Github external
def _get_temperature_data_eeweather(usaf_id, start,
                                    end, normalized, use_cz2010):
    if normalized:
        if use_cz2010:
            tempC = eeweather.load_cz2010_hourly_temp_data(usaf_id, start, end)
        else:
            tempC = eeweather.load_tmy3_hourly_temp_data(usaf_id, start, end)
    else:
        tempC = eeweather.load_isd_hourly_temp_data(usaf_id, start, end)
    return tempC
github openeemeter / eemeter / eemeter / weather / clients.py View on Github external
def get_hourly_weather_normal_data(self, station):

        self._load_station_index()

        if station not in self.station_index:
            message = (
                "Station {} is not a TMY3 station."
                " See eemeter/resources/supported_tmy3_stations.json for a"
                " complete list of stations."
                .format(station)
            )
            raise ValueError(message)

        index = pd.date_range("1900-01-01 00:00", "1900-12-31 23:00",
                              freq='H', tz=pytz.UTC)
        return eeweather.load_tmy3_hourly_temp_data(
            station, index[0], index[-1])
        '''
        url = (