From a1e34b8fc1918bfaf9220c9fc4cd75da75c2d25e Mon Sep 17 00:00:00 2001 From: Nico Rey Date: Sun, 23 Aug 2020 14:45:19 -0300 Subject: [PATCH] Normalize meteor pictures for better color, delete non rectified image --- receive_meteor.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/receive_meteor.sh b/receive_meteor.sh index 0b883e0..93031a8 100755 --- a/receive_meteor.sh +++ b/receive_meteor.sh @@ -54,8 +54,10 @@ if [ -f "${METEOR_OUTPUT}/${3}.dec" ]; then convert "${METEOR_OUTPUT}/${3}-122.bmp" "${NOAA_OUTPUT}/image/${FOLDER_DATE}/${3}-122.jpg" log "Rectifying image to adjust aspect ratio" "INFO" python3 "${NOAA_HOME}/rectify.py" "${NOAA_OUTPUT}/image/${FOLDER_DATE}/${3}-122.jpg" + convert "${NOAA_OUTPUT}/image/${3}-122-rectified.jpg" -channel rgb -normalize "${NOAA_OUTPUT}/image/${3}-122-rectified.jpg" rm "${METEOR_OUTPUT}/${3}-122.bmp" rm "${METEOR_OUTPUT}/${3}.bmp" + rm "${NOAA_OUTPUT}/image/${FOLDER_DATE}/${3}-122.jpg" if [ -n "$CONSUMER_KEY" ]; then log "Posting to Twitter" "INFO" python3 "${NOAA_HOME}/post.py" "$1 EXPERIMENTAL ${START_DATE} ResoluciĆ³n completa: http://weather.reyni.co/image/${FOLDER_DATE}/${3}-122-rectified.jpg" "$7" "${NOAA_OUTPUT}/image/${FOLDER_DATE}/${3}-122-rectified.jpg"