badCD.sh

InfoInfo
Search:    

# badCD.sh
# This script moves the current day's raw and processed CD files to the Problem_Data/ folders. It also adds a warning to the Today's Plots webpage that there is a problem with the data.
# It can also be used to move other day's files to the Problem_Data/ folders.
# Written By Erik Johnson 8/27/2007
# Last Modified 9/4/07

YEAR=`date -u +%Y`
YY=`date -u +%y`
DAY=`date -u +%j`
#DAY=241

CDdir='/Volumes/physics_data/Ftp/MACCS_DATA/Raw/CD/Iridium/'${YEAR}'ir/'
CDAdir='/Volumes/physics_data/Ftp/MACCS_DATA/AugASCII/CD/'${YEAR}'ir/'
CDIdir='/Volumes/physics_data/Ftp/MACCS_DATA/IAGA2000/CD/'${YEAR}'ir/'
CDLdir='/Volumes/physics_data/Ftp/MACCS_DATA/LinePlots/PostScript/CD/'${YEAR}'ir/'
CDL2dir='/Volumes/physics_data/Ftp/MACCS_DATA/LinePlots/PNG/CD/'${YEAR}'ir/'

CDPdir='/Volumes/physics_data/Ftp/MACCS_DATA/Raw/CD/Iridium/'${YEAR}'ir/Problem_Data/'
CDAPdir='/Volumes/physics_data/Ftp/MACCS_DATA/AugASCII/CD/'${YEAR}'ir/Problem_Data/'
CDIPdir='/Volumes/physics_data/Ftp/MACCS_DATA/IAGA2000/CD/'${YEAR}'ir/Problem_Data/'
CDLPdir='/Volumes/physics_data/Ftp/MACCS_DATA/LinePlots/PostScript/CD/'${YEAR}'ir/Problem_Data/'
CDL2Pdir='/Volumes/physics_data/Ftp/MACCS_DATA/LinePlots/PNG/CD/'${YEAR}'ir/Problem_Data/'
# Move DAY's CD files to Problem_Data folders
mv ${CDdir}CD${YY}${DAY}.dat ${CDPdir}CD${YY}${DAY}.dat
mv ${CDAdir}CD${YY}${DAY}.dat ${CDAPdir}CD${YY}${DAY}.dat
mv ${CDIdir}CD${YY}${DAY}.dat ${CDIPdir}CD${YY}${DAY}.dat
mv ${CDLdir}cd${YY}${DAY}.ps ${CDLPdir}cd${YY}${DAY}.ps
mv ${CDL2dir}cd${YY}${DAY}.png ${CDL2Pdir}cd${YY}${DAY}.png

# Changes the iridium today website to the version with the CD warning
# Remove the comment symbols from this section if the new data is bad and the warning has not been added to the website
# Add the comment symbols back after running
# To remove the warning, run goodCDtoday.sh

# cd /Library/WebServer/Documents/space/
# mv iridiumtoday.html iridiumtoday.html.good
# mv iridiumtoday.html.badCD iridiumtoday.html

This is a Wiki Spot wiki. Wiki Spot is a non-profit organization that helps communities collaborate via wikis.