tquickjakosetup.sh - pism - [fork] customized build of PISM, the parallel ice sheet model (tillflux branch)
(HTM) git clone git://src.adamsgaard.dk/pism
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) LICENSE
---
tquickjakosetup.sh (978B)
---
1 #!/bin/bash
2
3 # Copyright (C) 2011-2012, 2015, 2020 the PISM authors
4
5 # executes all preprocessing actions appropriate to Jakobshavn case,
6 # with a particular selection of terminus rectangle
7
8 # assumes local presence of "regional-tools" script pism_regional.py
9 # scripts called here download large files if they are not already present
10 # result is file jako.nc
11
12 set -x
13 set -e
14
15 ./preprocess.sh
16
17 python pism_regional.py -i gr1km.nc -o jakomask.nc -x 360,382 -y 1135,1176 -b 50
18
19 ncks -O -d x,299,918 -d y,970,1394 gr1km.nc jako.nc
20 # rename x and y to avoid type clash (float in gr1km.nc and double in jako.nc)
21 ncrename -O -v x,x1 -v y,y1 jako.nc jako.nc
22 ncks -A -d x,299,918 -d y,970,1394 jakomask.nc jako.nc
23 ncap2 -A \
24 -s 'land_ice_area_fraction_retreat=0 * thk' \
25 -s 'where(thk > 0 || topg > 0) land_ice_area_fraction_retreat=1' \
26 -s 'land_ice_area_fraction_retreat@standard_name=""' \
27 -s 'land_ice_area_fraction_retreat@units="1"' \
28 jako.nc jako.nc