pvl_readtmy3

Read a Typical Meteological Year 3 (TMY3) file to a MATLAB struct.

Contents

Syntax

TMYData = pvl_readtmy3()

TMYData = pvl_readtmy3(FileName)

Description

Read a TMY3 file and make a struct of the data. Note that values contained in the struct 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.

Inputs

Output

Example

pvl_readtmy3('723650TY.csv')
ans = 

  struct with fields:

              DateString: {8760×1 cell}
              TimeString: {8760×1 cell}
                     ETR: [8760×1 double]
                    ETRN: [8760×1 double]
                     GHI: [8760×1 double]
               GHISource: [8760×1 double]
          GHIUncertainty: [8760×1 double]
                     DNI: [8760×1 double]
               DNISource: [8760×1 double]
          DNIUncertainty: [8760×1 double]
                     DHI: [8760×1 double]
               DHISource: [8760×1 double]
          DHIUncertainty: [8760×1 double]
                 GHillum: [8760×1 double]
           GHillumSource: [8760×1 double]
      GHillumUncertainty: [8760×1 double]
                 DNillum: [8760×1 double]
           DNillumSource: [8760×1 double]
      DNillumUncertainty: [8760×1 double]
                 DHillum: [8760×1 double]
           DHillumSource: [8760×1 double]
      DHillumUncertainty: [8760×1 double]
               Zenithlum: [8760×1 double]
         ZenithlumSource: [8760×1 double]
    ZenithlumUncertainty: [8760×1 double]
                  TotCld: [8760×1 double]
            TotCldSource: {8760×1 cell}
        TotCldUnertainty: [8760×1 double]
                  OpqCld: [8760×1 double]
            OpqCldSource: {8760×1 cell}
       OpqCldUncertainty: [8760×1 double]
                 DryBulb: [8760×1 double]
           DryBulbSource: {8760×1 cell}
      DryBulbUncertainty: [8760×1 double]
                DewPoint: [8760×1 double]
          DewPointSource: {8760×1 cell}
     DewPointUncertainty: [8760×1 double]
                    RHum: [8760×1 double]
              RHumSource: {8760×1 cell}
         RHumUncertainty: [8760×1 double]
                Pressure: [8760×1 double]
          PressureSource: {8760×1 cell}
     PressureUncertainty: [8760×1 double]
                    Wdir: [8760×1 double]
              WdirSource: {8760×1 cell}
         WdirUncertainty: [8760×1 double]
                    Wspd: [8760×1 double]
              WspdSource: {8760×1 cell}
         WspdUncertainty: [8760×1 double]
                    Hvis: [8760×1 double]
              HvisSource: {8760×1 cell}
         HvisUncertainty: [8760×1 double]
                 CeilHgt: [8760×1 double]
           CeilHgtSource: {8760×1 cell}
      CeilHgtUncertainty: [8760×1 double]
                    Pwat: [8760×1 double]
              PwatSource: {8760×1 cell}
         PwatUncertainty: [8760×1 double]
                     AOD: [8760×1 double]
               AODSource: {8760×1 cell}
          AODUncertainty: [8760×1 double]
                     Alb: [8760×1 double]
               AlbSource: {8760×1 cell}
          AlbUncertainty: [8760×1 double]
            Lprecipdepth: [8760×1 double]
         Lprecipquantity: [8760×1 double]
           LprecipSource: {8760×1 cell}
      LprecipUncertainty: [8760×1 double]
              DateNumber: [8760×1 double]
                  SiteID: 723650
             StationName: {'ALBUQUERQUE INTL ARPT [ISIS]'}
            StationState: {'NM'}
            SiteTimeZone: -7
            SiteLatitude: 35.0400
           SiteLongitude: -106.6200
           SiteElevation: 1619

References

[1] Wilcox, S and Marion, W., 2008. Users Manual for TMY3 Data Sets, NREL/TP-581-43156, National Renewable Energy Laboratory. Available at http://www.nrel.gov/docs/fy08osti/43156.pdf.

See Also

pvl_makelocationstruct , pvl_maketimestruct

Copyright 2014 Sandia National Laboratories