A SAM weather file is a text file that contains data describing the solar, wind, or marine energy resource at a particular location for a period of one year. SAM uses the following weather file formats:
•SRW format for wind (this is an old format, please use the SAM CSV format for wind)
For a description of how the different performance models use weather data, see Weather Data Elements.
You can use a spreadsheet program, text editor, or other software to create your own SAM weather file using data from a resource measurement program, meteorological stations, or other sources.
Other Weather File Formats
SAM can read solar resource data from files in the TMY3 and TMY2 legacy formats from the NREL National Solar Radiation Database (NSRDB). These older formats are from datasets that have been replaced by the latest NSRDB PSM datasets. SAM can also read weather files in the EPW format developed for the Energy Plus software.
Note. You can use SAM's Weather File Converter macro to convert from these and other weather file formats including PVsyst CSV, PVGIS 5 CSV, and SolarAnywhere to the SAM CSV format.
•The TMY3 file format is a comma-delimited text format with the extension .csv developed for the NSRDB 1991-2005 dataset. The first row of a TMY3 file stores data describing the location's name, and the geographic coordinates, time zone, and elevation above sea level data required for sun angle calculations. The second row stores the column headings showing units for each data element. Rows 3-8762 store weather data elements used by SAM's performance models. Many of the data elements are not used by the SAM performance models. Note. Opening and saving a TMY3 file in Excel can cause formatting changes that renders the file unreadable by SAM's weather file reader. Use SAM's time series data viewer to explore the data without modifying it, or to export it to CSV or Excel files. For a complete description of the TMY3 file format, see the TMY3 user's manual (PDF 1.7 MB).
•The TMY2 file format is a text format with the extension .tm2 developed for the NSRDB 1961-1990 dataset. The TMY2 format is not delimited, which makes the data in the text file difficult to read. You can use SAM's time series data viewer to examine and export the data in a TMY2 file. For a description of the format see the TMY2 user's manual.
•The EPW file format was developed for the U.S. Department of Energy's EnergyPlus building simulation model. EPW files store comma-delimited data, and use the extension .epw. The first eight rows of a file in EPW format stores header data. SAM's performance models use only the latitude, longitude, elevation, and time zone data from the header to calculate solar angles. The remaining 8,760 rows store weather data used by the SAM performance models and other data describing the quality of the data that SAM ignores. For more details about the EPW format see the Weather Data Format Definition page.