Skip to content

Solar Resource File Converter Macro - SolarAnywhere Snow Depth Conversion #568

@KWagnerCPR

Description

@KWagnerCPR

Describe the bug
SAM simulations expect snow depth data to be in units of cm for simulations. SolarAnywhere snow depth data is provided in units of meters. The Solar Resource File Converter macro seems to divide SolarAnywhere snow depth by 100 rather than multiplying it by 100 to get it into centimeters. This results is snow loss estimates of 0% in simulations using SolarAnywhere files at snowy locations where you would expect some percentage of snow losses.

To Reproduce
Steps to reproduce the behavior:

  1. Obtain a SolarAnywhere format time series file from a snowy location that includes the snow depth field (There is one attached here).
    Green Valley, SD SolarAnywhere Time Series 20200101 to 20210102 Lat_44_065 Lon_-97_655 SA format.zip
  2. Open a new project in SAM.
  3. In the bottom left corner, select Macros. Select Solar Resource File Converter from the list, then select SolarAnywhere from the
    Weather file format drop down in the top right corner.
  4. Select Run macro and choose your SolarAnywhere file.
  5. Go back into the project in SAM. In the "Location and Resource" section select the samcsv you just created.
  6. In the "Shading and Layout" section, check the box next to "Estimate snow losses" at the bottom.
  7. Run the simulation (can just use all the defaults and select the box for "Estimate Subarray 1 configuration" in the system design section).
  8. Go into the losses section of the results. You'll notice that there will be 0% losses from snow.

Expected behavior
You would expect to see some percentage of the total system losses be attributed to snow losses. Additionally, when you open a samcsv converted SolarAnywhere file, you'd expect to see the snow values be the original values * 100, but they are instead the original values/100.

Screenshots
Original SolarAnywhere file snow depth:
image

Samcsv converted file snow depth:
image

Operating System and Version

  • OS: Windows
  • Version: SAM 2020.11.29

Additional context
No additional context. Thanks!

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions