Author: Not specified Language: python
Description: Not specified Timestamp: 2018-05-17 12:18:00 +0000
View raw paste Reply
  1. import os
  2. from pydrive.auth import GoogleAuth
  3. from pydrive.drive import GoogleDrive
  4. from google.colab import auth
  5. from oauth2client.client import GoogleCredentials
  6. from netCDF4 import Dataset
  7. from tqdm import tqdm
  8. import numpy as np
  9. from keras.layers import Input, Dense
  10. from keras.models import Model
  11. import matplotlib.pyplot as plt
  12.  
  13. auth.authenticate_user()
  14. gauth = GoogleAuth()
  15. gauth.credentials = GoogleCredentials.get_application_default()
  16. drive = GoogleDrive(gauth)
  17.  
  18. local_download_path = os.path.expanduser('~/data')
  19. try:
  20.   os.makedirs(local_download_path)
  21. except: pass
View raw paste Reply