0

How can we derive the chi square values of the polynomial fit using xarray.Dataset.polyfit. From what I can see in he documentation, it returns residuals and covariance matrix. for example, I can calculate the 2nd order polynomial fit across dim1 of my dataarray

fit_param = ds.polyfit(dim='dim1', deg=2, cov=True)
Vinod Kumar
  • 1,383
  • 1
  • 12
  • 26

0 Answers0