-
Notifications
You must be signed in to change notification settings - Fork 54
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
docker build fails #44
Comments
Hi Mneuw, sorry for running into this. You are doing nothing wrong. Just usual clash of dependencies, especially when you are working with gdal...there are some dependency issues between gdal and nodejs/npm. gdal should later then be automatically installed via pip (so no additional entry needed). Please let me know how that goes. And I hope that solves it. |
Finally got it to run:) needed to modify the dockerfile quite a bit:
FROM ubuntu:18.04 LABEL maintainer="Petr Sevcik, EOX" set work directory to home and download snap copy the snap installation config file into the container update variables install all dependencies RUN apt-get update && RUN alias python=python3 && update snap to latest version set usable memory to 12G get OST and tutorials EXPOSE 8888 best |
Hi, responding to the numbers above:
|
Thanks a lot, all clear now for me! |
great, let us know if there are further issues and have a great christmas time. |
ok!! I just tried the S1GRD_Batch-processing and encountered that the grds_to_ards-module doesn't work for the RTC-Gamma0 product type. For some reason it produces only NA-layers. Contrary it runs perfectly for the GTC-Gamma product. Anyway it's a great toolkit! wish you a pleasent christmas 2020!! Best Martin |
hmm, in the docker file there is still the update of snap . uncomment following lines and build again. There are some issues with the latest version of snap that I still need to fix (when I have time) RUN /home/ost/programs/snap/bin/snap --nosplash --nogui --modules --update-all 2>&1 | while read -r line; do |
then try to use this notebook as template: you need to change aoi, start,end and project_dir of course Check out also the other notebooks. Should not take you more than a day to go through, and will hopefully help to get the concept. Most trickiest parts are the refine inventory and the ard parameters. the rest is just code execution happy christmas to you, too! |
and yes, you can set the out projection by using the EPSG code. so Lat/Lon is 4326, UTM 33N is 32633 e.g. s1.ard_parameters['single_ARD']['dem']['out_projection'] = '32633' |
Now after getting back to SNAP version 7 I'm running into the following error while executing grds_to_ards in your above shared notebook:
I changed the crs of the inventory_pandas_dataframe o the same as the output projection with no effect.First results (ard products in snap-format) appear in the processing directory but timeseries and timescan products fails. may you have an idea where this could come from? steps before while querring the S1-datasets I already encounter some crs-warnings: /usr/local/lib/python3.6/dist-packages/pyproj/crs/crs.py:53: FutureWarning: '+init=:
|
Hi, it is a problem that we do not fix the version of certain python packages. There have been huge changes to the pyproj lib. Almost all of the geolibs in python use this for projection related stuff, and the syntax changed. You could downgrade to Proj 4 somehow. But it will take me some time to fix all this, as at the moment I do not really have time for it. Best, |
ok thanks for your answer! just let me know when there is an update. meanwhile I'll try on my own start. |
Hm, all steps are working now except the creation of the image bounds for the time-series processing. So I think we do not need huge changes. What does this actually? align the scences to same extent? and which script/function is responsible for the job?may you have another hint where I can start digging. sorry for interrupting. Best, |
Hi, this step is needed to calculate the common minimum bound of all images in the time-series, as their extent may vary (slightly). |
Hi there,
I tried to rerun my dockercontainer using the OpenSARtoolkit after a while
and got back an error due to non reaching the copernicus scihub api:
Your Copernicus Scihub Username:madduen
Your Copernicus Scihub Password:
INFO (14:45:38): We failed to connect to the server. Reason: Unauthorized
Do you know if there has been a change/limitation to querry images using
the api of Copernicus SciHub?
thanks for your support.
best Martin
Am Di., 2. Feb. 2021 um 09:13 Uhr schrieb BuddyVolly <
***@***.***>:
… Hi, this step is needed to calculate the common minimum bound of all
images in the time-series, as their extent may vary (slightly).
I think it uses geopandas for that, which is based on pyproj, which again
had those huge changes. So I assume something related to this. Here you can
find an example of this problem (as many have this)
https://gis.stackexchange.com/questions/348997/constant-future-warnings-with-new-pyproj
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#44 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AJAMNYWL6Z6VWM7RCUR46MDS46X3XANCNFSM4VC7CT6A>
.
|
Yes, the apihub URL changed https://scihub.copernicus.eu/news/News00868 |
ok cool. good to know. Do you think it's just the base-url to be replaced
in the search.py script in line 399 or is there more work to do be done to
get to run?
is there a rough timescale on the update? sorry for rushing I just would
need to know if it's a matter of days/weeks or a lot longer to be able to
plan:)
best martin
Am Mi., 16. Juni 2021 um 18:52 Uhr schrieb BuddyVolly <
***@***.***>:
… Yes, the apihub URL changed https://scihub.copernicus.eu/news/News00868
I still did not have the time do update the toolkit. I am working on a
release with the new SNAP 8 and will include this.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#44 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AJAMNYSE247JV5VXAQ6A2FDTTDJD7ANCNFSM4VC7CT6A>
.
|
Hi Martin, However, setting the base_url for DOWNLOAD from scihub is NOT possible. But you can use ASF for download, if you haven't done so yet. You can download 10 files concurrently and it keeps all of the archive, as opposed to scihub where you only have the last year as it is a rolling archive. It is much faster. Hope that helps, |
Thanks for your msg! helps a lot! ASF is really great I always used it:)
querying and downloading works again.
Now I running into: Exception calling QC Rest API: Connect to
qc.sentinel1.eo.esa.int:443...
This is probably related to current relocation of url to provide the
S1-Orbit files -->
https://forum.step.esa.int/t/orbit-file-timeout-march-2021/28621/22
the solution for this won't be that easy probably? or do you have any idea?
best regards and thanks again, Martin
PS: I also tried the integration in sepal.io and processed some subsets.
really great work. Is there any documentation on what the thresholds for
the different variants of outlier-removeal are? (marked in red below)
[image: grafik.png]
Am Fr., 18. Juni 2021 um 09:22 Uhr schrieb BuddyVolly <
***@***.***>:
… Hi Martin,
so there is a solution I think without having to change the code.
You can set the base url in the search function of your class instance.
Let's say you initialized your Sentinel1Batch to s1 then:
s1.search(base_url='https://scihub.copernicus.eu/dhus/')
However, setting the base_url for DOWNLOAD from scihub is NOT possible.
But you can use ASF for download, if you haven't done so yet. You can
download 10 files concurrently and it keeps all of the archive, as opposed
to scihub where you only have the last year as it is a rolling archive. It
is much faster.
Hope that helps,
Andreas
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#44 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AJAMNYTCH6UR4BNV5AQAXNDTTLXZXANCNFSM4VC7CT6A>
.
|
Dear ost-team,
I tried to pull the docker image. Anyway by using docker pull buddyvolly/opensartoolkit still an old ost-version is installed. now I fail building the new version using the image here in this repository. By using docker build I always get the following errer-log at step 8/14:
`docker build /home/ost/OpenSarToolkit_master_20201220/
Sending build context to Docker daemon 54.87MB
Step 1/14 : FROM ubuntu:18.04
---> 2c047404e52d
Step 2/14 : LABEL maintainer="Petr Sevcik, EOX"
---> Using cache
---> e76d4f005833
Step 3/14 : LABEL OpenSARToolkit='0.10.1'
---> Using cache
---> 3962f459ecd1
Step 4/14 : WORKDIR /home/ost
---> Using cache
---> 693506450e9e
Step 5/14 : COPY snap7.varfile $HOME
---> Using cache
---> a9f658bc3602
Step 6/14 : ENV OTB_VERSION="7.1.0" TBX_VERSION="7" TBX_SUBVERSION="0"
---> Using cache
---> 76a4ec29a32c
Step 7/14 : ENV TBX="esa-snap_sentinel_unix_${TBX_VERSION}_${TBX_SUBVERSION}.sh" SNAP_URL="http://step.esa.int/downloads/${TBX_VERSION}.${TBX_SUBVERSION}/installers" OTB=OTB-${OTB_VERSION}-Linux64.run HOME=/home/ost PATH=$PATH:/home/ost/programs/snap/bin:/home/ost/programs/OTB-${OTB_VERSION}-Linux64/bin
---> Using cache
---> c642dd2a2adc
Step 8/14 : RUN groupadd -r ost && useradd -r -g ost ost && apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -yq python3 python3-pip git libgdal-dev python3-gdal libspatialindex-dev libgfortran3 wget unzip imagemagick nodejs npm
---> Running in d4c18ae031c0
Get:1 http://archive.ubuntu.com/ubuntu bionic InRelease [242 kB]
Get:2 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]
Get:3 http://archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
Get:4 http://archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]
Get:5 http://archive.ubuntu.com/ubuntu bionic/main amd64 Packages [1344 kB]
Get:6 http://archive.ubuntu.com/ubuntu bionic/multiverse amd64 Packages [186 kB]
Get:7 http://archive.ubuntu.com/ubuntu bionic/universe amd64 Packages [11.3 MB]
Get:8 http://archive.ubuntu.com/ubuntu bionic/restricted amd64 Packages [13.5 kB]
Get:9 http://archive.ubuntu.com/ubuntu bionic-updates/multiverse amd64 Packages [53.8 kB]
Get:10 http://archive.ubuntu.com/ubuntu bionic-updates/restricted amd64 Packages [266 kB]
Get:11 http://archive.ubuntu.com/ubuntu bionic-updates/universe amd64 Packages [2136 kB]
Get:12 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages [2244 kB]
Get:13 http://archive.ubuntu.com/ubuntu bionic-backports/universe amd64 Packages [11.4 kB]
Get:14 http://archive.ubuntu.com/ubuntu bionic-backports/main amd64 Packages [11.3 kB]
Get:15 http://security.ubuntu.com/ubuntu bionic-security/restricted amd64 Packages [237 kB]
Get:16 http://security.ubuntu.com/ubuntu bionic-security/main amd64 Packages [1816 kB]
Get:17 http://security.ubuntu.com/ubuntu bionic-security/universe amd64 Packages [1372 kB]
Get:18 http://security.ubuntu.com/ubuntu bionic-security/multiverse amd64 Packages [15.3 kB]
Fetched 21.5 MB in 2s (9791 kB/s)
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
libgdal-dev : Depends: default-libmysqlclient-dev but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
The command '/bin/sh -c groupadd -r ost && useradd -r -g ost ost && apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -yq python3 python3-pip git libgdal-dev python3-gdal libspatialindex-dev libgfortran3 wget unzip imagemagick nodejs npm' returned a non-zero code: 100
`
may you have a hint what I'm doing wrong.
best M
The text was updated successfully, but these errors were encountered: