parameters: (polcorr, IvsLam, crho, calpha, cAp, cPp)
return_statement: return IvsLam
docstring: Perform polynomial correction
docstring_summary: Perform polynomial correction
docstring_tokens: Perform polynomial correction
function: def polCorr(polcorr, IvsLam, crho, calpha, cAp, cPp):
      '''
      Perform polynomial correction
      '''
      # Treat False like a polarization correction of None.
      if polcorr == PolarisationCorrection.PNR:
          IvsLam = nrPNRCorrection(IvsLam.name(), crho[0], calpha[0], cAp[0], cPp[0])
      elif polcorr == PolarisationCorrection.PA:
          IvsLam = nrPACorrection(IvsLam.name(), crho[0], calpha[0], cAp[0], cPp[0])
      else:
          message = "No Polarisation Correction Requested."
          logger.notice(message)
          print(message)
      return IvsLam
function_tokens: def polCorr ( polcorr , IvsLam , crho , calpha , cAp , cPp ) : # Treat False like a polarization correction of None. if polcorr == PolarisationCorrection . PNR : IvsLam = nrPNRCorrection ( IvsLam . name ( ) , crho [ 0 ] , calpha [ 0 ] , cAp [ 0 ] , cPp [ 0 ] ) elif polcorr == PolarisationCorrection . PA : IvsLam = nrPACorrection ( IvsLam . name ( ) , crho [ 0 ] , calpha [ 0 ] , cAp [ 0 ] , cPp [ 0 ] ) else : message = "No Polarisation Correction Requested." logger . notice ( message ) print ( message ) return IvsLam