Skip to content

Commit 5de8289

Browse files
committed
mod_domain.sh back to main status
1 parent e0111d3 commit 5de8289

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

mod_domain.sh

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
#!/usr/bin/env bash
22

3-
surface_file="/p/project1/cjibg36/jibg3674/eCLM_static-file-generator/mksurfdata/surfdata_EUR-11_hist_78pfts_CMIP6_simyr2005_c251022.nc"
4-
# domain_file=domain.nc
5-
# landmask_file=landmask.nc
3+
surface_file=surface.nc
4+
domain_file=domain.nc
5+
landmask_file=landmask.nc
66

77
ncap2 -O -s 'where(LONGXY<0) LONGXY=LONGXY+360' ${surface_file} temp.nc
8-
# mv temp.nc ${surface_file}
9-
10-
# ncap2 -O -s 'where(xc<0) xc=xc+360' ${domain_file} temp.nc
11-
# ncap2 -O -s 'where(xv<0) xv=xv+360' temp.nc ${domain_file}
12-
#
13-
# ncrename -v LANDMASK,mask -v FRAC,frac ${landmask_file}
14-
# ncks -A -v mask ${landmask_file} ${domain_file}
15-
# ncks -A -v frac ${landmask_file} ${domain_file}
8+
mv temp.nc ${surface_file}
9+
10+
ncap2 -O -s 'where(xc<0) xc=xc+360' ${domain_file} temp.nc
11+
ncap2 -O -s 'where(xv<0) xv=xv+360' temp.nc ${domain_file}
12+
13+
ncrename -v LANDMASK,mask -v FRAC,frac ${landmask_file}
14+
ncks -A -v mask ${landmask_file} ${domain_file}
15+
ncks -A -v frac ${landmask_file} ${domain_file}

0 commit comments

Comments
 (0)