Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running aiocogeo in docker #119

Open
philvarner opened this issue Mar 9, 2023 · 0 comments
Open

Running aiocogeo in docker #119

philvarner opened this issue Mar 9, 2023 · 0 comments

Comments

@philvarner
Copy link

I had many problems getting this installed locally, mostly due to imagecodecs requiring dozens of libraries by default and incompatible unconstrained dependencies. I got it two work with the following:

First run an ubuntu docker container:

docker run -it ubuntu

This install these:

apt update && apt upgrade -y 
apt-get install -y pip build-essential python3-dev cython3 python3-setuptools python3-pip
python3 -m pip install -U pip setuptools wheel Cython
pip install imagecodecs --global-option="build_ext" --global-option="--lite"
pip install aioboto3==8.1.1
pip install -U aiohttp==3.6.2
pip install aiocogeo==0.3.0

and run

aiocogeo info s3://usgs-landsat/collection02/level-2/standard/oli-tirs/2020/072/076/LC08_L2SR_072076_20201203_20210313_02_T2/LC08_L2SR_072076_20201203_20210313_02_T2_SR_B1.TIF

Success:

        FILE INFO: https://sentinel-cogs.s3.us-west-2.amazonaws.com/sentinel-s2-l2a-cogs/41/X/NA/2023/3/S2A_41XNA_20230309_0_L2A/AOT.tif

          PROFILE
            Width:            1830
            Height:           1830
            Bands:            1
            Dtype:            uint16
            Crs:              EPSG:32641
            Origin:           (499980.0, 8100000.0)
            Resolution:       (60.0, -60.0)
            BoundingBox:      (499980.0, 7990200.0, 609780.0, 8100000.0)
            Compression:      deflate
            NoData:           0
            Internal mask:    False
            Header size:      16385

	  IFD
            	Id      Size           BlockSize     MinTileSize (KB)     MaxTileSize (KB)     MeanTileSize (KB)
		0       1830x1830      256x256       0.149                1.351                0.279
		1       915x915        128x128       0.052                0.73                 0.122
		2       458x458        128x128       0.052                0.807                0.175
		3       229x229        128x128       0.052                0.641                0.281
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant