tpreprocess.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 --- tpreprocess.sh (620B) --- 1 #!/bin/bash 2 3 ./sg_create_flowline.py 4 DATANAME=storglaciaren_flowline.nc 5 PISM_DATANAME=pism_$DATANAME 6 flowline.py -e -o $PISM_DATANAME $DATANAME 7 8 9 ./sg_create_3d.py 10 ncap2 -O -s "where(thk>0) ftt_mask=0;" pism_storglaciaren_3d.nc pism_storglaciaren_mask.nc 11 ncap2 -O -s "ice_area_specific_volume=0*ftt_mask; tillwat=0*ftt_mask;" pism_storglaciaren_3d.nc pism_storglaciaren_3d.nc 12 ncatted -a units,ice_area_specific_volume,o,c,"m3/m2" -a units,tillwat,o,c,"m" pism_storglaciaren_3d.nc 13 14 ./create_warming_climate.py sg_warming_1K.nc 15 16 # config file 17 CDLCONFIG=psg_config.cdl 18 PCONFIG=psg_config.nc 19 ncgen -o $PCONFIG $CDLCONFIG