geeViz.assetManagerLib

Helpful functions for managing GEE assets

geeViz.assetManagerLib includes functions for copying, deleting, uploading, changing permissions, and more.

Functions

assetsize(asset)

Prints the size of a GEE asset.

base(in_path)

Gets the filename without extension.

batchCopy(fromFolder, toFolder[, outType])

Copies all assets from one folder to another in GEE.

batchDelete(Collection[, type])

Deletes all assets in a collection.

batchUpdateAcl(folder[, writers, ...])

Updates the ACL for all assets under a given folder in GEE.

check_dir(in_path)

Ensures the directory exists.

check_end(in_path[, add])

Ensures a trailing character is in the path.

copyByName(fromFolder, toFolder, nameIdentifier)

Copies assets from one folder to another based on a name identifier.

countTasks([break_running_ready])

Counts the number of tasks.

create_asset(asset_path[, asset_type, recursive])

Creates an asset in GEE.

create_image_collection(full_path_to_collection)

Creates an image collection in GEE.

deleteByName(Collection, nameIdentifier[, type])

Deletes assets in a collection based on a name identifier.

ee_asset_exists(path)

Checks if a GEE asset exists.

getDate(year, month, day)

Gets a date in ISO format.

humansize(nbytes)

Converts a file size in bytes to a human-readable format.

ingestFromGCSImagesAsBands(gcsURIs, assetPath)

Ingests multiple images from Google Cloud Storage as bands of a single GEE image.

ingestImageFromGCS(gcsURIs, assetPath[, ...])

Ingests an image from Google Cloud Storage to GEE.

is_leap_year(year)

Determines if a year is a leap year.

julian_to_calendar(julian_date, year)

Converts a Julian date to a calendar date.

limitTasks(taskLimit)

Limits the number of tasks running.

listAssets(folder)

Lists assets within a given asset folder or image collection.

moveImages(images, toFolder[, delete_original])

Moves images to a new folder, optionally deleting the originals.

now([Format])

Gets the current readable date/time.

setDate(assetPath, year, month, day)

Sets the date for an asset.

updateACL(assetName[, writers, ...])

Updates the Access Control List (ACL) for a given GEE asset.

uploadTifToGCS(tif, gcsBucket[, overwrite])

Uploads a single TIFF file to Google Cloud Storage.

uploadToGEEAssetImagesAsBands(tif_dict, ...)

Uploads images to GCS and manifests them as bands of a single GEE image.

uploadToGEEImageAsset(localTif, gcsBucket, ...)

Uploads an image to GEE as an asset.

upload_to_gcs(image_dir, gs_bucket[, ...])

Uploads files to Google Cloud Storage.

upload_to_gee(image_dir, gs_bucket, asset_dir)

Uploads images to Google Earth Engine.

verify_path(path)

Verifies the validity of a path.

walkFolders(folder[, images])

Walks down folders and gets all images.

walkFoldersTables(folder[, tables])

Walks down folders and gets all tables.

year_month_day_to_seconds(year_month_day)

Converts a date to seconds since epoch.