about intrumentResample and instrumentArcIntervals #267
-
Please help me solve this problem. I want to interpolate CLK1B to every moment of KBR1A/LRI1A, and found that when directly using instrumentResample to linearly interpolate CLK1B to KBR1A directly, there will be some NAN values. How should I interpolate it correctly? Does it have something to do with the fact that CLK1B sometimes has jumps, and whether it should be piecewise interpolation. I saw that there is a way of instrumentArcIntervals in instrumentResample, is this piecewise interpolation for each arc segment? However, after I tested it, I found that I could not get the desired result. Please help me, thank you. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
Hi zdwangjian5, Have you converted both files correctly into GROOPS instrument file format?. Besides that, there should be no problem to interpolate CLK1B data to any other data using InstrumentResample (timeSeries: instrument). I hope this answers your question. Best regards, |
Beta Was this translation helpful? Give feedback.
For your first question. Using GraceL1b2ClockOffset for the CLK1B data and GraceL1a2SatelliteTracking for the KBR1A it is no problem to resample the CLK1B data to the time series of KBR1A using InstrumentResample (method: polynomial degree 1, timeSeries: instrument). However, GraceL1a2SatelliteTracking is only designed for KBR data and you have to adjust the code accordingly for LRI data. This is probably where your NAN values are coming from.
For your second question. You need to remove your outliers before you interpolate the time series. You can use e.g. InstrumentRemoveEpochsByCriteria and set a certain threshold condition (or however you define an outlier) and then use InstrumentResa…