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

Add support for new Sentinel-2C platform. #165

Open
wants to merge 8 commits into
base: dev
Choose a base branch
from
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM 018923174646.dkr.ecr.us-west-2.amazonaws.com/hls-base-3.5.1
FROM 018923174646.dkr.ecr.us-west-2.amazonaws.com/hls-base:36
ENV PREFIX=/usr/local \
SRC_DIR=/usr/local/src \
GCTPLIB=/usr/local/lib \
Expand Down Expand Up @@ -106,13 +106,14 @@ RUN cd ${SRC_DIR}/trim \

COPY ./hls_libs/L8like/bandpass_parameter.S2A.txt ${PREFIX}/bandpass_parameter.S2A.txt
COPY ./hls_libs/L8like/bandpass_parameter.S2B.txt ${PREFIX}/bandpass_parameter.S2B.txt
COPY ./hls_libs/L8like/bandpass_parameter.S2C.txt ${PREFIX}/bandpass_parameter.S2C.txt

RUN pip3 install --upgrade awscli
RUN pip3 install click==7.1.2
RUN pip3 install rio-cogeo==1.1.10 --no-binary rasterio --user
RUN pip3 install git+https://github.com/NASA-IMPACT/[email protected]

RUN pip3 install git+https://github.com/NASA-IMPACT/hls-metadata@v2.5
RUN pip3 install git+https://github.com/NASA-IMPACT/hls-metadata@v2.6

RUN pip3 install git+https://github.com/NASA-IMPACT/[email protected]

Expand Down
8 changes: 8 additions & 0 deletions hls_libs/L8like/bandpass_parameter.S2C.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
slope_2C offset_2C
1.003 -0.0
0.9851 -0.0027
1.0038 -0.0009
0.9718 0.0011
0.9995 -0.0003
0.9994 -0.0007
0.991 0.0004
2 changes: 1 addition & 1 deletion scripts/sentinel_granule.sh
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ cloud_cover_valid=$(check_sentinel_clouds "$xml_safe")

cd "$safegranuledir"
# Run Fmask
run_Fmask.sh >> fmask_out.txt
/usr/local/MATLAB/application/run_Fmask_4_7.sh /usr/local/MATLAB/R2022b /usr/local/MATLAB/application/AuxiData/ >> fmask_out.txt
wait
fmask_file=$(cat fmask_out.txt)
echo "$fmask_file"
Expand Down
Loading