-
Notifications
You must be signed in to change notification settings - Fork 46
CLI Tools
SEPAL platform includes a variety of useful Command Line Interface utilities to help resolve particular problems, some of them are listed below:
GDAL is a translator library for raster and vector geospatial data formats.
See more: https://gdal.org/programs/index.html
OTB is an open-source project for state-of-the-art remote sensing. It can process high resolution optical, multispectral, and radar images at the terabyte scale.
See more: https://www.orfeo-toolbox.org/CookBook/CliInterface.html
OFGT is a collection of command-line utilities for the processing of geographical data. It is particularly useful for processing big amounts of raster data and provides a wide range of functionalities including image manipulation, statistics, segmentation, and classification.
See more: http://www.openforis.org/fileadmin/user_upload/Geospatial_Toolkit/OFGT_usermanual.pdf
GEE is a cloud-based platform for planetary-scale environmental data analysis. The earthengine CLI tool is a utility program that allows managing Earth Engine assets and tasks.
See more: https://developers.google.com/earth-engine/command_line
The drive
CLI is a utility that allows managing the Google Drive account from the SEPAL console.
Start an authorization token:
$ drive init
$ # Visit the displayed URL and paste the code.
Select a local folder and use push
command.
$ drive push /home/username/image_folder/*.tif
$ # Confirm the changes and wait for the transfer.
$ about # print out information about your Google drive
$ clashes # fix clashes by renaming or trashing files
$ copy # copy remote paths to a destination
$ cp # copy remote paths to a destination
$ deinit # removes the user's credentials and initialized files
$ del # deletes the items permanently. This operation is irreversible
$ delete # deletes the items permanently. This operation is irreversible
$ diff # compares local files with their remote equivalent
$ du # similar to util `du` gives you disk usage
$ edit-desc # edit the attributes of a file
$ edit-description # edit the attributes of a file
$ emptytrash # permanently cleans out your trash
$ features # returns information about the features of your drive
$ file-id # retrieve the fileId for the specified paths
$ help # Get help for a topic
$ id # retrieve the fileId for the specified paths
$ index # fetch indices from remote
$ init # initializes a directory and authenticates user
$ issue # report an issue to the project's issue tracker
$ list # lists the contents of remote path
$ ls # lists the contents of remote path
$ md5sum # prints a list compatible with md5sum(1)
$ move # move files/folders
$ mv # move files/folders
$ new # create a new file/folder
$ open # open a file in the appropriate filemanager or default browser
$ pub # publishes a file and prints its publicly available url
$ pull # pulls remote changes from Google Drive
$ push # push local changes to Google Drive
$ qr # open up the QR code for specified files
$ quota # prints out information related to your quota space
$ rename # renames a file/folder
$ report # report an issue to the project's issue tracker
$ report-issue # report an issue to the project's issue tracker
$ share # share files with specific emails giving the specified users specifies roles and permissions
$ star # star files
$ stat # display information about a file
$ touch # updates a remote file's modification time to that currently on the server
$ trash # moves files to trash
$ unpub # revokes public access to a file
$ unshare # revoke a user's access to a file
$ unstar # unstar files
$ untrash # restores files from trash to their original locations
$ url # returns the remote URL of each file
$ version # 0.3.9
AWS provides on-demand cloud computing platforms, its CLI allows to manage the AWS services on SEPAL:
- Copy files from source to destination between SEPAL accounts.
scp –r -P 443 [email protected]:/home/source/remote/folder/ /home/user/local/folder/