Changes
Page history
Update sclight_GPS_test
authored
Mar 16, 2021
by
Kentaro Mogushi
Show whitespace changes
Inline
Side-by-side
home/sclight_GPS_test.md
View page @
39b38c2f
# Here, I check the distribution of GPS times in the testing set
# Here, I check the distribution of GPS times in the testing set
```
list_GPS_test_sorted = np.sort(list_GPS_test)
list_GPS_test_sorted_min = list_GPS_test_sorted.min()
plt.hist((list_GPS_test - list_GPS_test_sorted_min)/ (24 * 3600.), bins=100)
plt.xlabel('Relative GPS time [day] since {}'.format(list_GPS_test_sorted_min))
plt.savefig('test.png')
plt.close()
```


```
day_GPS = (list_GPS_test_sorted - list_GPS_test_sorted_min)/ (24 * 3600.)
plt.hist(day_GPS[day_GPS < 2], bins=100)
plt.xlabel('Relative GPS time [day] since {}'.format(list_GPS_test_sorted_min))
plt.savefig('test.png')
plt.close()
```

```
diff = list_GPS_test_sorted[1:] - list_GPS_test_sorted[:-1]
plt.hist(diff,bins=100)
plt.xlabel('difference of the adjacent GPS')
plt.savefig('test.png')
plt.close()
```
