Skip to content
This repository has been archived by the owner on Aug 18, 2022. It is now read-only.

Commit

Permalink
Start adding examples in basic manipultation docs
Browse files Browse the repository at this point in the history
  • Loading branch information
tmontaigu committed Apr 18, 2018
1 parent ba9e162 commit 06b7dc7
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions docs/basic.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,15 @@ The easiest one is using :func:`pylas.read` function.
This function will read everything in the file (Header, vlrs, point records, ...) and return an object
that you can use to access to the data.

.. code:: python
las = pylas.read('somefile.las')
import s3fs
fs = s3fs.S3FileSystem()
with fs.open('my-bucket/some_file.las', 'rb') as f:
las = pylas.read()
The other way to read a las file is to use the :func:`pylas.open`.
As the name suggest, this function does not read the whole file, but opens it and only read the header.
Expand Down

0 comments on commit 06b7dc7

Please sign in to comment.