Monthly Irrigation Water Demand of each grid estimated by Global EPIC (Dr. Tan)

(Original DirFdata/Monthly/Global


Data


Figures

Month Maximum(Ideal) Irrigation Demand Estimated Real Irrigation Withdrawal Max. - Real

Program

Sea_mask to epic_m

setenv LAND_SEA_FILE XYZ/Ro.Mean8701.asc

foreach HEADER ( "epic_m" "epic-real_m" )
	foreach MONTH ( 1 2 3 4 5 6 7 8 9 10 11 12 )
		setenv FILE_NAME_BASE XYZ/${HEADER}${MONTH}_106m3
		setenv ASC_FILE_NAME  ${FILE_NAME_BASE}.asc
		setenv SAVE_FILE_NAME XYZ/${HEADER}_org${MONTH}_106m3.asc
		\cp -fR ${FILE_NAME_BASE}.asc ${SAVE_FILE_NAME}

		bin/asc_calc ${SAVE_FILE_NAME} 'where' ${LAND_SEA_FILE} '>' 0.0 > ${ASC_FILE_NAME}
		bin/asc2xyz ${ASC_FILE_NAME} ${FILE_NAME_BASE}.xyz
		echo '***** Made : '${FILE_NAME_BASE}.xyz
	end
end

Calc. difference

foreach MONTH ( 1 2 3 4 5 6 7 8 9 10 11 12 )
	setenv MAX_FILE  XYZ/epic_m${MONTH}_106m3.asc
	setenv REAL_FILE XYZ/epic-real_m${MONTH}_106m3.asc

	bin/asc_calc ${MAX_FILE} '-' ${REAL_FILE} \
		'where' ${MAX_FILE} '>' 0.0 \
		> XYZ/epic-diff_m${MONTH}_106m3.asc
	echo '*****Done : month='${MONTH}
end

Making figures

foreach HEADER ( "epic-diff" )
	setenv TARGET ${HEADER}'*_106m3'

	bin/global.gmt   ${TARGET:q}
	bin/makeimage.sh ${TARGET:q}
	bin/copydata.sh  ${TARGET:q} ${ARCHIVE_DIR}/result/global/monthly
end