groops-devs / groops

A software toolkit for gravity field recovery and GNSS processing
GNU General Public License v3.0
178 stars 106 forks source link

How to concatenate instrument file on the column level? #52

Closed FFFFFG-IGG closed 2 years ago

FFFFFG-IGG commented 2 years ago

Description

Hello, developers! I'd like to calculate the rms between the ppp results(position) and the IGS sinex solutions, and then plot them with plotGraph. However, it seems that plotGraph can only process matrix by column, and only one input is accessible. For above reasons, I'd like to combine the snx position and the ppp results on the column level(add the snx positons at the right side of the ppp result file epoch wise),which can be further processed in plotGraph(for rms calculation). And I've tried InstrumentConcatenate and found it can only combine the row of multiple files, which can not reach my purpose. So could you give me some suggestion for concatenate files on the column level by using groops?(or some clues of calculating rms between ppp results and IGS sinex position)? Many thanks!

GROOPS version

No response

Operating systems

Log output

No response

tmayerguerr commented 2 years ago

You can use InstrumentArcCalculate (or FunctionsCalculate) for this task. regards Torsten

FFFFFG-IGG commented 2 years ago

You can use InstrumentArcCalculate (or FunctionsCalculate) for this task. regards Torsten

TXS for the help. But here comes a new question:I'd like to combine the snx position(instrument file resampled with 2880 epochs) with the ppp result(<=2880 epochs) on the column level. To execute the 'instrumentArcCalculate', the instrumentSynchronize need to be run first(make sure that their row number are the same), however, I found the time tag of epoch of ppp result and that of snx postion are not exact same(or differ a lot), which may lead the 'instrumentSynchronize' run in the wrong way. What should I do to synchronize the snx position instrument file and ppp result instrument file to may sure they have the same number of rows?

zhedumi commented 2 years ago

You could use Sinex2StationPosition and within the timeSeries option provide the ppp instrument file to create snx positions at already correct epochs which then can be easily columnwise merged with InstrumentArcCalculate. Another options is to adjust the margin within InstrumentSynchronize

FFFFFG-IGG commented 2 years ago

You could use Sinex2StationPosition and within the timeSeries option provide the ppp instrument file to create snx positions at already correct epochs which then can be easily columnwise merged with InstrumentArcCalculate. Another options is to adjust the margin within InstrumentSynchronize

Thanks for you feedback!One more question, how can I concatenate multiple files in a convenient way(for example, concatenate years of instrument file)? Many thanks!!!

zhedumi commented 2 years ago

You can use InstrumentConcatenate as an example. Checkout issue #36 which has an elaborate explanation on how todo that.

FFFFFG-IGG commented 2 years ago

Thanks, and I have sovled this problem.