# # 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/csim4 # Available grids are gx1v3 gx3 and gx3v4 set GRIDS = ( gx1v3 gx3 gx3v4 ) #------------------------------------------------------------- # There are the input files for the gx1v3 grid #------------------------------------------------------------- set FILES_gx1v3 = (AMIP_bcgx1v3_1976-1996_010817.nc \ AMIP_bcgx1v3_1styear_011127.nc \ AMIP_bcgx1v3_1styear_011127.nc.README \ global_gx1v3.grid \ global_gx1v3.kmt \ iced.0001-01-01.gx1v3 \ pop_frc_gx1v3_010815.nc ) set FILES_gx3 = (AMIP_bcgx3_1976-1996_011030.nc \ global_gx3.grid \ global_gx3.kmt \ iced.0001-01-01.gx3 \ pop_frc_gx3_010815.nc ) set FILES_gx3v4 = (global_gx3v4.grid \ global_gx3v4.kmt \ iced.0001-01-01.gx3v4 ) foreach grid ($GRIDS) if ($grid == 'gx1v3') then set FILES = ( $FILES_gx1v3) endif if ($grid == 'gx3') then set FILES = ( $FILES_gx3 ) endif if ($grid == 'gx3v4') then set FILES = ( $FILES_gx3v4 ) endif foreach file ($FILES) mswrite -t 730 $file ${MSS_BASE_DIR}/${grid}/${file} wait end end