Skip to content

Commit

Permalink
Merge pull request #166 from NASA-IMPACT/dev
Browse files Browse the repository at this point in the history
Merge dev into master in preparation for new release to support Sentinel S2C.
  • Loading branch information
sharkinsspatial authored Jan 22, 2025
2 parents c49b671 + d3575c2 commit 95c49f8
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 4 deletions.
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:v3.5.1
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
5 changes: 3 additions & 2 deletions scripts/sentinel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ else
# Copy all intermediate files to debug bucket.
echo "Copy files to debug bucket"
debug_bucket_key=s3://${debug_bucket}/${outputname}
aws s3 cp "$workingdir" "$debug_bucket_key" --recursive --acl public-read
aws s3 cp "$workingdir" "$debug_bucket_key" --recursive --profile gccprofile
fi

# Generate GIBS browse subtiles
Expand Down Expand Up @@ -247,7 +247,8 @@ for gibs_id_dir in "$gibs_dir"/* ; do
# Copy all intermediate files to debug bucket.
echo "Copy files to debug bucket"
debug_bucket_key=s3://${debug_bucket}/${outputname}
aws s3 cp "$gibs_id_dir" "$debug_bucket_key" --recursive --quiet --acl public-read
aws s3 cp "$gibs_id_dir" "$debug_bucket_key" --recursive --quiet \
--profile gccprofile
fi
fi
done
Expand Down
2 changes: 2 additions & 0 deletions scripts/sentinel_granule.sh
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,9 @@ xml_safe="${safedirectory}/MTD_MSIL1C.xml"
cloud_cover_valid=$(check_sentinel_clouds "$xml_safe")

cd "$safegranuledir"

# Run Fmask
echo "Running Fmask"
run_Fmask.sh >> fmask_out.txt
wait
fmask_file=$(cat fmask_out.txt)
Expand Down

0 comments on commit 95c49f8

Please sign in to comment.