cd /global/project/projectdirs/m1867/smhagos/EAMONSOON/inputdata
cp EAMCONTROL01.elm.r.1980-03-01-00000.nc EAMCONTROL01.elm.r.1980-03-01-00000_NH60E.nc
cp EAMCONTROL01.elm.r.1981-03-01-00000.nc EAMCONTROL01.elm.r.1981-03-01-00000_NH60E.nc
cp EAMCONTROL01.elm.r.1982-03-01-00000.nc EAMCONTROL01.elm.r.1982-03-01-00000_NH60E.nc
cp EAMCONTROL01.elm.r.1983-03-01-00000.nc EAMCONTROL01.elm.r.1983-03-01-00000_NH60E.nc
cp EAMCONTROL01.elm.r.1984-03-01-00000.nc EAMCONTROL01.elm.r.1984-03-01-00000_NH60E.nc
cp EAMCONTROL01.elm.r.1985-03-01-00000.nc EAMCONTROL01.elm.r.1985-03-01-00000_NH60E.nc
cp EAMCONTROL01.elm.r.1986-03-01-00000.nc EAMCONTROL01.elm.r.1986-03-01-00000_NH60E.nc
cp EAMCONTROL01.elm.r.1987-03-01-00000.nc EAMCONTROL01.elm.r.1987-03-01-00000_NH60E.nc
cp EAMCONTROL01.elm.r.1988-03-01-00000.nc EAMCONTROL01.elm.r.1988-03-01-00000_NH60E.nc
cp EAMCONTROL01.elm.r.1989-03-01-00000.nc EAMCONTROL01.elm.r.1989-03-01-00000_NH60E.nc
cp EAMCONTROL01.elm.r.1990-03-01-00000.nc EAMCONTROL01.elm.r.1990-03-01-00000_NH60E.nc
cp EAMCONTROL01.elm.r.1991-03-01-00000.nc EAMCONTROL01.elm.r.1991-03-01-00000_NH60E.nc
cp EAMCONTROL01.elm.r.1992-03-01-00000.nc EAMCONTROL01.elm.r.1992-03-01-00000_NH60E.nc
cp EAMCONTROL01.elm.r.1993-03-01-00000.nc EAMCONTROL01.elm.r.1993-03-01-00000_NH60E.nc
cp EAMCONTROL01.elm.r.1994-03-01-00000.nc EAMCONTROL01.elm.r.1994-03-01-00000_NH60E.nc
cp EAMCONTROL01.elm.r.1995-03-01-00000.nc EAMCONTROL01.elm.r.1995-03-01-00000_NH60E.nc
cp EAMCONTROL01.elm.r.1996-03-01-00000.nc EAMCONTROL01.elm.r.1996-03-01-00000_NH60E.nc
cp EAMCONTROL01.elm.r.1997-03-01-00000.nc EAMCONTROL01.elm.r.1997-03-01-00000_NH60E.nc
cp EAMCONTROL01.elm.r.1998-03-01-00000.nc EAMCONTROL01.elm.r.1998-03-01-00000_NH60E.nc
cp EAMCONTROL01.elm.r.1999-03-01-00000.nc EAMCONTROL01.elm.r.1999-03-01-00000_NH60E.nc
cp EAMCONTROL01.elm.r.2000-03-01-00000.nc EAMCONTROL01.elm.r.2000-03-01-00000_NH60E.nc
cp EAMCONTROL01.elm.r.2001-03-01-00000.nc EAMCONTROL01.elm.r.2001-03-01-00000_NH60E.nc
cp EAMCONTROL01.elm.r.2002-03-01-00000.nc EAMCONTROL01.elm.r.2002-03-01-00000_NH60E.nc
cp EAMCONTROL01.elm.r.2003-03-01-00000.nc EAMCONTROL01.elm.r.2003-03-01-00000_NH60E.nc
cp EAMCONTROL01.elm.r.2004-03-01-00000.nc EAMCONTROL01.elm.r.2004-03-01-00000_NH60E.nc
cp EAMCONTROL01.elm.r.2005-03-01-00000.nc EAMCONTROL01.elm.r.2005-03-01-00000_NH60E.nc
cp EAMCONTROL01.elm.r.2006-03-01-00000.nc EAMCONTROL01.elm.r.2006-03-01-00000_NH60E.nc
cp EAMCONTROL01.elm.r.2007-03-01-00000.nc EAMCONTROL01.elm.r.2007-03-01-00000_NH60E.nc
cp EAMCONTROL01.elm.r.2008-03-01-00000.nc EAMCONTROL01.elm.r.2008-03-01-00000_NH60E.nc
cp EAMCONTROL01.elm.r.2009-03-01-00000.nc EAMCONTROL01.elm.r.2009-03-01-00000_NH60E.nc
cp EAMCONTROL01.elm.r.2010-03-01-00000.nc EAMCONTROL01.elm.r.2010-03-01-00000_NH60E.nc
cp EAMCONTROL01.elm.r.2011-03-01-00000.nc EAMCONTROL01.elm.r.2011-03-01-00000_NH60E.nc
cp EAMCONTROL01.elm.r.2012-03-01-00000.nc EAMCONTROL01.elm.r.2012-03-01-00000_NH60E.nc
cp EAMCONTROL01.elm.r.2013-03-01-00000.nc EAMCONTROL01.elm.r.2013-03-01-00000_NH60E.nc
cp EAMCONTROL01.elm.r.2014-03-01-00000.nc EAMCONTROL01.elm.r.2014-03-01-00000_NH60E.nc
cd -
sed 's/YEAR/1981/g' swap_years_template.ncl > swap_years.ncl;sed 's/YEAR/1981/g' swap_years_pft_template.ncl > swap_years_pft.ncl;csh replace_variables_pft.csh
sed 's/YEAR/1982/g' swap_years_template.ncl > swap_years.ncl;sed 's/YEAR/1982/g' swap_years_pft_template.ncl > swap_years_pft.ncl;csh replace_variables_pft.csh
sed 's/YEAR/1983/g' swap_years_template.ncl > swap_years.ncl;sed 's/YEAR/1983/g' swap_years_pft_template.ncl > swap_years_pft.ncl;csh replace_variables_pft.csh
sed 's/YEAR/1984/g' swap_years_template.ncl > swap_years.ncl;sed 's/YEAR/1984/g' swap_years_pft_template.ncl > swap_years_pft.ncl;csh replace_variables_pft.csh
sed 's/YEAR/1985/g' swap_years_template.ncl > swap_years.ncl;sed 's/YEAR/1985/g' swap_years_pft_template.ncl > swap_years_pft.ncl;csh replace_variables_pft.csh
sed 's/YEAR/1986/g' swap_years_template.ncl > swap_years.ncl;sed 's/YEAR/1986/g' swap_years_pft_template.ncl > swap_years_pft.ncl;csh replace_variables_pft.csh
sed 's/YEAR/1987/g' swap_years_template.ncl > swap_years.ncl;sed 's/YEAR/1987/g' swap_years_pft_template.ncl > swap_years_pft.ncl;csh replace_variables_pft.csh
sed 's/YEAR/1988/g' swap_years_template.ncl > swap_years.ncl;sed 's/YEAR/1988/g' swap_years_pft_template.ncl > swap_years_pft.ncl;csh replace_variables_pft.csh
sed 's/YEAR/1989/g' swap_years_template.ncl > swap_years.ncl;sed 's/YEAR/1989/g' swap_years_pft_template.ncl > swap_years_pft.ncl;csh replace_variables_pft.csh
sed 's/YEAR/1990/g' swap_years_template.ncl > swap_years.ncl;sed 's/YEAR/1990/g' swap_years_pft_template.ncl > swap_years_pft.ncl;csh replace_variables_pft.csh
sed 's/YEAR/1991/g' swap_years_template.ncl > swap_years.ncl;sed 's/YEAR/1991/g' swap_years_pft_template.ncl > swap_years_pft.ncl;csh replace_variables_pft.csh
sed 's/YEAR/1992/g' swap_years_template.ncl > swap_years.ncl;sed 's/YEAR/1992/g' swap_years_pft_template.ncl > swap_years_pft.ncl;csh replace_variables_pft.csh
sed 's/YEAR/1993/g' swap_years_template.ncl > swap_years.ncl;sed 's/YEAR/1993/g' swap_years_pft_template.ncl > swap_years_pft.ncl;csh replace_variables_pft.csh
sed 's/YEAR/1994/g' swap_years_template.ncl > swap_years.ncl;sed 's/YEAR/1994/g' swap_years_pft_template.ncl > swap_years_pft.ncl;csh replace_variables_pft.csh
sed 's/YEAR/1995/g' swap_years_template.ncl > swap_years.ncl;sed 's/YEAR/1995/g' swap_years_pft_template.ncl > swap_years_pft.ncl;csh replace_variables_pft.csh
sed 's/YEAR/1996/g' swap_years_template.ncl > swap_years.ncl;sed 's/YEAR/1996/g' swap_years_pft_template.ncl > swap_years_pft.ncl;csh replace_variables_pft.csh
sed 's/YEAR/1997/g' swap_years_template.ncl > swap_years.ncl;sed 's/YEAR/1997/g' swap_years_pft_template.ncl > swap_years_pft.ncl;csh replace_variables_pft.csh
sed 's/YEAR/1998/g' swap_years_template.ncl > swap_years.ncl;sed 's/YEAR/1998/g' swap_years_pft_template.ncl > swap_years_pft.ncl;csh replace_variables_pft.csh
sed 's/YEAR/1999/g' swap_years_template.ncl > swap_years.ncl;sed 's/YEAR/1999/g' swap_years_pft_template.ncl > swap_years_pft.ncl;csh replace_variables_pft.csh
sed 's/YEAR/2000/g' swap_years_template.ncl > swap_years.ncl;sed 's/YEAR/2000/g' swap_years_pft_template.ncl > swap_years_pft.ncl;csh replace_variables_pft.csh
sed 's/YEAR/2001/g' swap_years_template.ncl > swap_years.ncl;sed 's/YEAR/2001/g' swap_years_pft_template.ncl > swap_years_pft.ncl;csh replace_variables_pft.csh
sed 's/YEAR/2002/g' swap_years_template.ncl > swap_years.ncl;sed 's/YEAR/2002/g' swap_years_pft_template.ncl > swap_years_pft.ncl;csh replace_variables_pft.csh
sed 's/YEAR/2003/g' swap_years_template.ncl > swap_years.ncl;sed 's/YEAR/2003/g' swap_years_pft_template.ncl > swap_years_pft.ncl;csh replace_variables_pft.csh
sed 's/YEAR/2004/g' swap_years_template.ncl > swap_years.ncl;sed 's/YEAR/2004/g' swap_years_pft_template.ncl > swap_years_pft.ncl;csh replace_variables_pft.csh
sed 's/YEAR/2005/g' swap_years_template.ncl > swap_years.ncl;sed 's/YEAR/2005/g' swap_years_pft_template.ncl > swap_years_pft.ncl;csh replace_variables_pft.csh
sed 's/YEAR/2006/g' swap_years_template.ncl > swap_years.ncl;sed 's/YEAR/2006/g' swap_years_pft_template.ncl > swap_years_pft.ncl;csh replace_variables_pft.csh
sed 's/YEAR/2007/g' swap_years_template.ncl > swap_years.ncl;sed 's/YEAR/2007/g' swap_years_pft_template.ncl > swap_years_pft.ncl;csh replace_variables_pft.csh
sed 's/YEAR/2008/g' swap_years_template.ncl > swap_years.ncl;sed 's/YEAR/2008/g' swap_years_pft_template.ncl > swap_years_pft.ncl;csh replace_variables_pft.csh
sed 's/YEAR/2009/g' swap_years_template.ncl > swap_years.ncl;sed 's/YEAR/2009/g' swap_years_pft_template.ncl > swap_years_pft.ncl;csh replace_variables_pft.csh
sed 's/YEAR/2010/g' swap_years_template.ncl > swap_years.ncl;sed 's/YEAR/2010/g' swap_years_pft_template.ncl > swap_years_pft.ncl;csh replace_variables_pft.csh
sed 's/YEAR/2011/g' swap_years_template.ncl > swap_years.ncl;sed 's/YEAR/2011/g' swap_years_pft_template.ncl > swap_years_pft.ncl;csh replace_variables_pft.csh
sed 's/YEAR/2012/g' swap_years_template.ncl > swap_years.ncl;sed 's/YEAR/2012/g' swap_years_pft_template.ncl > swap_years_pft.ncl;csh replace_variables_pft.csh
sed 's/YEAR/2013/g' swap_years_template.ncl > swap_years.ncl;sed 's/YEAR/2013/g' swap_years_pft_template.ncl > swap_years_pft.ncl;csh replace_variables_pft.csh
sed 's/YEAR/2014/g' swap_years_template.ncl > swap_years.ncl;sed 's/YEAR/2014/g' swap_years_pft_template.ncl > swap_years_pft.ncl;csh replace_variables_pft.csh



