[cam-users] CAM history files and mass storage
Jim Rosinski
rosinski@cgd.ucar.edu
Mon, 28 Oct 2002 16:04:15 -0700 (MST)
On Mon, 28 Oct 2002, Ghan, Steven J wrote:
> Your scripts provide utilities to substitute for msread and mswrite, but the
> code is still hardwired to use a directory structure that may not be
> compatible with other computer systems.
Huh? The intent was to provide template scripts which users could tailor to
their own needs without having to modify model code. There is no requirement
that whatever one comes up with must use aspects of a model-generated mswrite
command that "use a directory structure that may not be compatible with other
computer systems." For example, I've appended an example mswrite which just
copies the file to a /data/ directory.
> At the very least it would be helpful if the cam and ccsm documentation
> would tell the users which files need to be modified so that they can
> control the root directory for their archives.
See above (and below). But if you still want to modify model code I'd
encourage you to bring your suggestion to the attention of those working on
such things.
Jim Rosinski
Example mswrite that copies the file to a /data/ directory:
#!/bin/csh -f
while ( $#argv )
switch ( $1 )
case -t:
shift argv
shift argv
breaksw
case -w:
shift argv
shift argv
breaksw
default:
if ( `echo $1 | cut -c 1-1` != '/' ) then
set file = "$1"
endif
shift argv
endsw
end
set cmd = "cp -f $file /data/$user/"
echo "mswrite script is executing the following:"
echo $cmd
$cmd