blogs/lightning/ltgpred/goesutil/goesio.py
def copy_fromgcs(blob_path, destdir):
  """download GCS blobs to a local directory.

  Args:
    blob_path (string): source file, Blob.path URL
    destdir (string): local directory, has to exist

  Returns:
    destination filename
  """
  bucket, object_id = parse_blobpath(blob_path)
  bucket = cached_gcs_client().get_bucket(bucket)
  blob = bucket.blob(object_id)
  basename = os.path.basename(object_id)
  logging.info('Downloading %s', basename)
  dest = os.path.join(destdir, basename)
  blob.download_to_filename(dest)
  return dest
download GCS blobs to a local directory.

  Args:
    blob_path (string): source file, Blob.path URL
    destdir (string): local directory, has to exist

  Returns:
    destination filename
  
download GCS blobs to a local directory.
download GCS blobs to a local directory .
def copy_fromgcs(blob_path, destdir):
  bucket, object_id = parse_blobpath(blob_path)
  bucket = cached_gcs_client().get_bucket(bucket)
  blob = bucket.blob(object_id)
  basename = os.path.basename(object_id)
  logging.info('Downloading %s', basename)
  dest = os.path.join(destdir, basename)
  blob.download_to_filename(dest)
  return dest
def copy_fromgcs ( blob_path , destdir ) : bucket , object_id = parse_blobpath ( blob_path ) bucket = cached_gcs_client ( ) . get_bucket ( bucket ) blob = bucket . blob ( object_id ) basename = os . path . basename ( object_id ) logging . info ( 'Downloading %s' , basename ) dest = os . path . join ( destdir , basename ) blob . download_to_filename ( dest ) return dest
download GCS blobs to a local directory.
download GCS blobs to a local directory .
"""download GCS blobs to a local directory.

  Args:
    blob_path (string): source file, Blob.path URL
    destdir (string): local directory, has to exist

  Returns:
    destination filename
  """
None
blob_path
source file, Blob.path URL
source file Blob . path URL
destdir
local directory, has to exist
local directory has to exist