Skip to content

Commit

Permalink
Sen2like 4.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
pat-tpz committed Dec 15, 2022
1 parent c102d83 commit 016e7e7
Show file tree
Hide file tree
Showing 110 changed files with 5,259 additions and 3,841 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ The main goal of __Sen2Like__ is to generate Sentinel-2 like harmonised/fused su

It is a contribution to on going worldwide initiatives (*NASA-HLS, Force, CESBIO [2],[3]) undertook to facilitate higher level processing starting from harmonized data.

The __Sen2Like__ framework is a scientific and open source software. In its current implementation version (*November 2020*), it combines Landsat-8 and Sentinel-2 data products.
The __Sen2Like__ framework is a scientific and open source software. In its current implementation version (*December 2022*), it combines Landsat-8 and Sentinel-2 data products.
Level 1 and Level 2 input Landsat 8 (LS8) products are processed to be harmonized with Sentinel-2 data (S2).
The two following ARD product types are generated:
* Harmonized Surface Reflectance Products (Level 2H) - at 30m of resolution,
Expand All @@ -36,7 +36,7 @@ It is therefore possible, to cover large geographic extent with a __seamless ima
It is worth noting that the overall accuracy of your final ARD product strongly depends on the accuracy of sen2like auxiliary data. Two categories of auxiliary data are important: the raster reference for geometric corrections and the meteorological data for atmospheric corrections. Regarding atmospheric corrections, one possibility is to use data from the Copernicus Atmosphere Monitoring Service [9]. The Sen2Like team prepared a dedicated CAMS monthly dataset for the Year 2020, available from [here](http://185.178.85.51/CAMS/). Please refer to this short [description](http://185.178.85.51/CAMS/Readme_CAMS2020.txt) for additional information.

For further details on the format specification of the harmonized products or the functionalities of the Sen2Like software, please
refer to the [Product Format Specification](https://github.com/senbox-org/sen2like/blob/master/sen2like/docs/source/S2-PDGS-MPC-L2HF-PFS-v1.0.pdf), and the [User Manual v1.5](https://github.com/senbox-org/sen2like/blob/master/sen2like/docs/source/S2-SEN2LIKE-UM-V1.5.pdf).
refer to the [Product Format Specification](https://github.com/senbox-org/sen2like/blob/master/sen2like/docs/source/S2-PDGS-MPC-L2HF-PFS-v1.1.pdf), and the [User Manual v1.6](https://github.com/senbox-org/sen2like/blob/master/sen2like/docs/source/S2-SEN2LIKE-UM-V1.6.pdf).

## Publications and Contacts
**Yearning to know more ? Check out**
Expand All @@ -57,7 +57,7 @@ And the following research papers :



**Learn how to use Sen2Like**, have a look at the [User Manual](https://github.com/senbox-org/sen2like/blob/master/sen2like/docs/source/S2-SEN2LIKE-UM-V1.5.pdf).
**Learn how to use Sen2Like**, have a look at the [User Manual](https://github.com/senbox-org/sen2like/blob/master/sen2like/docs/source/S2-SEN2LIKE-UM-V1.6.pdf).

**Get help**, contact us at sen2like@telespazio.com.

Expand Down
5 changes: 5 additions & 0 deletions sen2like/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# exclude all
*
# but not what we want to send in the build context
!requirements.txt
!sen2like
3 changes: 2 additions & 1 deletion sen2like/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@ docs/source/modules
/docs/coverage/
/doc-generated.txt
dist/
sen2cor/
sen2cor/
**/delivery/
43 changes: 33 additions & 10 deletions sen2like/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
# docker image baser on miniconda image (debian:latest)
FROM continuumio/miniconda3

# install in curent docker image mesa-glx
RUN apt-get update && apt-get install -y libgl1-mesa-glx
FROM continuumio/miniconda3 AS build
LABEL stage=sen2like_build

# set the working dir to /usr/local/sen2like
WORKDIR /usr/local/sen2like
Expand All @@ -13,14 +11,39 @@ COPY ./requirements.txt .
# create sen2like env from requirement
RUN conda create -n sen2like --file requirements.txt -c conda-forge

# Install conda-pack:
RUN conda install -c conda-forge conda-pack

# Use conda-pack to create a standalone enviornment
# in /venv:
RUN conda-pack -n sen2like -o /tmp/env.tar && \
mkdir /venv && cd /venv && tar xf /tmp/env.tar && \
rm /tmp/env.tar

# We've put venv in same path it'll be in final image,
# so now fix up paths:
RUN /venv/bin/conda-unpack

# FINAL IMAGE
FROM debian:bullseye-slim AS runtime

# Copy /venv from the previous stage:
COPY --from=build /venv /venv

# install in curent docker image mesa-glx
RUN apt-get update && apt-get install -y libgl1-mesa-glx

# set PATH with venv
ENV VIRTUAL_ENV=/venv
ENV PATH="$VIRTUAL_ENV/bin:$PATH"

# set the working dir to /usr/local/sen2like
WORKDIR /usr/local/sen2like

# copy script code to run when container is started:
COPY ./sen2like .

# set sne2like.py executable
# set sen2like.py executable
RUN chmod +x /usr/local/sen2like/sen2like.py

# initialise conda for all shells
RUN conda init bash

# force activation of sen2like env on bash
RUN echo "conda activate sen2like" >> ~/.bashrc
ENTRYPOINT ["./sen2like.py"]
Loading

0 comments on commit 016e7e7

Please sign in to comment.