I have written a script to convert PATMOS-x coefficients from tar balls as provided on their official website to PyGAC json files as introduced in #58.
After testing the script with the coefficient version which should correspond to the current PyGAC coefficients, I noticed some typos which I would like to correct with a PR.
I will create a PR, once #58 is merged into master, because I got these differences when comparing the current json files with the one that I produced from the tar ball on the PATMOS-x website.
I have written a script to convert PATMOS-x coefficients from tar balls as provided on their official website to PyGAC json files as introduced in #58. After testing the script with the coefficient version which should correspond to the current PyGAC coefficients, I noticed some typos which I would like to correct with a PR.
MetOp-A, channel 3a, slope parameter s1 https://github.com/pytroll/pygac/blob/2d7fbafbf03ae59d14b1fffdd33154358faee139/pygac/calibration.py#L56-L57 Last value should be 1.224 instead of -0.016 according to metopa coeffs
NOAA-10, channel 4, non-linear correction parameter b2 https://github.com/pytroll/pygac/blob/2d7fbafbf03ae59d14b1fffdd33154358faee139/pygac/calibration.py#L214 Second value should be 0.0005882 instead of 0.0005885 according to noaa10 coeffs
NOAA-10, channel 4, space radiance https://github.com/pytroll/pygac/blob/2d7fbafbf03ae59d14b1fffdd33154358faee139/pygac/calibration.py#L207 Second value should be -7.29 instead of -7.27 according to noaa10 coeffs
NOAA-14, channel 5, measured to effective black body temperature intercept https://github.com/pytroll/pygac/blob/2d7fbafbf03ae59d14b1fffdd33154358faee139/pygac/calibration.py#L278 Last value should be -0.022171 (negative) (beside the division by the slope, see #57 ) according to noaa14 coeffs
NOAA-17, channel 3b, measured to effective black body temperature intercept https://github.com/pytroll/pygac/blob/2d7fbafbf03ae59d14b1fffdd33154358faee139/pygac/calibration.py#L352 First value should be 1.7002941 instead of 1.70002941 (too many zeros) (beside the division by the slope, see #57 ) according to noaa17 coeffs
NOAA-6, channel 1, slope parameter s0 https://github.com/pytroll/pygac/blob/2d7fbafbf03ae59d14b1fffdd33154358faee139/pygac/calibration.py#L101-L102 The first value in each array should be 0.113 instead of 0.133 according to noaa6 coeffs
NOAA-6, thermometer 1, PRT parameter d0 https://github.com/pytroll/pygac/blob/2d7fbafbf03ae59d14b1fffdd33154358faee139/pygac/calibration.py#L109-L113 The second row, first column in array should be 276.659 instead of 277.659 according to noaa6 coeffs
NOAA-8, channel 3b, measured to effective black body temperature intercept https://github.com/pytroll/pygac/blob/2d7fbafbf03ae59d14b1fffdd33154358faee139/pygac/calibration.py#L162 First value should be 1.7002941 instead of 1.70002941 (too many zeros) (beside the division by the slope, see #57 ) according to noaa8 coeffs
TIROS-N, channel 4 and 5, centroid wavenumber https://github.com/pytroll/pygac/blob/2d7fbafbf03ae59d14b1fffdd33154358faee139/pygac/calibration.py#L92 Second and third value should be 913.05397 instead of 913.0537 according to tirosn coeffs
TIROS-N, thermometer 1, PRT parameter d0 https://github.com/pytroll/pygac/blob/2d7fbafbf03ae59d14b1fffdd33154358faee139/pygac/calibration.py#L86-L90 The second row, first column in array should be 276.659 instead of 277.659 according to tirosn coeffs
I will create a PR, once #58 is merged into master, because I got these differences when comparing the current json files with the one that I produced from the tar ball on the PATMOS-x website.