kristinemlarson / gnssrefl

GNSS Interferometric Reflectometry Software (GNSS-IR)
GNU General Public License v3.0
151 stars 75 forks source link

Difficulty Reading GPS L2/S2W Data with rinex2snr: Seeking Explanation for Missing Signal-to-Noise Ratios #277

Closed Baizitang closed 3 months ago

Baizitang commented 4 months ago

I noticed that when using rinex2snr, the GPS L2 or S2W data was not successfully read and written. I tried both Rinex 3.02 and Rinex 3.05 after performing format checks using gfzrnx, but encountered the same issue. However, what's strange is that last year, when I converted SNR files using the old gnssrefl, the L2 signal-to-noise ratios were included. For other satellite systems and bands, everything seems normal, although I haven't conducted an in-depth comparison. Could you please explain what might be causing this?

` root@fb8bfc44be2c:/usr/src/gnssrefl# rinex2snr qdkz00xxx 2023 105 -snr 88 -orb gnss3 -rate high -nolook T -screenstats T Only one day being analyzed, parallel processing turned off No parallel processing /etc/gnssrefl/refl_code/2023/snr/qdkz/qdkz1050.23.snr88 SNR file does not already exist. Which means I will try to make it. /etc/gnssrefl/refl_code/2023/rinex/qdkz/ Will first assume RINEX file qdkz year: 2023 doy: 105 is located here : /usr/src/gnssrefl try looking for RINEX 3 in /etc/gnssrefl/refl_code/2023/rinex/qdkz/ Apparent Rinex version 3.02 The RINEX 3 file exists locally QDKZ00XXX_R_20231050000_01D_01S_MO.rnx Minimal feedback is written to /etc/gnssrefl/refl_code/logs/qdkz/2023//105_translation.txt.gen GFZ0MGXRAP_20231050000_01D_05M_ORB.SP3 GBM0MGXRAP_20231050000_01D_05M_ORB.SP3 ftp://ftp.gfz-potsdam.de/pub/GNSS/products/mgex/2257_IGS20/gbm22576.sp3.Z ftp://ftp.gfz-potsdam.de/pub/GNSS/products/mgex/2257_IGS20/GBM0MGXRAP_20231050000_01D_05M_ORB.SP3.gz 100% [..........................................................................] 1043915 / 1043915Orbit file: /etc/gnssrefl/refl_code/2023/sp3/GBM0MGXRAP_20231050000_01D_05M_ORB.SP3 Seeking permission from Earthscope to use their archive - wish me luck That download experience took 1 seconds.

SUCCESS: SNR file was created /etc/gnssrefl/refl_code/2023/snr/qdkz/qdkz1050.23.snr88 That took 152.46 seconds ` image image image

kristinemlarson commented 4 months ago

I don’t think I allow L2W SNR data.

I am away from my code for a few days, So can look at it then.

Do you have access to proper L2C signals? They are far superior to L2 W

I get the names mixed up but I think I have that right.

Kristine M. Larson @.*** https://www.kristinelarson.net http://www.kristinelarson.net https://gnss-reflections.org https://github.com/kristinemlarson

Are you waiting for your code to be perfect?

On Tue, May 14, 2024 at 10:12 PM Baizitang @.***> wrote:

I noticed that when using rinex2snr, the GPS L2 or S2W data was not successfully read and written. I tried both Rinex 3.02 and Rinex 3.05 after performing format checks using gfzrnx, but encountered the same issue. However, what's strange is that last year, when I converted SNR files using the old gnssrefl, the L2 signal-to-noise ratios were included. For other satellite systems and bands, everything seems normal, although I haven't conducted an in-depth comparison. Could you please explain what might be causing this?

` @.***:/usr/src/gnssrefl# rinex2snr qdkz00xxx 2023 105 -snr 88 -orb gnss3 -rate high -nolook T -screenstats T Only one day being analyzed, parallel processing turned off No parallel processing /etc/gnssrefl/refl_code/2023/snr/qdkz/qdkz1050.23.snr88 SNR file does not already exist. Which means I will try to make it. /etc/gnssrefl/refl_code/2023/rinex/qdkz/ Will first assume RINEX file qdkz year: 2023 doy: 105 is located here : /usr/src/gnssrefl try looking for RINEX 3 in /etc/gnssrefl/refl_code/2023/rinex/qdkz/ Apparent Rinex version 3.02 The RINEX 3 file exists locally QDKZ00XXX_R_20231050000_01D_01S_MO.rnx Minimal feedback is written to /etc/gnssrefl/refl_code/logs/qdkz/2023//105_translation.txt.gen GFZ0MGXRAP_20231050000_01D_05M_ORB.SP3 GBM0MGXRAP_20231050000_01D_05M_ORB.SP3 ftp://ftp.gfz-potsdam.de/pub/GNSS/products/mgex/2257_IGS20/gbm22576.sp3.Z

ftp://ftp.gfz-potsdam.de/pub/GNSS/products/mgex/2257_IGS20/GBM0MGXRAP_20231050000_01D_05M_ORB.SP3.gz 100% [..........................................................................] 1043915 / 1043915Orbit file: /etc/gnssrefl/refl_code/2023/sp3/GBM0MGXRAP_20231050000_01D_05M_ORB.SP3 Seeking permission from Earthscope to use their archive - wish me luck That download experience took 1 seconds.

SUCCESS: SNR file was created /etc/gnssrefl/refl_code/2023/snr/qdkz/qdkz1050.23.snr88 That took 152.46 seconds ` image.png (view on web) https://github.com/kristinemlarson/gnssrefl/assets/71941488/43972dea-25a5-4079-9a96-1b0bae9f175d image.png (view on web) https://github.com/kristinemlarson/gnssrefl/assets/71941488/d055123b-947e-476f-8a88-df1f666d8791 image.png (view on web) https://github.com/kristinemlarson/gnssrefl/assets/71941488/0bbfb97c-bfd3-46a4-a20b-b44bb20e58ad

— Reply to this email directly, view it on GitHub https://github.com/kristinemlarson/gnssrefl/issues/277, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFSDAPGWCUWIIEJQUYYTFSTZCLVC5AVCNFSM6AAAAABHXM3JXGVHI2DSMVQWIX3LMV43ASLTON2WKOZSGI4TMOBYGE3DSMI . You are receiving this because you are subscribed to this thread.Message ID: @.***>

kristinemlarson commented 4 months ago

I think I can add a flag to allow you to keep s2w but i will Never make it the default as it is a Very low quality data.

If you previously used rinex 2.11 it would not throw out L2w as it is more complicated to know what is stored in Rinex 2.11 s2. That format does not allow you to have both Kinds of l2 data.

Let me know if you must have the l2w data and i will see if I can add a flag. But not until friday.

Kristine M. Larson @.*** https://www.kristinelarson.net http://www.kristinelarson.net https://gnss-reflections.org https://github.com/kristinemlarson

Are you waiting for your code to be perfect?

On Tue, May 14, 2024 at 11:12 PM Baizitang @.***> wrote:

I noticed that when using rinex2snr, the GPS L2 or S2W data was not successfully read and written. I tried both Rinex 3.02 and Rinex 3.05 after performing format checks using gfzrnx, but encountered the same issue. However, what's strange is that last year, when I converted SNR files using the old gnssrefl, the L2 signal-to-noise ratios were included. For other satellite systems and bands, everything seems normal, although I haven't conducted an in-depth comparison. Could you please explain what might be causing this?

` @.***:/usr/src/gnssrefl# rinex2snr qdkz00xxx 2023 105 -snr 88 -orb gnss3 -rate high -nolook T -screenstats T Only one day being analyzed, parallel processing turned off No parallel processing /etc/gnssrefl/refl_code/2023/snr/qdkz/qdkz1050.23.snr88 SNR file does not already exist. Which means I will try to make it. /etc/gnssrefl/refl_code/2023/rinex/qdkz/ Will first assume RINEX file qdkz year: 2023 doy: 105 is located here : /usr/src/gnssrefl try looking for RINEX 3 in /etc/gnssrefl/refl_code/2023/rinex/qdkz/ Apparent Rinex version 3.02 The RINEX 3 file exists locally QDKZ00XXX_R_20231050000_01D_01S_MO.rnx Minimal feedback is written to /etc/gnssrefl/refl_code/logs/qdkz/2023//105_translation.txt.gen GFZ0MGXRAP_20231050000_01D_05M_ORB.SP3 GBM0MGXRAP_20231050000_01D_05M_ORB.SP3 ftp://ftp.gfz-potsdam.de/pub/GNSS/products/mgex/2257_IGS20/gbm22576.sp3.Z

ftp://ftp.gfz-potsdam.de/pub/GNSS/products/mgex/2257_IGS20/GBM0MGXRAP_20231050000_01D_05M_ORB.SP3.gz 100% [..........................................................................] 1043915 / 1043915Orbit file: /etc/gnssrefl/refl_code/2023/sp3/GBM0MGXRAP_20231050000_01D_05M_ORB.SP3 Seeking permission from Earthscope to use their archive - wish me luck That download experience took 1 seconds.

SUCCESS: SNR file was created /etc/gnssrefl/refl_code/2023/snr/qdkz/qdkz1050.23.snr88 That took 152.46 seconds ` image.png (view on web) https://github.com/kristinemlarson/gnssrefl/assets/71941488/43972dea-25a5-4079-9a96-1b0bae9f175d image.png (view on web) https://github.com/kristinemlarson/gnssrefl/assets/71941488/d055123b-947e-476f-8a88-df1f666d8791 image.png (view on web) https://github.com/kristinemlarson/gnssrefl/assets/71941488/0bbfb97c-bfd3-46a4-a20b-b44bb20e58ad

— Reply to this email directly, view it on GitHub https://github.com/kristinemlarson/gnssrefl/issues/277, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFSDAPGWCUWIIEJQUYYTFSTZCLVC5AVCNFSM6AAAAABHXM3JXGVHI2DSMVQWIX3LMV43ASLTON2WKOZSGI4TMOBYGE3DSMI . You are receiving this because you are subscribed to this thread.Message ID: @.***>

kristinemlarson commented 3 months ago

do you want me to add a flag so you can keep L2W?

Baizitang commented 3 months ago

I apologize for missing your message and not responding in a timely manner.

I understand that if L2W performs poorly, it would be reasonable to discard it. If L2C is accepted in the observation file, it would be placed in the third column of the SNR data, correct? Can I assume that if the current SNR data file includes L2C, it cannot also include L2W? What happens if both L2W and L2C are present in the observation file?

I believe that having an additional option could improve the code, but if L2W is indeed too unreliable, there is no need to waste your time on it.

Thank you for all your contributions to gnssrefl.

Best regards

kristinemlarson commented 3 months ago

the SNR format used in my software (the snr66 files) does not have any space in it for multiple L2 observables.

The SNR data format part of https://gnssrefl.readthedocs.io/en/latest/pages/file_structure.html

tells you which observables are in which columns.

if your files are in RINEX 3 the code will never write out L2W. it only writes out L2C observables.

if your file is RINEX 2.11, the code does not try to figure out which is L2W and which is not. it writes out whatever is defined as S2. So typically such a file would have a mixture of observations in the SNR file, some would be L2C and some would be L2W. it is not ideal.

kristine

On Fri, May 17, 2024 at 6:04 PM Baizitang @.***> wrote:

I apologize for missing your message and not responding in a timely manner.

I understand that if L2W performs poorly, it would be reasonable to discard it. If L2C is accepted in the observation file, it would be placed in the third column of the SNR data, correct? Can I assume that if the current SNR data file includes L2C, it cannot also include L2W? What happens if both L2W and L2C are present in the observation file?

I believe that having an additional option could improve the code, but if L2W is indeed too unreliable, there is no need to waste your time on it.

Thank you for all your contributions to gnssrefl.

Best regards

— Reply to this email directly, view it on GitHub https://github.com/kristinemlarson/gnssrefl/issues/277#issuecomment-2118540274, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFSDAPDIMRMOXYBWVCGX273ZC2SJBAVCNFSM6AAAAABHXM3JXGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMJYGU2DAMRXGQ . You are receiving this because you commented.Message ID: @.***>

-- Kristine M. Larson @.*** https://www.kristinelarson.net http://www.kristinelarson.net https://gnss-reflections.org https://github.com/kristinemlarson

Are you waiting for your code to be perfect?

Baizitang commented 3 months ago

I think I've got it figured out. I'll rule out s2w. Thank you for your answer.