#!/bin/sh
# 
########################################################################
# FILENAME: AMV_reanme.sh                                     08/30/2013
#
# PURPOSE: Rename the archives from the old system to the new system
#	   Currently used only for 2013 for AMV and other area files
#
# AUTHOR: Carol Costanza
#         Antarctic Meteorolgical Research Center
#         Space Science and Engineering Center
#         University of Wisconsin-Madison
# 
########################################################################
# MODIFICATION HISTORY
#
# Created Carol Costanza August 30, 2013
#
########################################################################

# This shell script should be run on glaze or the machine which the files 
# are being renamed in the day directory of the archive you want to rename
# as user amrc. Copy this script into the directory day you want to rename

# The next 6 sets of commands get the variables that necessary to know the 
# day of the archive is in 6 different forms

echo "Which julian ddd?"
read j_day
echo "This is the julian day $j_day"

echo "Which dd?"
read day
echo "This is the day $day"

echo "Which mm?"
read month
echo "This is the month $month"

echo "Which yyyy?"
read year
echo "This is the year $year"

echo "Which y?"
read j_year

# These mv commands rename the files in the current directory to match the 
# new system of archive naming

# AREA files

# AMV Northern Hemisphere Hourly Composites 

mv AMVNH000 AMV.NH.$year.$month.$day.00Z.md
mv AMVNH001 AMV.NH.$year.$month.$day.01Z.md
mv AMVNH002 AMV.NH.$year.$month.$day.02Z.md
mv AMVNH003 AMV.NH.$year.$month.$day.03Z.md
mv AMVNH004 AMV.NH.$year.$month.$day.04Z.md
mv AMVNH005 AMV.NH.$year.$month.$day.05Z.md
mv AMVNH006 AMV.NH.$year.$month.$day.06Z.md
mv AMVNH007 AMV.NH.$year.$month.$day.07Z.md
mv AMVNH008 AMV.NH.$year.$month.$day.08Z.md
mv AMVNH009 AMV.NH.$year.$month.$day.09Z.md
mv AMVNH010 AMV.NH.$year.$month.$day.10Z.md
mv AMVNH011 AMV.NH.$year.$month.$day.11Z.md
mv AMVNH012 AMV.NH.$year.$month.$day.12Z.md
mv AMVNH013 AMV.NH.$year.$month.$day.13Z.md
mv AMVNH014 AMV.NH.$year.$month.$day.14Z.md
mv AMVNH015 AMV.NH.$year.$month.$day.15Z.md
mv AMVNH016 AMV.NH.$year.$month.$day.16Z.md
mv AMVNH017 AMV.NH.$year.$month.$day.17Z.md
mv AMVNH018 AMV.NH.$year.$month.$day.18Z.md
mv AMVNH019 AMV.NH.$year.$month.$day.19Z.md
mv AMVNH020 AMV.NH.$year.$month.$day.20Z.md
mv AMVNH021 AMV.NH.$year.$month.$day.21Z.md
mv AMVNH022 AMV.NH.$year.$month.$day.22Z.md
mv AMVNH023 AMV.NH.$year.$month.$day.23Z.md

# AMV Southern Hemisphere Hourly Composites 

mv AMVSH000 AMV.SH.$year.$month.$day.00Z.md
mv AMVSH001 AMV.SH.$year.$month.$day.01Z.md
mv AMVSH002 AMV.SH.$year.$month.$day.02Z.md
mv AMVSH003 AMV.SH.$year.$month.$day.03Z.md
mv AMVSH004 AMV.SH.$year.$month.$day.04Z.md
mv AMVSH005 AMV.SH.$year.$month.$day.05Z.md
mv AMVSH006 AMV.SH.$year.$month.$day.06Z.md
mv AMVSH007 AMV.SH.$year.$month.$day.07Z.md
mv AMVSH008 AMV.SH.$year.$month.$day.08Z.md
mv AMVSH009 AMV.SH.$year.$month.$day.09Z.md
mv AMVSH010 AMV.SH.$year.$month.$day.10Z.md
mv AMVSH011 AMV.SH.$year.$month.$day.11Z.md
mv AMVSH012 AMV.SH.$year.$month.$day.12Z.md
mv AMVSH013 AMV.SH.$year.$month.$day.13Z.md
mv AMVSH014 AMV.SH.$year.$month.$day.14Z.md
mv AMVSH015 AMV.SH.$year.$month.$day.15Z.md
mv AMVSH016 AMV.SH.$year.$month.$day.16Z.md
mv AMVSH017 AMV.SH.$year.$month.$day.17Z.md
mv AMVSH018 AMV.SH.$year.$month.$day.18Z.md
mv AMVSH019 AMV.SH.$year.$month.$day.19Z.md
mv AMVSH020 AMV.SH.$year.$month.$day.20Z.md
mv AMVSH021 AMV.SH.$year.$month.$day.21Z.md
mv AMVSH022 AMV.SH.$year.$month.$day.22Z.md
mv AMVSH023 AMV.SH.$year.$month.$day.23Z.md

# Psuedo-Color Hourly  Composites

mv AREA0301 Psuedo-Color.Composite.$year.$month.$day.00Z.area.gz
mv AREA0302 Psuedo-Color.Composite.$year.$month.$day.01Z.area.gz
mv AREA0303 Psuedo-Color.Composite.$year.$month.$day.02Z.area.gz
mv AREA0304 Psuedo-Color.Composite.$year.$month.$day.03Z.area.gz
mv AREA0305 Psuedo-Color.Composite.$year.$month.$day.04Z.area.gz
mv AREA0306 Psuedo-Color.Composite.$year.$month.$day.05Z.area.gz
mv AREA0307 Psuedo-Color.Composite.$year.$month.$day.06Z.area.gz
mv AREA0308 Psuedo-Color.Composite.$year.$month.$day.07Z.area.gz
mv AREA0309 Psuedo-Color.Composite.$year.$month.$day.08Z.area.gz
mv AREA0310 Psuedo-Color.Composite.$year.$month.$day.09Z.area.gz
mv AREA0311 Psuedo-Color.Composite.$year.$month.$day.10Z.area.gz
mv AREA0312 Psuedo-Color.Composite.$year.$month.$day.11Z.area.gz
mv AREA0313 Psuedo-Color.Composite.$year.$month.$day.12Z.area.gz
mv AREA0314 Psuedo-Color.Composite.$year.$month.$day.13Z.area.gz
mv AREA0315 Psuedo-Color.Composite.$year.$month.$day.14Z.area.gz
mv AREA0316 Psuedo-Color.Composite.$year.$month.$day.15Z.area.gz
mv AREA0317 Psuedo-Color.Composite.$year.$month.$day.16Z.area.gz
mv AREA0318 Psuedo-Color.Composite.$year.$month.$day.17Z.area.gz
mv AREA0319 Psuedo-Color.Composite.$year.$month.$day.18Z.area.gz
mv AREA0320 Psuedo-Color.Composite.$year.$month.$day.19Z.area.gz
mv AREA0321 Psuedo-Color.Composite.$year.$month.$day.20Z.area.gz
mv AREA0322 Psuedo-Color.Composite.$year.$month.$day.21Z.area.gz
mv AREA0323 Psuedo-Color.Composite.$year.$month.$day.22Z.area.gz
mv AREA0324 Psuedo-Color.Composite.$year.$month.$day.23Z.area.gz

# 3-hourly Arctic Shortwave Composities 
mv AREA1301 Arctic.Composite.4km.Shortwave.$year.$month.$day.00Z.area.gz
mv AREA1302 Arctic.Composite.4km.Shortwave.$year.$month.$day.03Z.area.gz
mv AREA1303 Arctic.Composite.4km.Shortwave.$year.$month.$day.06Z.area.gz
mv AREA1304 Arctic.Composite.4km.Shortwave.$year.$month.$day.09Z.area.gz
mv AREA1305 Arctic.Composite.4km.Shortwave.$year.$month.$day.12Z.area.gz
mv AREA1306 Arctic.Composite.4km.Shortwave.$year.$month.$day.15Z.area.gz
mv AREA1307 Arctic.Composite.4km.Shortwave.$year.$month.$day.18Z.area.gz
mv AREA1308 Arctic.Composite.4km.Shortwave.$year.$month.$day.21Z.area.gz

# 3-hourly Antarctic Longwave Composities
mv AREA2001 Antarctic.Composite.4km.Longwave.$year.$month.$day.00Z.area.gz
mv AREA2002 Antarctic.Composite.4km.Longwave.$year.$month.$day.03Z.area.gz
mv AREA2003 Antarctic.Composite.4km.Longwave.$year.$month.$day.06Z.area.gz
mv AREA2004 Antarctic.Composite.4km.Longwave.$year.$month.$day.09Z.area.gz
mv AREA2005 Antarctic.Composite.4km.Longwave.$year.$month.$day.12Z.area.gz
mv AREA2006 Antarctic.Composite.4km.Longwave.$year.$month.$day.15Z.area.gz
mv AREA2007 Antarctic.Composite.4km.Longwave.$year.$month.$day.18Z.area.gz
mv AREA2008 Antarctic.Composite.4km.Longwave.$year.$month.$day.21Z.area.gz

# Arctic 3-Hourly Shortwave Composites
mv AREA3001 Antarctic.Composite.4km.Shortwave.$year.$month.$day.00Z.area.gz
mv AREA3002 Antarctic.Composite.4km.Shortwave.$year.$month.$day.03Z.area.gz
mv AREA3003 Antarctic.Composite.4km.Shortwave.$year.$month.$day.06Z.area.gz
mv AREA3004 Antarctic.Composite.4km.Shortwave.$year.$month.$day.09Z.area.gz
mv AREA3005 Antarctic.Composite.4km.Shortwave.$year.$month.$day.12Z.area.gz
mv AREA3006 Antarctic.Composite.4km.Shortwave.$year.$month.$day.15Z.area.gz
mv AREA3007 Antarctic.Composite.4km.Shortwave.$year.$month.$day.18Z.area.gz
mv AREA3008 Antarctic.Composite.4km.Shortwave.$year.$month.$day.21Z.area.gz




