I have a file with several lines such that:
"PseudorangeRateUncertaintyMetersPerSecond",4.2033262571598,"DriftUncertaintyNanosPerSecond","","AccumulatedDeltaRangeState",4,"ReceivedSvTimeNanos",491720918491560.0,"TimeUncertaintyNanos","","SnrInDb","","FullBiasNanos",-1.2125108815424e+18,"State",47,"MultipathIndicator","0","AgcDb","","PseudorangeRateMetersPerSecond",-4.0109888367723,"TimeNanos",39458000000,"Svid",7,"AccumulatedDeltaRangeUncertaintyMeters",3.4028234663853e+38,"AccumulatedDeltaRangeMeters",-136.14045066658,"BiasUncertaintyNanos",5.4542302099749,"BiasNanos",0,"CarrierPhaseUncertainty","","CarrierFrequencyHz2","TimeOffsetNanos",0,"DriftNanosPerSecond","","CarrierFrequencyHz","","ConstellationType","1","CarrierCycles","","ReceivedSvTimeUncertaintyNanos",89,"CarrierPhase","","LeapSecond","","HardwareClockDiscontinuityCount",0,"ElapsedRealtimeMillis",14067926,"Id","Raw","Cn0DbHz",17.306573867798
I have created a program that reads each line and separates it by commas. I need to order the file lines according to the last value of each line.
lectura=[]
while True:
linea=f.readline()
if not linea:break
lect_linea=linea.split(',')
lectura.append(lect_linea)
The problem that I find is that instead of each lect_linea being saved as an object and having as many lines as there is a single value appears in the list with all lect_linea together.
I have asked a couple of times and I have not obtained anything that works, please help