# # This script will write all files in this directory to mss, putting # them in a directory with the grid name. # set echo on set MSS_BASE_DIR = /CCSM/inputdata/ice/cice # Available grids are gx1v3 gx1v4 gx3 and gx3v4 gx3v5 set GRIDS = ( gx1v3 gx1v4 gx1v5 gx3v5 1x1 ) #------------------------------------------------------------- # There are the input files for the gx1v3 grid #------------------------------------------------------------- set FILES_gx1v3 = (global_gx1v3.grid \ global_gx1v3.kmt \ iced.0001-01-01.gx1v3.1lay_20070209 \ iced.0001-01-01.gx1v3_20070209 \ iced.0001-01-01.gx1v3_20080212) set FILES_gx1v4 = (global_gx1v4.grid \ global_gx1v4.kmt \ iced.0001-01-01.gx1v4_20070209 \ iced.0001-01-01.gx1v4_20080212) set FILES_gx1v5 = (global_gx1v5.grid \ global_gx1v5.kmt \ global_gx1v5_grid.nc \ global_gx1v5_kmt.nc \ iced.0001-01-01.gx1v5_20070209 \ iced.0001-01-01.gx1v5_20080212) set FILES_gx3v5 = (global_gx3v5.grid \ global_gx3v5.kmt \ iced.0001-01-01.gx3v5_20070209 \ iced.0001-01-01.gx3v5_20080212) set FILES_1x1 = (AMIP_bc1x1_1976-1996.070323.stream.txt \ AMIP_bc1x1_1976-1996_050706.nc \ hadley.sst.1870-2003.1x1.050730.nc \ hadley.sst.1870-2003.1x1.070323.stream.txt \ sst_clim_hurrell_1x1.070323.stream.txt \ sst_clim_hurrell_1x1_050606.nc) foreach grid ($GRIDS) if ($grid == 'gx1v3') then set FILES = ( $FILES_gx1v3 ) endif if ($grid == 'gx1v4') then set FILES = ( $FILES_gx1v4 ) endif if ($grid == 'gx3') then set FILES = ( $FILES_gx3 ) endif if ($grid == 'gx3v4') then set FILES = ( $FILES_gx3v4 ) endif if ($grid == 'gx3v5') then set FILES = ( $FILES_gx3v5 ) endif if ($grid == '1x1') then set FILES = ( $FILES_1x1 ) endif foreach file ($FILES) mswrite -t 32767 -P 93300365 $file ${MSS_BASE_DIR}/${file} wait end end