# Path: fluids/design_climate.py
# def geopy_geolocator():
# def geopy_cache():
#     def __init__(self, file_name):
#     def cached_address(self, address):
#     def cache_address(self, address, latitude, longitude):
# def geocode(address):
# def heating_degree_days(T, T_base=291.4833333333333, truncate=True):
# def cooling_degree_days(T, T_base=283.15, truncate=True):
# def get_clean_isd_history(dest=os.path.join(folder, 'isd-history-cleaned.tsv'),
#                           url="ftp://ftp.ncdc.noaa.gov/pub/data/noaa/isd-history.csv"): # pragma: no cover
#     def __repr__(self):
#     def __init__(self, USAF, WBAN, NAME, CTRY, ST, ICAO, LAT, LON, ELEV, BEGIN,
#                  END):
#     def __init__(self, station, data_dir_override=None):
#     def load_empty_vectors(self):
#     def download_data(self):
#     def parse_data(self):
#     def coldest_month(self, older_year=None, newer_year=None, minimum_days=23):
#     def warmest_month(self, older_year=None, newer_year=None, minimum_days=23):
#     def month_average_temperature(self, older_year=None, newer_year=None,
#                                   include_yearly=False, minimum_days=23):
#     def month_average_windspeed(self, older_year=None, newer_year=None,
#                                   include_yearly=False, minimum_days=23):
#     def percentile_extreme_condition(self, older_year=None, newer_year=None,
#                                   include_yearly=False, minimum_days=23, attr='WDSP'):
# def get_closest_station(latitude, longitude, minumum_recent_data=20140000,
#                         match_max=100):
# def get_station_year_text(WMO, WBAN, year, data_dir_override=None):
# def gsod_day_parser(line, SI=True, to_datetime=True):
# class SimpleGeolocatorCache(object):
# class IntegratedSurfaceDatabaseStation(object):
# class StationDataGSOD(object):
#                 T = day.TEMP
#         WMO = 999999
#         WBAN = 99999


from numpy.testing import assert_allclose
from fluids.numerics import assert_close, assert_close1d
from fluids.design_climate import *
from fluids.design_climate import _latlongs, stations
import pytest
import numpy as np
import os
    import geopy
# -*- coding: utf-8 -*-
'''Chemical Engineering Design Library (ChEDL). Utilities for process modeling.
Copyright (C) 2016, 2017 Caleb Bell <Caleb.Andrew.Bell@gmail.com>

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.'''



# Path: fluids/design_climate.py
# def geopy_geolocator():
# def geopy_cache():
#     def __init__(self, file_name):
#     def cached_address(self, address):
#     def cache_address(self, address, latitude, longitude):
# def geocode(address):
# def heating_degree_days(T, T_base=291.4833333333333, truncate=True):
# def cooling_degree_days(T, T_base=283.15, truncate=True):
# def get_clean_isd_history(dest=os.path.join(folder, 'isd-history-cleaned.tsv'),
#                           url="ftp://ftp.ncdc.noaa.gov/pub/data/noaa/isd-history.csv"): # pragma: no cover
#     def __repr__(self):
#     def __init__(self, USAF, WBAN, NAME, CTRY, ST, ICAO, LAT, LON, ELEV, BEGIN,
#                  END):
#     def __init__(self, station, data_dir_override=None):
#     def load_empty_vectors(self):
#     def download_data(self):
#     def parse_data(self):
#     def coldest_month(self, older_year=None, newer_year=None, minimum_days=23):
#     def warmest_month(self, older_year=None, newer_year=None, minimum_days=23):
#     def month_average_temperature(self, older_year=None, newer_year=None,
#                                   include_yearly=False, minimum_days=23):
#     def month_average_windspeed(self, older_year=None, newer_year=None,
#                                   include_yearly=False, minimum_days=23):
#     def percentile_extreme_condition(self, older_year=None, newer_year=None,
#                                   include_yearly=False, minimum_days=23, attr='WDSP'):
# def get_closest_station(latitude, longitude, minumum_recent_data=20140000,
#                         match_max=100):
# def get_station_year_text(WMO, WBAN, year, data_dir_override=None):
# def gsod_day_parser(line, SI=True, to_datetime=True):
# class SimpleGeolocatorCache(object):
# class IntegratedSurfaceDatabaseStation(object):
# class StationDataGSOD(object):
#                 T = day.TEMP
#         WMO = 999999
#         WBAN = 99999


# Path: tests/test_design_climate.py
from numpy.testing import assert_allclose
from fluids.numerics import assert_close, assert_close1d
from fluids.design_climate import *
from fluids.design_climate import _latlongs, stations
import pytest
import numpy as np
import os
    import geopy

# -*- coding: utf-8 -*-
'''Chemical Engineering Design Library (ChEDL). Utilities for process modeling.
Copyright (C) 2016, 2017 Caleb Bell <Caleb.Andrew.Bell@gmail.com>

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.'''



try: