Skip to content

Instantly share code, notes, and snippets.

View mikofski's full-sized avatar
😎
Solving solar

Mark Mikofski mikofski

😎
Solving solar
View GitHub Profile
import os
import pvlib
import pandas as pd
from matplotlib import pyplot as plt
import seaborn as sns
sns.set()
plt.ion()
INVERTERS = pvlib.pvsystem.retrieve_sam('CECInverter')
INVERTER_10K = INVERTERS['SMA_America__SB10000TL_US__240V_']
@mikofski
mikofski / dualtilt.ipynb
Last active October 21, 2020 00:18
Comparison of Dual-Tilt vs. Fixed-Tilt
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mikofski
mikofski / compare_tabular_data.ipynb
Created September 2, 2020 22:42
Python tabular data formats face-off
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
"""
An open PV system specification
"""
import json
import pathlib
import yaml
def get_pv_spec(pv_spec_pathlib_file_or_buffer):
@mikofski
mikofski / dcloss.ipynb
Last active March 24, 2020 03:13
dcloss
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mikofski
mikofski / ny_nsrdb_map.geojson
Last active March 13, 2020 19:36
NSRDB NY STATIONS
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mikofski
mikofski / gh656.ipynb
Last active November 27, 2019 21:28
pvlib_gh656
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mikofski
mikofski / cython_optimize_brentq_benchmark.ipynb
Last active March 11, 2022 21:34
SciPy Cython Optimize Zeros API
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mikofski
mikofski / PV-system-MPP-implicit-solver.ipynb
Last active March 13, 2020 19:02
proof of an implicit solver
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mikofski
mikofski / solpos_mex.c
Last active June 7, 2018 20:50
MATLAB mex gateway function for NREL SOLPOS
/*==========================================================
* solpos.c - NREL solar position calculator
*
* calculates solar position from location and time
*
* The calling syntax is:
*
* angles = solpos(location,datetime,weather)
*
* This is a MEX-file for MATLAB.