Re: Is it possible to open a binary file with rasterio.open?
Sean Gillies
Hi, If you pass a Python file object opened in "r" mode to rasterio.open, the contents will be read and stored in a MemoryFile. See https://github.com/mapbox/rasterio/blob/master/rasterio/__init__.py#L176. Rasterio's open function doesn't accept bytes as an argument. Note that if the JP2 file is large, on the order of your computer's RAM, your program will be at risk of running out of memory.
On Sun, Apr 7, 2019 at 7:51 AM <htaidirt@...> wrote: Hi all, -- Sean Gillies
|
|