Last change
on this file since 747 was
617,
checked in by dubos, 7 years ago
|
devel : tests for unstructured-mesh prototype
|
-
Property svn:executable set to
*
|
File size:
753 bytes
|
Rev | Line | |
---|
[617] | 1 | #!/bin/bash |
---|
| 2 | |
---|
| 3 | function 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 | |
---|
| 17 | echo "Usage : get_MPAS_grids.sh username SIZE1 SIZE2 ..." |
---|
| 18 | echo "where username is your username on forge.ipsl.fr ;" |
---|
| 19 | echo "optional arguments SIZEx are among : x1.163842 x1.655362 x1.2621442 x1.5898242 x4.163842" |
---|
| 20 | echo "By default, download small meshes for sizes 2562 10242 40962" |
---|
| 21 | |
---|
| 22 | user=$1 ; shift |
---|
| 23 | SIZES="x1.2562 x1.10242 x1.40962 x4.163842 $*" |
---|
| 24 | |
---|
| 25 | cd grids |
---|
| 26 | |
---|
| 27 | for SIZE in $SIZES ; do |
---|
| 28 | get_grid "$SIZE.grid.nc" "$SIZE.tar.gz" |
---|
| 29 | done |
---|
Note: See
TracBrowser
for help on using the repository browser.