From 7cfa1abf1982f6d97b08b33fc604731d1bfc885c Mon Sep 17 00:00:00 2001 From: pistoletpierre Date: Fri, 1 Jan 2021 01:42:45 -0500 Subject: [PATCH 1/2] addressing https://github.com/osqzss/gps-sdr-sim/issues/268 --- README.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/README.md b/README.md index b4e7700..5f33ad2 100644 --- a/README.md +++ b/README.md @@ -47,6 +47,29 @@ individual site navigation files into one. The archive for the daily file can be downloaded from: https://cddis.nasa.gov/archive/gnss/data/daily/. Access to this site requires registration, which is free. +After registration, automated downloads can be done in a script by adding +the following entry to one's netrc file (filling in the appropriate values +for username and password): +```bash +echo machine urs.earthdata.nasa.gov login password >> ~/.netrc +``` + +and then including the following code (or similar) in a script: + +```bash +day=$(date +%j) +year=$(date +%Y) +yr=$(date +%y) +RINEX_NAV_FILE="brdc${day}0.${yr}n" +curl \ + --cookie-jar /tmp/cookie \ + --netrc \ + --location \ + --output "${RINEX_NAV_FILE}.gz" "https://cddis.nasa.gov/archive/gnss/data/daily/${year}/brdc/${RINEX_NAV_FILE}.gz" \ +uncompress --force --keep "${RINEX_NAV_FILE}.gz" +ls -al "${RINEX_NAV_FILE}" +``` + These files are then used to generate the simulated pseudorange and Doppler for the GPS satellites in view. This simulated range data is then used to generate the digitized I/Q samples for the GPS signal. From fb07683a864585827b543837ddba777e0ac2de3f Mon Sep 17 00:00:00 2001 From: pistoletpierre Date: Fri, 1 Jan 2021 01:43:37 -0500 Subject: [PATCH 2/2] addressing https://github.com/osqzss/gps-sdr-sim/issues/268 --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 5f33ad2..a8ae1f7 100644 --- a/README.md +++ b/README.md @@ -52,6 +52,7 @@ the following entry to one's netrc file (filling in the appropriate values for username and password): ```bash echo machine urs.earthdata.nasa.gov login password >> ~/.netrc +chmod 600 ~/.netrc ``` and then including the following code (or similar) in a script: