0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

latlon_to_19(目黒研専用)

Last updated at Posted at 2024-05-04

How to use latlon_to_19(description of latlon_to_19)

cd python_ws/latlon_to_19/
python3 latlon_to_19.py '/home/megken/python_ws/latlon_to_19/latlon_data/nagashima.csv' 2302

Please modify a part of the above. The modifications are as follows.

python3 latlon_to_19.py [your_csv(input csv)] [Time of week(input number)]

Prepareation of input_csv

  1. You can get a POSLV.txt from NAS(megken-gnss)
  2. Open it using open_with_other_application function. Applicationis is LibreOffice Calc
  3. Erase column(Delete row) from 1 to 9
  4. Insert the header from sample_header.cdv into the 10 th column
  5. Last process. Save it in .csv format
    Pass of sample_header.csv is /home/megken/python_ws/latlon_to_19/latlon_data/sample_header.csv

Preparation of Time of Week

  1. Serach for https://www.labsat.co.uk/index.php/en/gps-time-calculator
  2. Enter the information of the POSLV.txt you are using in specification of "Day","Month","Year"
  3. You can earn a GPS Week. Please remenbar the number

Preparation of latlon_to_19.py

  1. Focusing on column 9 and 10, you can see "phi0_deg=36." and "lambda0_deg=136."
    Depending on the evaluation environment, it may be neccesarry to modify the above number.
    For example,Aichi Prefecture writes the 7th origin coordinate,while Mie prefecture writes the 6th.

For reference:

The GPS system tracks time as the time counted from 6,1980,
using week number(Week Number) and time of week(TOW).

UNIX time(also known as UNIX Time or epoch seconds) is a form of time representation
in computer systems that refors to the number of elapsed since january 1,1970,UTC.

How to Calculate the number of seconds from January 1,1970 to January 6,1980.
Between January 1,1970 and January 6,1980, there're 10 years and 5 days. And there're 2 leap years.
Converting the total of 10 years,5 days,and 2 leap days into seconds,
10 Year:10* 365* 24* 60* 60=315360000
5 Days+2 Days: 7* 24* 60* 60=604800
total seconds=315964800[s]

TOW to UNIX
UNIX=int([Time of Week])*7 *24 *60 *60+int([TOW])+315964800-18
But, Time of Week is GPSWeek, TOW is GPSTime, 18 is leap seconds.

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?