Homework 4: GPS Data Files


Due: Don't start this homework yet. I'm still working on it.

This homework prepares you to read GPS data files. Some of the things I will ask you to do are not obviously being used, but it is good practice to start defining the needed variables now.

Given:

Answer these questions about the RINEX file by reading it:

  1. How many observables are on the file? What are they called ? What are the units of each observable?
  2. What is P2 for PRN 4?
  3. What is L2 for PRN 2? Convert to meters.
  4. Should you use the P1 data?

Steps to follow:

  1. Define GPS constants, such as the fundamental frequency fo, the L1 and L2 frequencies (154*fo and 120fo) , the speed of light, and the L1 and L2 wavelengths. You are required to define the units of each of these quantities.
  2. read the RINEX header (properly defining global variables for future use) of the given file.
  3. Convert the Cartesian coordinates of the receiver into latitude, longitude, and height.
  4. Calculate the GPS week and GPS seconds of the week for the first time epoch in the file: year 2001, month 01, day 01, hour 00, minute 00, second 00. Print this information to the screen.
  5. Check that you used GPS_week correctly by using Gps_to_sec to go the opposite direction. Print output to the screen.
Turn in: answers to questions, your code, and the output to the screen.