This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"metadata": { | |
"name": "Seafloor_Habitat_Mapping" | |
}, | |
"nbformat": 3, | |
"nbformat_minor": 0, | |
"worksheets": [ | |
{ | |
"cells": [ | |
{ |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def weeksecondstoutc(gpsweek,gpsseconds,leapseconds): | |
import datetime, calendar | |
datetimeformat = "%Y-%m-%d %H:%M:%S" | |
epoch = datetime.datetime.strptime("1980-01-06 00:00:00",datetimeformat) | |
elapsed = datetime.timedelta(days=(gpsweek*7),seconds=(gpsseconds+leapseconds)) | |
return datetime.datetime.strftime(epoch + elapsed,datetimeformat) | |
weeksecondstoutc(1811,164196.732,16) ## --> '2014-09-22 21:36:52' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Source: | |
https://www.kaggle.com/nasa/astronaut-yearbook | |
*/ | |
CREATE TABLE astronauts( | |
Name TEXT PRIMARY KEY, | |
Year INTEGER, | |
GroupNum INTEGER, | |
Status TEXT, | |
Birth_Date TEXT, | |
Birth_Place TEXT, |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.