source: codes/icosagcm/devel/Python/test/get_MPAS_grids.sh @ 617

Last change on this file since 617 was 617, checked in by dubos, 6 years ago

devel : tests for unstructured-mesh prototype

  • Property svn:executable set to *
File size: 753 bytes
Line 
1#!/bin/bash
2
3function get_grid()
4{
5  GRID=$1
6  if [ -f $GRID ];
7  then
8      echo "Grid file $GRID is already there."
9  else
10      FILE=$2
11      rm -f $FILE
12#      wget "http://www2.mmm.ucar.edu/projects/mpas/atmosphere_meshes/$FILE"
13      scp ${user}@forge.ipsl.fr:/home/dubos/grids/$FILE . && tar xzf $FILE $GRID
14  fi
15}
16
17echo "Usage : get_MPAS_grids.sh username SIZE1 SIZE2 ..."
18echo "where username is your username on forge.ipsl.fr ;"
19echo "optional arguments SIZEx are among : x1.163842 x1.655362 x1.2621442 x1.5898242 x4.163842"
20echo "By default, download small meshes for sizes 2562 10242 40962"
21
22user=$1 ; shift
23SIZES="x1.2562 x1.10242 x1.40962 x4.163842 $*"
24
25cd grids
26
27for SIZE in $SIZES ; do
28    get_grid "$SIZE.grid.nc" "$SIZE.tar.gz" 
29done
Note: See TracBrowser for help on using the repository browser.