Module Expr Str Import alias Assign NameStore Call AttributeLoad NameLoad attr Str Import alias Import alias Import alias Import alias TryExcept body ImportFrom alias handlers ExceptHandler type NameLoad body ImportFrom alias Import alias identifier Import alias identifier ImportFrom alias FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad body Expr Str If CompareIs NameLoad NameLoad body TryExcept body Assign NameStore Call NameLoad handlers ExceptHandler body Raise Call NameLoad Str Assign NameStore ListLoad Str Str Str Str Str Str Str TryExcept body Assign NameStore Call NameLoad NameLoad Str handlers ExceptHandler type NameLoad body Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad Call AttributeLoad NameLoad attr attr keyword Str Assign NameStore Call NameLoad Call NameLoad NameLoad Call AttributeLoad Call AttributeLoad Call AttributeLoad NameLoad attr attr Str attr Str Assign SubscriptStore NameLoad Index Str Call NameLoad SubscriptLoad NameLoad Index Str Assign SubscriptStore NameLoad Index Str Call NameLoad SubscriptLoad NameLoad Index Str Assign SubscriptStore NameLoad Index Str Call NameLoad SubscriptLoad NameLoad Index Str Assign SubscriptStore NameLoad Index Str Call NameLoad SubscriptLoad NameLoad Index Str Assign SubscriptStore NameLoad Index Str Call NameLoad SubscriptLoad NameLoad Index Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Num keyword Dict Str ListLoad Str Str keyword Lambda arguments args defaults vararg Call NameLoad keyword NameLoad NameLoad keyword Str If NameLoad body Expr Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad BinOpMult SubscriptLoad NameLoad Index Str Num Return TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Import alias ImportFrom alias Expr Call AttributeLoad Call AttributeLoad NameLoad attr attr Return Call NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Assign NameStore BinOpSub Call NameLoad SubscriptLoad NameLoad Slice Num Num Assign NameStore Call AttributeLoad Str attr NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore BinOpAdd NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr keyword Num If CompareIsNot NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Str Assign NameStore ListLoad Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Assign NameStore Call NameLoad Call NameLoad Call AttributeLoad NameLoad attr Str NameLoad Return Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If CompareIs NameLoad NameLoad body TryExcept body Assign NameStore Call NameLoad handlers ExceptHandler body Raise Call NameLoad Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign TupleStore NameStore NameStore Call NameLoad NameLoad NameLoad NameLoad NameLoad Return TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad Call AttributeLoad Str attr Call AttributeLoad NameLoad attr attr Str Assign NameStore SubscriptLoad NameLoad Slice Num Expr Call AttributeLoad NameLoad attr Call NameLoad SubscriptLoad NameLoad Index Num Assign NameStore BinOpMult BinOpAdd Call NameLoad SubscriptLoad NameLoad Index Num BinOpDiv Call NameLoad SubscriptLoad NameLoad Index Num Num BinOpSub BinOpMult Num CompareEq SubscriptLoad NameLoad Index Num Str Num Assign NameStore BinOpMult BinOpAdd Call NameLoad SubscriptLoad NameLoad Index Num BinOpDiv Call NameLoad SubscriptLoad NameLoad Index Num Num BinOpSub BinOpMult Num CompareEq SubscriptLoad NameLoad Index Num Str Num Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad SubscriptLoad NameLoad Index Num Assign NameStore Call NameLoad Call NameLoad Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign NameStore Num Assign NameStore ListLoad With Call NameLoad NameLoad NameStore body Assign NameStore Num For NameStore NameLoad body If CompareNotEq NameLoad Num body Assign NameStore Call NameLoad NameLoad NameLoad AugAssignSub NameStore Num Continue Assign NameStore Num Assign NameStore ListLoad For NameStore Call AttributeLoad NameLoad attr Str body If CompareEq NameLoad Str body Continue Assign NameStore Call NameLoad SubscriptLoad Call AttributeLoad NameLoad attr Str NameLoad Index Num Assign NameStore SubscriptLoad NameLoad Slice NameLoad BinOpAdd NameLoad NameLoad Assign NameStore BinOpAdd NameLoad NameLoad If CompareEq SubscriptLoad NameLoad Index Num Str body TryExcept body Assign NameStore Call NameLoad NameLoad handlers ExceptHandler body Raise Call NameLoad BinOpAdd BinOpAdd BinOpAdd BinOpAdd Str NameLoad Str NameLoad Str orelse If CompareEq SubscriptLoad NameLoad Index Num Str body TryExcept body Assign NameStore Call NameLoad NameLoad handlers ExceptHandler body Raise Call NameLoad BinOpAdd BinOpAdd BinOpAdd BinOpAdd Str NameLoad Str NameLoad Str orelse Raise Call NameLoad BinOpAdd BinOpAdd BinOpAdd BinOpAdd Str NameLoad Str NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad If CompareEq NameLoad Num body Assign NameStore ListLoad NameLoad Assign NameStore BinOpAdd SubscriptLoad NameLoad Index Num Num Assign NameStore Num orelse Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr keyword Call NameLoad NameLoad keyword Call NameLoad SubscriptLoad NameLoad Index Num keyword Call NameLoad SubscriptLoad NameLoad Index Num keyword BinOpSub Call NameLoad SubscriptLoad NameLoad Index Num Num Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword Call AttributeLoad NameLoad attr Str attr Call NameLoad BinOpMult SubscriptLoad NameLoad Index Str Num Return TupleLoad NameLoad NameLoad decorator_list
N/A N/A 
Import functions for TMY2 and TMY3 data files.
 N/A logging N/A pvl_logger N/A N/A logging getLogger pvlib N/A re N/A datetime N/A dateutil N/A io N/A N/A urllib2 urlopen N/A N/A N/A ImportError N/A urllib.request urlopen N/A pandas pd N/A numpy np pvlib tools readtmy3 N/A N/A filename coerce_year recolumn N/A None None True N/A N/A 
    Read a TMY3 file in to a pandas dataframe.

    Note that values contained in the metadata dictionary are 
    unchanged from the TMY3 file (i.e. units 
    are retained). In the case of any discrepencies between this
    documentation and the TMY3 User's Manual [1], the TMY3 User's Manual
    takes precedence.

    Parameters
    ----------
    filename : None or string
        If None, attempts to use a Tkinter file browser.
        A string can be a relative file path, absolute file path,
        or url.
    
    coerce_year : None or int
        If supplied, the year of the data will be set to this value.
    
    recolumn : bool
        If True, apply standard names to TMY3 columns.
        Typically this results in stripping the units from the column name.
        
    Returns
    -------
    Tuple of the form (data, metadata).
    
    data : DataFrame
        A pandas dataframe with the columns described in the table below. 
        For more detailed descriptions of each component, please consult
        the TMY3 User's Manual ([1]), especially tables 1-1 through 1-6. 

    metadata : dict
        The site metadata available in the file.

    Notes
    -----

    The returned structures have the following fields.
    
    ===============   ======  ===================  
    key               format  description
    ===============   ======  ===================  
    altitude          Float   site elevation
    latitude          Float   site latitudeitude
    longitude         Float   site longitudeitude
    Name              String  site name
    State             String  state
    TZ                Float   UTC offset
    USAF              Int     USAF identifier
    ===============   ======  ===================  

    =============================       ======================================================================================================================================================
    TMYData field                       description
    =============================       ======================================================================================================================================================
    TMYData.Index                       A pandas datetime index. NOTE, the index is currently timezone unaware, and times are set to local standard time (daylight savings is not indcluded)
    TMYData.ETR                         Extraterrestrial horizontal radiation recv'd during 60 minutes prior to timestamp, Wh/m^2
    TMYData.ETRN                        Extraterrestrial normal radiation recv'd during 60 minutes prior to timestamp, Wh/m^2
    TMYData.GHI                         Direct and diffuse horizontal radiation recv'd during 60 minutes prior to timestamp, Wh/m^2
    TMYData.GHISource                   See [1], Table 1-4
    TMYData.GHIUncertainty              Uncertainty based on random and bias error estimates                        see [2]
    TMYData.DNI                         Amount of direct normal radiation (modeled) recv'd during 60 mintues prior to timestamp, Wh/m^2
    TMYData.DNISource                   See [1], Table 1-4
    TMYData.DNIUncertainty              Uncertainty based on random and bias error estimates                        see [2]
    TMYData.DHI                         Amount of diffuse horizontal radiation recv'd during 60 minutes prior to timestamp, Wh/m^2
    TMYData.DHISource                   See [1], Table 1-4
    TMYData.DHIUncertainty              Uncertainty based on random and bias error estimates                        see [2]
    TMYData.GHillum                     Avg. total horizontal illuminance recv'd during the 60 minutes prior to timestamp, lx
    TMYData.GHillumSource               See [1], Table 1-4
    TMYData.GHillumUncertainty          Uncertainty based on random and bias error estimates                        see [2]
    TMYData.DNillum                     Avg. direct normal illuminance recv'd during the 60 minutes prior to timestamp, lx
    TMYData.DNillumSource               See [1], Table 1-4
    TMYData.DNillumUncertainty          Uncertainty based on random and bias error estimates                        see [2]
    TMYData.DHillum                     Avg. horizontal diffuse illuminance recv'd during the 60 minutes prior to timestamp, lx
    TMYData.DHillumSource               See [1], Table 1-4
    TMYData.DHillumUncertainty          Uncertainty based on random and bias error estimates                        see [2]
    TMYData.Zenithlum                   Avg. luminance at the sky's zenith during the 60 minutes prior to timestamp, cd/m^2
    TMYData.ZenithlumSource             See [1], Table 1-4
    TMYData.ZenithlumUncertainty        Uncertainty based on random and bias error estimates                        see [1] section 2.10
    TMYData.TotCld                      Amount of sky dome covered by clouds or obscuring phenonema at time stamp, tenths of sky
    TMYData.TotCldSource                See [1], Table 1-5, 8760x1 cell array of strings
    TMYData.TotCldUnertainty            See [1], Table 1-6
    TMYData.OpqCld                      Amount of sky dome covered by clouds or obscuring phenonema that prevent observing the sky at time stamp, tenths of sky
    TMYData.OpqCldSource                See [1], Table 1-5, 8760x1 cell array of strings
    TMYData.OpqCldUncertainty           See [1], Table 1-6
    TMYData.DryBulb                     Dry bulb temperature at the time indicated, deg C
    TMYData.DryBulbSource               See [1], Table 1-5, 8760x1 cell array of strings
    TMYData.DryBulbUncertainty          See [1], Table 1-6
    TMYData.DewPoint                    Dew-point temperature at the time indicated, deg C
    TMYData.DewPointSource              See [1], Table 1-5, 8760x1 cell array of strings
    TMYData.DewPointUncertainty         See [1], Table 1-6
    TMYData.RHum                        Relatitudeive humidity at the time indicated, percent
    TMYData.RHumSource                  See [1], Table 1-5, 8760x1 cell array of strings
    TMYData.RHumUncertainty             See [1], Table 1-6
    TMYData.Pressure                    Station pressure at the time indicated, 1 mbar
    TMYData.PressureSource              See [1], Table 1-5, 8760x1 cell array of strings
    TMYData.PressureUncertainty         See [1], Table 1-6
    TMYData.Wdir                        Wind direction at time indicated, degrees from north (360 = north; 0 = undefined,calm) 
    TMYData.WdirSource                  See [1], Table 1-5, 8760x1 cell array of strings
    TMYData.WdirUncertainty             See [1], Table 1-6
    TMYData.Wspd                        Wind speed at the time indicated, meter/second
    TMYData.WspdSource                  See [1], Table 1-5, 8760x1 cell array of strings
    TMYData.WspdUncertainty             See [1], Table 1-6
    TMYData.Hvis                        Distance to discernable remote objects at time indicated (7777=unlimited), meter
    TMYData.HvisSource                  See [1], Table 1-5, 8760x1 cell array of strings
    TMYData.HvisUncertainty             See [1], Table 1-6
    TMYData.CeilHgt                     Height of cloud base above local terrain (7777=unlimited), meter
    TMYData.CeilHgtSource               See [1], Table 1-5, 8760x1 cell array of strings
    TMYData.CeilHgtUncertainty          See [1], Table 1-6
    TMYData.Pwat                        Total precipitable water contained in a column of unit cross section from earth to top of atmosphere, cm
    TMYData.PwatSource                  See [1], Table 1-5, 8760x1 cell array of strings
    TMYData.PwatUncertainty             See [1], Table 1-6
    TMYData.AOD                         The broadband aerosol optical depth per unit of air mass due to extinction by aerosol component of atmosphere, unitless
    TMYData.AODSource                   See [1], Table 1-5, 8760x1 cell array of strings
    TMYData.AODUncertainty              See [1], Table 1-6
    TMYData.Alb                         The ratio of reflected solar irradiance to global horizontal irradiance, unitless
    TMYData.AlbSource                   See [1], Table 1-5, 8760x1 cell array of strings
    TMYData.AlbUncertainty              See [1], Table 1-6
    TMYData.Lprecipdepth                The amount of liquid precipitation observed at indicated time for the period indicated in the liquid precipitation quantity field, millimeter
    TMYData.Lprecipquantity             The period of accumulatitudeion for the liquid precipitation depth field, hour
    TMYData.LprecipSource               See [1], Table 1-5, 8760x1 cell array of strings
    TMYData.LprecipUncertainty          See [1], Table 1-6
    =============================       ======================================================================================================================================================  

    References
    ----------

    [1] Wilcox, S and Marion, W. "Users Manual for TMY3 Data Sets".
    NREL/TP-581-43156, Revised May 2008.

    [2] Wilcox, S. (2007). National Solar Radiation Database 1991 2005 
    Update: Users Manual. 472 pp.; NREL Report No. TP-581-41364.
     N/A N/A filename None N/A N/A N/A N/A filename N/A _interactive_load N/A N/A N/A N/A N/A Exception Interactive load failed. Tkinter not supported on this system. Try installing X-Quartz and reloading N/A head N/A USAF Name State TZ latitude longitude altitude N/A N/A N/A csvdata N/A open filename r N/A N/A N/A IOError N/A N/A response N/A urlopen filename N/A csvdata N/A N/A io StringIO N/A N/A N/A N/A response read decode errors ignore N/A meta N/A dict N/A zip head N/A N/A N/A N/A N/A N/A csvdata readline rstrip split , N/A N/A meta N/A altitude N/A float N/A meta N/A altitude N/A N/A meta N/A latitude N/A float N/A meta N/A latitude N/A N/A meta N/A longitude N/A float N/A meta N/A longitude N/A N/A meta N/A TZ N/A float N/A meta N/A TZ N/A N/A meta N/A USAF N/A int N/A meta N/A USAF N/A TMYData N/A N/A pd read_csv filename header 1 parse_dates N/A datetime N/A Date (MM/DD/YYYY) Time (HH:MM) date_parser N/A N/A N/A N/A x N/A _parsedate year coerce_year x index_col datetime N/A recolumn N/A N/A N/A _recolumn TMYData N/A TMYData N/A N/A TMYData tz_localize N/A int N/A N/A meta N/A TZ 3600 N/A N/A TMYData meta N/A _interactive_load N/A N/A N/A N/A N/A Tkinter tkFileDialog askopenfilename N/A N/A N/A N/A N/A Tkinter Tk withdraw N/A N/A askopenfilename N/A _parsedate N/A N/A ymd hour year N/A None N/A N/A offset_hour N/A N/A int N/A hour N/A 2 1 N/A offset_datetime N/A N/A {} {}:00 format ymd offset_hour N/A offset_date N/A N/A N/A dateutil parser parse offset_datetime N/A true_date N/A offset_date N/A N/A N/A dateutil relativedelta relativedelta hours 1 N/A N/A year None N/A N/A true_date N/A N/A true_date replace year year N/A true_date N/A _recolumn N/A N/A tmy3_dataframe inplace N/A True N/A N/A 
    Rename the columns of the TMY3 DataFrame.
    
    Parameters
    ----------
    tmy3_dataframe : DataFrame
    inplace : bool
        passed to DataFrame.rename()
    
    Returns
    -------
    Recolumned DataFrame.
     N/A raw_columns ETR (W/m^2),ETRN (W/m^2),GHI (W/m^2),GHI source,GHI uncert (%),DNI (W/m^2),DNI source,DNI uncert (%),DHI (W/m^2),DHI source,DHI uncert (%),GH illum (lx),GH illum source,Global illum uncert (%),DN illum (lx),DN illum source,DN illum uncert (%),DH illum (lx),DH illum source,DH illum uncert (%),Zenith lum (cd/m^2),Zenith lum source,Zenith lum uncert (%),TotCld (tenths),TotCld source,TotCld uncert (code),OpqCld (tenths),OpqCld source,OpqCld uncert (code),Dry-bulb (C),Dry-bulb source,Dry-bulb uncert (code),Dew-point (C),Dew-point source,Dew-point uncert (code),RHum (%),RHum source,RHum uncert (code),Pressure (mbar),Pressure source,Pressure uncert (code),Wdir (degrees),Wdir source,Wdir uncert (code),Wspd (m/s),Wspd source,Wspd uncert (code),Hvis (m),Hvis source,Hvis uncert (code),CeilHgt (m),CeilHgt source,CeilHgt uncert (code),Pwat (cm),Pwat source,Pwat uncert (code),AOD (unitless),AOD source,AOD uncert (code),Alb (unitless),Alb source,Alb uncert (code),Lprecip depth (mm),Lprecip quantity (hr),Lprecip source,Lprecip uncert (code),PresWth (METAR code),PresWth source,PresWth uncert (code) N/A new_columns N/A ETR ETRN GHI GHISource GHIUncertainty DNI DNISource DNIUncertainty DHI DHISource DHIUncertainty GHillum GHillumSource GHillumUncertainty DNillum DNillumSource DNillumUncertainty DHillum DHillumSource DHillumUncertainty Zenithlum ZenithlumSource ZenithlumUncertainty TotCld TotCldSource TotCldUnertainty OpqCld OpqCldSource OpqCldUncertainty DryBulb DryBulbSource DryBulbUncertainty DewPoint DewPointSource DewPointUncertainty RHum RHumSource RHumUncertainty Pressure PressureSource PressureUncertainty Wdir WdirSource WdirUncertainty Wspd WspdSource WspdUncertainty Hvis HvisSource HvisUncertainty CeilHgt CeilHgtSource CeilHgtUncertainty Pwat PwatSource PwatUncertainty AOD AODSource AODUncertainty Alb AlbSource AlbUncertainty Lprecipdepth Lprecipquantity LprecipSource LprecipUncertainty PresWth PresWth source PresWth uncert N/A mapping N/A dict N/A zip N/A N/A raw_columns split , new_columns N/A N/A N/A tmy3_dataframe rename columns mapping inplace True N/A readtmy2 N/A N/A filename N/A N/A N/A 
    Read a TMY2 file in to a DataFrame.

    Note that values contained in the DataFrame are unchanged from the TMY2 
    file (i.e. units  are retained). Time/Date and location data imported from the 
    TMY2 file have been modified to a "friendlier" form conforming to modern
    conventions (e.g. N latitude is postive, E longitude is positive, the
    "24th" hour of any day is technically the "0th" hour of the next day).
    In the case of any discrepencies between this documentation and the 
    TMY2 User's Manual [1], the TMY2 User's Manual takes precedence.

    Parameters
    ----------
    filename : None or string
        If None, attempts to use a Tkinter file browser.
        A string can be a relative file path, absolute file path,
        or url.

    Returns
    -------
    Tuple of the form (data, metadata).
    
    data : DataFrame 
        A dataframe with the columns described in the table below.
        For a more detailed descriptions of each component, please consult
        the TMY2 User's Manual ([1]), especially tables 3-1 through 3-6, and 
        Appendix B. 

    metadata : dict
        The site metadata available in the file.

    Notes
    -----

    The returned structures have the following fields.

    =============    ==================================
    key              description
    =============    ==================================
    WBAN             Site identifier code (WBAN number)
    City             Station name
    State            Station state 2 letter designator
    TZ               Hours from Greenwich
    latitude         Latitude in decimal degrees
    longitude        Longitude in decimal degrees
    altitude         Site elevation in meters
    =============    ==================================

    ============================   ==========================================================================================================================================================================
    TMYData field                   description
    ============================   ==========================================================================================================================================================================
    index                           Pandas timeseries object containing timestamps
    year                              
    month                            
    day                   
    hour
    ETR                             Extraterrestrial horizontal radiation recv'd during 60 minutes prior to timestamp, Wh/m^2
    ETRN                            Extraterrestrial normal radiation recv'd during 60 minutes prior to timestamp, Wh/m^2
    GHI                             Direct and diffuse horizontal radiation recv'd during 60 minutes prior to timestamp, Wh/m^2
    GHISource                       See [1], Table 3-3
    GHIUncertainty                  See [1], Table 3-4
    DNI                             Amount of direct normal radiation (modeled) recv'd during 60 mintues prior to timestamp, Wh/m^2
    DNISource                       See [1], Table 3-3
    DNIUncertainty                  See [1], Table 3-4
    DHI                             Amount of diffuse horizontal radiation recv'd during 60 minutes prior to timestamp, Wh/m^2
    DHISource                       See [1], Table 3-3
    DHIUncertainty                  See [1], Table 3-4
    GHillum                         Avg. total horizontal illuminance recv'd during the 60 minutes prior to timestamp, units of 100 lux (e.g. value of 50 = 5000 lux)
    GHillumSource                   See [1], Table 3-3
    GHillumUncertainty              See [1], Table 3-4
    DNillum                         Avg. direct normal illuminance recv'd during the 60 minutes prior to timestamp, units of 100 lux
    DNillumSource                   See [1], Table 3-3
    DNillumUncertainty              See [1], Table 3-4
    DHillum                         Avg. horizontal diffuse illuminance recv'd during the 60 minutes prior to timestamp, units of 100 lux
    DHillumSource                   See [1], Table 3-3
    DHillumUncertainty              See [1], Table 3-4
    Zenithlum                       Avg. luminance at the sky's zenith during the 60 minutes prior to timestamp, units of 10 Cd/m^2 (e.g. value of 700 = 7,000 Cd/m^2)
    ZenithlumSource                 See [1], Table 3-3
    ZenithlumUncertainty            See [1], Table 3-4
    TotCld                          Amount of sky dome covered by clouds or obscuring phenonema at time stamp, tenths of sky
    TotCldSource                    See [1], Table 3-5, 8760x1 cell array of strings
    TotCldUnertainty                See [1], Table 3-6
    OpqCld                          Amount of sky dome covered by clouds or obscuring phenonema that prevent observing the sky at time stamp, tenths of sky
    OpqCldSource                    See [1], Table 3-5, 8760x1 cell array of strings
    OpqCldUncertainty               See [1], Table 3-6
    DryBulb                         Dry bulb temperature at the time indicated, in tenths of degree C (e.g. 352 = 35.2 C).
    DryBulbSource                   See [1], Table 3-5, 8760x1 cell array of strings
    DryBulbUncertainty              See [1], Table 3-6
    DewPoint                        Dew-point temperature at the time indicated, in tenths of degree C (e.g. 76 = 7.6 C).
    DewPointSource                  See [1], Table 3-5, 8760x1 cell array of strings
    DewPointUncertainty             See [1], Table 3-6
    RHum                            Relative humidity at the time indicated, percent
    RHumSource                      See [1], Table 3-5, 8760x1 cell array of strings
    RHumUncertainty                 See [1], Table 3-6
    Pressure                        Station pressure at the time indicated, 1 mbar
    PressureSource                  See [1], Table 3-5, 8760x1 cell array of strings
    PressureUncertainty             See [1], Table 3-6
    Wdir                            Wind direction at time indicated, degrees from east of north (360 = 0 = north; 90 = East; 0 = undefined,calm) 
    WdirSource                      See [1], Table 3-5, 8760x1 cell array of strings
    WdirUncertainty                 See [1], Table 3-6
    Wspd                            Wind speed at the time indicated, in tenths of meters/second (e.g. 212 = 21.2 m/s)
    WspdSource                      See [1], Table 3-5, 8760x1 cell array of strings
    WspdUncertainty                 See [1], Table 3-6
    Hvis                            Distance to discernable remote objects at time indicated (7777=unlimited, 9999=missing data), in tenths of kilometers (e.g. 341 = 34.1 km).
    HvisSource                      See [1], Table 3-5, 8760x1 cell array of strings
    HvisUncertainty                 See [1], Table 3-6
    CeilHgt                         Height of cloud base above local terrain (7777=unlimited, 88888=cirroform, 99999=missing data), in meters
    CeilHgtSource                   See [1], Table 3-5, 8760x1 cell array of strings
    CeilHgtUncertainty              See [1], Table 3-6
    Pwat                            Total precipitable water contained in a column of unit cross section from Earth to top of atmosphere, in millimeters
    PwatSource                      See [1], Table 3-5, 8760x1 cell array of strings
    PwatUncertainty                 See [1], Table 3-6
    AOD                             The broadband aerosol optical depth (broadband turbidity) in thousandths on the day indicated (e.g. 114 = 0.114)
    AODSource                       See [1], Table 3-5, 8760x1 cell array of strings
    AODUncertainty                  See [1], Table 3-6
    SnowDepth                       Snow depth in centimeters on the day indicated, (999 = missing data).
    SnowDepthSource                 See [1], Table 3-5, 8760x1 cell array of strings
    SnowDepthUncertainty            See [1], Table 3-6
    LastSnowfall                    Number of days since last snowfall (maximum value of 88, where 88 = 88 or greater days; 99 = missing data)
    LastSnowfallSource              See [1], Table 3-5, 8760x1 cell array of strings
    LastSnowfallUncertainty         See [1], Table 3-6
    PresentWeather                  See [1], Appendix B, an 8760x1 cell array of strings. Each string contains 10 numeric values. The string can be parsed to determine each of 10 observed weather metrics.
    ============================   ==========================================================================================================================================================================

    References
    ----------

    [1] Marion, W and Urban, K. "Wilcox, S and Marion, W. "User's Manual
    for TMY2s". NREL 1995.
     N/A N/A filename None N/A N/A N/A N/A filename N/A _interactive_load N/A N/A N/A N/A N/A Exception Interactive load failed. Tkinter not supported on this system. Try installing X-Quartz and reloading N/A string %2d%2d%2d%2d%4d%4d%4d%1s%1d%4d%1s%1d%4d%1s%1d%4d%1s%1d%4d%1s%1d%4d%1s%1d%4d%1s%1d%2d%1s%1d%2d%1s%1d%4d%1s%1d%4d%1s%1d%3d%1s%1d%4d%1s%1d%3d%1s%1d%3d%1s%1d%4d%1s%1d%5d%1s%1d%10d%3d%1s%1d%3d%1s%1d%3d%1s%1d%2d%1s%1d N/A columns year,month,day,hour,ETR,ETRN,GHI,GHISource,GHIUncertainty,DNI,DNISource,DNIUncertainty,DHI,DHISource,DHIUncertainty,GHillum,GHillumSource,GHillumUncertainty,DNillum,DNillumSource,DNillumUncertainty,DHillum,DHillumSource,DHillumUncertainty,Zenithlum,ZenithlumSource,ZenithlumUncertainty,TotCld,TotCldSource,TotCldUnertainty,OpqCld,OpqCldSource,OpqCldUncertainty,DryBulb,DryBulbSource,DryBulbUncertainty,DewPoint,DewPointSource,DewPointUncertainty,RHum,RHumSource,RHumUncertainty,Pressure,PressureSource,PressureUncertainty,Wdir,WdirSource,WdirUncertainty,Wspd,WspdSource,WspdUncertainty,Hvis,HvisSource,HvisUncertainty,CeilHgt,CeilHgtSource,CeilHgtUncertainty,PresentWeather,Pwat,PwatSource,PwatUncertainty,AOD,AODSource,AODUncertainty,SnowDepth,SnowDepthSource,SnowDepthUncertainty,LastSnowfall,LastSnowfallSource,LastSnowfallUncertaint N/A hdr_columns WBAN,City,State,TZ,latitude,longitude,altitude N/A N/A TMY2 TMY2_meta N/A _readTMY2 string columns hdr_columns filename N/A N/A TMY2 TMY2_meta N/A _parsemeta_tmy2 N/A N/A columns line N/A N/A N/A Retrieves metadata from the top line of the tmy2 file.

    Parameters
    ----------

    columns : string
        String of column headings in the header

    line : string
        Header string containing DataFrame

    Returns
    -------

    meta : Dict of metadata contained in the header string

     N/A rawmeta N/A N/A N/A N/A join N/A N/A line split split N/A meta N/A rawmeta N/A 3 N/A N/A N/A meta append N/A int N/A rawmeta N/A 3 N/A longitude N/A N/A N/A float N/A rawmeta N/A 5 N/A N/A float N/A rawmeta N/A 6 60 N/A N/A 2 N/A N/A rawmeta N/A 4 N 1 N/A latitude N/A N/A N/A float N/A rawmeta N/A 8 N/A N/A float N/A rawmeta N/A 9 60 N/A N/A 2 N/A N/A rawmeta N/A 7 E 1 N/A N/A N/A meta append longitude N/A N/A N/A meta append latitude N/A N/A N/A meta append N/A float N/A rawmeta N/A 10 N/A meta_dict N/A dict N/A zip N/A N/A columns split , meta N/A N/A N/A pvl_logger debug meta: %s meta_dict N/A meta_dict N/A _readTMY2 N/A N/A string columns hdr_columns fname N/A N/A N/A head 1 N/A date N/A N/A N/A open fname infile N/A N/A fline 0 N/A line infile N/A N/A N/A head 0 N/A N/A meta N/A _parsemeta_tmy2 hdr_columns line N/A head 1 N/A N/A cursor 1 N/A part N/A N/A marker N/A N/A string split % N/A N/A N/A marker N/A N/A N/A increment N/A int N/A N/A N/A re findall \d+ marker N/A 0 N/A val N/A line N/A cursor N/A cursor increment N/A cursor N/A cursor increment N/A N/A N/A marker N/A -1 d N/A N/A N/A N/A val N/A float val N/A N/A N/A N/A N/A Exception N/A N/A N/A N/A WARNING: In __name__  Read value is not an integer"  val  "  N/A N/A N/A N/A marker N/A -1 s N/A N/A N/A N/A val N/A str val N/A N/A N/A N/A N/A Exception N/A N/A N/A N/A WARNING: In __name__  Read value is not a string"  val  "  N/A N/A N/A Exception N/A N/A N/A N/A WARNING: In __name__ Improper column DataFrameure " % marker  "  N/A N/A N/A part append val N/A N/A fline 0 N/A N/A axes N/A part N/A year N/A N/A part N/A 0 1900 N/A fline 1 N/A N/A N/A N/A axes append part N/A N/A N/A date append N/A N/A datetime datetime year N/A int year month N/A int N/A part N/A 1 day N/A int N/A part N/A 2 hour N/A N/A int N/A part N/A 3 1 N/A TMYData N/A N/A N/A N/A pd DataFrame axes index date columns N/A N/A columns split , tz_localize N/A int N/A N/A meta N/A TZ 3600 N/A N/A TMYData meta N/A