@@ -607,16 +607,16 @@ def sapm(module, poa_direct, poa_diffuse, temp_cell, airmass_absolute, aoi):
607607 -------
608608 A DataFrame with the columns:
609609
610- * Isc : Short-circuit current (A)
611- * Imp : Current at the maximum-power point (A)
612- * Voc : Open-circuit voltage (V)
613- * Vmp : Voltage at maximum-power point (V)
614- * Pmp : Power at maximum-power point (W)
615- * Ix : Current at module V = 0.5Voc, defines 4th point on I-V
610+ * i_sc : Short-circuit current (A)
611+ * I_mp : Current at the maximum-power point (A)
612+ * v_oc : Open-circuit voltage (V)
613+ * v_mp : Voltage at maximum-power point (V)
614+ * p_mp : Power at maximum-power point (W)
615+ * i_x : Current at module V = 0.5Voc, defines 4th point on I-V
616616 curve for modeling curve shape
617- * Ixx : Current at module V = 0.5(Voc+Vmp), defines 5th point on
617+ * i_xx : Current at module V = 0.5(Voc+Vmp), defines 5th point on
618618 I-V curve for modeling curve shape
619- * Ee : Effective irradiance
619+ * effective_irradiance : Effective irradiance
620620
621621 Notes
622622 -----
@@ -687,34 +687,34 @@ def sapm(module, poa_direct, poa_diffuse, temp_cell, airmass_absolute, aoi):
687687
688688 dfout = pd .DataFrame (index = Ee .index )
689689
690- dfout ['Isc ' ] = (
690+ dfout ['i_sc ' ] = (
691691 module ['Isco' ] * Ee * (1 + module ['Aisc' ]* (temp_cell - T0 )) )
692692
693- dfout ['Imp ' ] = ( module ['Impo' ] *
693+ dfout ['i_mp ' ] = ( module ['Impo' ] *
694694 (module ['C0' ]* Ee + module ['C1' ]* (Ee ** 2 )) *
695695 (1 + module ['Aimp' ]* (temp_cell - T0 )) )
696696
697- dfout ['Voc ' ] = (( module ['Voco' ] +
697+ dfout ['v_oc ' ] = (( module ['Voco' ] +
698698 module ['#Series' ]* delta * np .log (Ee ) + Bvoco * (temp_cell - T0 ) )
699699 .clip_lower (0 ))
700700
701- dfout ['Vmp ' ] = ( module ['Vmpo' ] +
701+ dfout ['v_mp ' ] = ( module ['Vmpo' ] +
702702 module ['C2' ]* module ['#Series' ]* delta * np .log (Ee ) +
703703 module ['C3' ]* module ['#Series' ]* ((delta * np .log (Ee )) ** 2 ) +
704704 Bvmpo * (temp_cell - T0 ) ).clip_lower (0 )
705705
706- dfout ['Pmp ' ] = dfout ['Imp ' ] * dfout ['Vmp ' ]
706+ dfout ['p_mp ' ] = dfout ['i_mp ' ] * dfout ['v_mp ' ]
707707
708- dfout ['Ix ' ] = ( module ['IXO' ] *
708+ dfout ['i_x ' ] = ( module ['IXO' ] *
709709 (module ['C4' ]* Ee + module ['C5' ]* (Ee ** 2 )) *
710710 (1 + module ['Aisc' ]* (temp_cell - T0 )) )
711711
712712 # the Ixx calculation in King 2004 has a typo (mixes up Aisc and Aimp)
713- dfout ['Ixx ' ] = ( module ['IXXO' ] *
713+ dfout ['i_xx ' ] = ( module ['IXXO' ] *
714714 (module ['C6' ]* Ee + module ['C7' ]* (Ee ** 2 )) *
715715 (1 + module ['Aisc' ]* (temp_cell - T0 )) )
716716
717- dfout ['Ee ' ] = Ee
717+ dfout ['effective_irradiance ' ] = Ee
718718
719719 return dfout
720720
0 commit comments