You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Saves a dataframe with weather data from pvlib format on SAM-friendly format.
8
+
9
+
Parameters
10
+
-----------
11
+
data : pandas.DataFrame
12
+
timeseries data in PVLib format. Should be TZ converted (not UTC). Ideally it is one sequential year data; if not suggested to use standardSAM = False.
13
+
metdata : dictionary
14
+
Dictionary with at least 'latitude', 'longitude', 'elevation', 'source', and 'TZ' for timezone.
15
+
savefile : str
16
+
Name of file to save output as.
17
+
standardSAM : boolean
18
+
This checks the dataframe to avoid having a leap day, then averages it to SAM style (closed to the right),
19
+
and fills the years so it starst on YEAR/1/1 0:0 and ends on YEAR/12/31 23:00.
20
+
includeminute ; Bool
21
+
For hourly data, if SAM input does not have Minutes, it calculates the sun position 30 minutes
22
+
prior to the hour (i.e. 12 timestamp means sun position at 11:30)
23
+
If minutes are included, it will calculate the sun position at the time of the timestamp (12:00 at 12:00)
24
+
Set to true if resolution of data is sub-hourly.
25
+
26
+
Returns
27
+
-------
28
+
Nothing, it just writes the file.
29
+
30
+
"""
31
+
32
+
def_is_leap_and_29Feb(s):
33
+
''' Creates a mask to help remove Leap Years. Obtained from:
0 commit comments