Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Thermal calibration error #22

Closed
sfinkens opened this issue Feb 22, 2019 · 3 comments · Fixed by #117
Closed

Thermal calibration error #22

sfinkens opened this issue Feb 22, 2019 · 3 comments · Fixed by #117

Comments

@sfinkens
Copy link
Member

While processing 2017/18 data I noticed ~250 errors of the following type:

python bin/pygac-run testbench/NSS.GHRR.M1.D18337.S2304.E0005.B3222526.GC 0 0
[ INFO pygac.gac_reader 2019-02-22 15:36:34.498] Reading NSS.GHRR.M1.D18337.S2304.E0005.B3222526.GC
[ DEBUG pygac.gac_reader 2019-02-22 15:36:34.606] Removed 0 scanline(s) with corrupt scanline numbers
/cmsaf/nfshome/sfinkens/software/devel/pygac/pygac/geotiepoints.py:575: RuntimeWarning: invalid value encountered in arccos
  90 - rad2deg(arccos(z__/EARTH_RADIUS)),
/cmsaf/nfshome/sfinkens/software/devel/pygac/pygac/geotiepoints.py:578: RuntimeWarning: invalid value encountered in arcsin
  / EARTH_RADIUS))))
[ DEBUG pygac.gac_reader 2019-02-22 15:36:36.458] Corrected 0 timestamp(s)
Traceback (most recent call last):
  File "bin/pygac-run", line 104, in <module>
    reader(args.filename, args.start_line, args.end_line)
  File "/cmsaf/nfshome/sfinkens/software/devel/pygac/pygac/gac_klm.py", line 579, in main
    channels = reader.get_calibrated_channels()
  File "/cmsaf/nfshome/sfinkens/software/devel/pygac/pygac/gac_reader.py", line 254, in get_calibrated_channels
    self.spacecraft_name)
  File "/cmsaf/nfshome/sfinkens/software/devel/pygac/pygac/gac_calibration.py", line 477, in calibrate_thermal
    prt[ifix] = np.interp(ifix[0], inofix[0], prt[inofix])
  File "/cmsaf/nfshome/routcm/Modules_CentOS/python/2.7.14/lib/python2.7/site-packages/numpy/lib/function_base.py", line 2061, in interp
    return interp_func(x, xp, fp, left, right)
ValueError: array of sample points is empty

This seems to be yet another data corruption, because there are two very similar files with slightly different time stamps from different ground stations:

The errror occurs with the first file, the second one is processed just fine. Currently we would select the first one because it contains more data (according to the timestamps).

@abhaydd
Copy link
Collaborator

abhaydd commented Feb 25, 2019

Stephan,

Thanks for reporting this. I will start looking at it from tomorrow. Please feel free to fix anything you deem necessary.

Cheers,
Abhay.

@mraspaud
Copy link
Member

@abhaydd @sfinkens what is the status of this issue ?

@sfinkens
Copy link
Member Author

@mraspaud I haven't looked further into it since then

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants