This post outlines a process chain for comparing the variations between rainfall and Vertical Water Balance (VWB) on the one hand and the Earth´s land water content on the other. The results are presented in the next post.
Prerequisites
To follow the processing steps in this post you must set up a Spatial Data Integrated Development Environment (SPIDE), download and install Karttur’s GeoImagine Framework from Github. You must also have completed the processing of Tropical Rainfall Measurement Mission (TRMM) rainfall, the VWB, and the equivalent water depth from the Gravity Recovery and Climate Experiment (GRACE), as described in earlier posts of this project.
Drivers of Earth’s water storage
In the water cycle, precipitation is the ultimate source for the water content in land areas. Not all precipitation that falls contributes towards filling the Earth’s water content. A fraction of the precipitated water is directly transferred back to the atmosphere by evapotranspiration. Theoretically the Vertical Water Balance (VWB) should thus be a better predictor for the variations in the equivalent water pillar depth compared to gross precipitation.
In this section, the correlation between precipitation and VWB as drivers (masters) and the equivalent water pillar as a slave is tested using graphics and local (per cell) cross correlation. The correlations ignore the redistribution of water over land from upstream to downstream.
Process chain
The principal steps for creating estimations, maps and animations relating water input (precipitation and VWB) to water content (equivalent water pillar depth) over Africa using Karttur’s GeoImagine Framework include:
- Overlay comparison
- Time series processing
- Mosaic
- Export media
In the Framework a process chain can be built as a series of calls to xml coded instructions. This section contains the calls and the remaining parts of the post details each called xml. As noted above, the results are available in the next post.
###################################
###################################
### TRMM vs GRACE analysis ###
###################################
###################################
## The processing requires that the TRMM and GRACE processing above are completed ##
## trendcomp_createpalettes.xm
###################################
### Overlay comparison ###
###################################
## Compare trends from GRACE and TRMM ##
#AfricaSubSahara_TRMM-GRACE-0370_dualtrendcomp_2003-2016.xml
###################################
### Time Series Processing ###
###################################
## Cross correlation between TRMM (master) and GRACE (slave) ##
AfricaSubSahara_TRMM-GRACE-0385_layer-x-corr_2003-2016.xml
###################################
### Mosaic ###
###################################
## Mosaic the TRMM-GRACE (Master-Slave) cross correlation results for Sub Saharan Africa ##
AfricaSubSahara_TRMM-GRACE-0625_mosaic_layer-x-corr_2003-2016.xml
## Mosaic the trend comparison TRMM-GRACE for Sub Saharan Africa ##
#AfricaSubSahara_TRMM-GRACE-0630_mosaic_trendcomp_2003-2016.xml
###################################
### Export media ###
###################################
## Export TRMM-GRACE (Master-Slave) cross correlation ##
#AfricaSubSahara050_TRMM-GRACE-ExporttoByte_crosscorr.xml
## Export trend comparison TRMM-GRACE results ##
#AfricaSubSahara050_TRMM-GRACE-ExporttoByte_trendcomp.xml
## Create TRMM-GRACE overlay movieframes ##
#AfricaSubSahara055_GRACE+TRMM-overlaymovieframes_M.xml
#AfricaSubSahara_TRMM-GRACE-0951_overlay-movieframes_M.xml
## Create Movieclock and scripts for TRMM + GRACE overlay movie with movieclock overlay
#AfricaSubSahara_TRMM-GRACE-0960_movieclock_M.xml
###################################
###################################
### VWB vs GRACE analysis ###
###################################
###################################
## The processing requires that the VWB and GRACE processing above are completed ##
###################################
### Overlay comparison ###
###################################
## Compare trends from GRACE and VWB ##
#AfricaSubSahara_VWB-GRACE-0370_dualtrendcomp_2003-2016.xml
###################################
### Time Series Processing ###
###################################
## Cross correlation between TRMM (master) and GRACE (slave) ##
#AfricaSubSahara_VWB-GRACE-0385_layer-x-corr_2003-2016.xml
###################################
### Mosaic ###
###################################
## Mosaic the VWB-GRACE (Master-Slave) cross correlation results for Sub Saharan Africa ##
AfricaSubSahara_VWB-GRACE-0625_mosaic_layer-x-corr_2003-2016.xml
## Mosaic the trend comparison VWB-GRACE for Sub Saharan Africa ##
#AfricaSubSahara_VWB-GRACE-0630_mosaic_trendcomp_2003-2016.xml
###################################
### Export media ###
###################################
## Export VWB-GRACE (Master-Slave) cross correlation ##
AfricaSubSahara_VWB-GRACE-0925-ExporttoByte_layer-x-corr_2003-2016.xml
## Export trend comparison VWB-GRACE results ##
#AfricaSubSahara_VWB-GRACE-0930-ExporttoByte_trendcomp.xml
## Create VWB-GRACE overlay movieframes ##
#AfricaSubSahara_VWB-GRACE-0951_overlay-movieframes_M.xml
## Create Movieclock and scripts for TRMM + GRACE overlay movie with movieclock overlay
#AfricaSubSahara_VWB-GRACE-0960_movieclock_M.xml
Overlay comparison
As part of the processing of TRMM rainfall, VWB and GRACE equivalent water pillar depth the absolute changes of each has already been calculated. Here, a special overlay process is applied comparing two overlapping layers depicting changes or trends. The overlay identifies the congruence between the two change layers in 9 classes:
1st layer | ||||
---|---|---|---|---|
Increase | No change | Decrease | ||
Increase | both increasing | 1st no change 2nd increasing |
1st decreasing 2nd increasing |
|
2nd layer | No change | 1st increasing 2nd no change |
No change in either | 1st decreasing 2nd no change |
Decrease | 1st increasing 2nd decreasing |
1st no change 2nd decreasing |
both decreasing |
The overlay can be done with any two change layers and here the overlay comparisons are done for layers including changes for all regions, and layers with only significant changes.
TRMM vs GRACE
<?xml version='1.0' encoding='utf-8'?>
<manageprocess>
<userproj userid = 'karttur' projectid = 'karttur-africasubsahara' tractid= 'karttur-africasubsahara' siteid = '*' plotid = '*' system = 'modis'></userproj>
<period startyear = "2003" endyear = "2016" timestep='timespan-A'></period>
<process processid = 'dualtrendscompmodistiles' version = '1.3'>
<overwrite>True</overwrite>
<parameters></parameters>
<srcpath volume = "travel" hdrfiletype = 'tif' datfiletype = 'tif'></srcpath>
<dstpath volume = "travel" hdrfiletype = 'tif' datfiletype = 'tif'></dstpath>
<srccomp>
<trmm-3b43v7-precip-change id = 'ptrend1' source = "trmm" product = "3b43" folder = "rainfall-A-change" band = "trmm-3b43v7-precip-change" prefix = "trmm-3b43v7-precip-change" suffix = "model@p-v7-f-m-A-1deg">
</trmm-3b43v7-precip-change>
<grace-ave-change id = 'ptrend2' source = "NASA-GRACE" product = "cmwater" folder = "cmwater-A-change" band = "grace-ave-change" prefix = "grace-ave-change" suffix = "model@p-RL05-f-A-1deg">
</grace-ave-change>
</srccomp>
<dstcomp>
<trendcomp id = 'dst' source = "trmmgrace" product = "trmm-grace" folder = "trendcomp" band = "trendcomp" prefix = "trendcomp" suffix = "model@p-v7-RL05-1deg">
</trendcomp>
</dstcomp>
</process>
<process processid = 'dualtrendscompmodistiles' version = '1.3'>
<overwrite>True</overwrite>
<parameters></parameters>
<srcpath volume = "travel" hdrfiletype = 'tif' datfiletype = 'tif'></srcpath>
<dstpath volume = "travel" hdrfiletype = 'tif' datfiletype = 'tif'></dstpath>
<srccomp>
<trmm-3b43v7-precip-change id = 'ptrend1' source = "trmm" product = "3b43" folder = "rainfall-A-change" band = "trmm-3b43v7-precip-change" prefix = "trmm-3b43v7-precip-change" suffix = "model-v7-f-m-A-1deg">
</trmm-3b43v7-precip-change>
<grace-ave-change id = 'ptrend2' source = "NASA-GRACE" product = "cmwater" folder = "cmwater-A-change" band = "grace-ave-change" prefix = "grace-ave-change" suffix = "model-RL05-f-A-1deg">
</grace-ave-change>
</srccomp>
<dstcomp>
<trendcomp id = 'dst' source = "trmmgrace" product = "trmm-grace" folder = "trendcomp" band = "trendcomp" prefix = "trendcomp" suffix = "model-v7-RL05-1deg">
</trendcomp>
</dstcomp>
</process>
</manageprocess>
VWB vs GRACE
<?xml version='1.0' encoding='utf-8'?>
<manageprocess>
<userproj userid = 'karttur' projectid = 'karttur-africasubsahara' tractid= 'karttur-africasubsahara' siteid = '*' plotid = '*' system = 'modis'></userproj>
<period startyear = "2003" endyear = "2016" timestep='timespan-A'></period>
<process processid = 'dualtrendscompmodistiles' version = '1.3'>
<overwrite>True</overwrite>
<parameters></parameters>
<srcpath volume = "travel" hdrfiletype = 'tif' datfiletype = 'tif'></srcpath>
<dstpath volume = "travel" hdrfiletype = 'tif' datfiletype = 'tif'></dstpath>
<srccomp>
<trmm-3b43v7-precip-change id = 'ptrend1' source = "trmm" product = "3b43" folder = "rainfall-A-change" band = "trmm-3b43v7-precip-change" prefix = "trmm-3b43v7-precip-change" suffix = "model@p-v7-f-m-A-1deg">
</trmm-3b43v7-precip-change>
<grace-ave-change id = 'ptrend2' source = "NASA-GRACE" product = "cmwater" folder = "cmwater-A-change" band = "grace-ave-change" prefix = "grace-ave-change" suffix = "model@p-RL05-f-A-1deg">
</grace-ave-change>
</srccomp>
<dstcomp>
<trendcomp id = 'dst' source = "trmmgrace" product = "trmm-grace" folder = "trendcomp" band = "trendcomp" prefix = "trendcomp" suffix = "model@p-v7-RL05-1deg">
</trendcomp>
</dstcomp>
</process>
<process processid = 'dualtrendscompmodistiles' version = '1.3'>
<overwrite>True</overwrite>
<parameters></parameters>
<srcpath volume = "travel" hdrfiletype = 'tif' datfiletype = 'tif'></srcpath>
<dstpath volume = "travel" hdrfiletype = 'tif' datfiletype = 'tif'></dstpath>
<srccomp>
<trmm-3b43v7-precip-change id = 'ptrend1' source = "trmm" product = "3b43" folder = "rainfall-A-change" band = "trmm-3b43v7-precip-change" prefix = "trmm-3b43v7-precip-change" suffix = "model-v7-f-m-A-1deg">
</trmm-3b43v7-precip-change>
<grace-ave-change id = 'ptrend2' source = "NASA-GRACE" product = "cmwater" folder = "cmwater-A-change" band = "grace-ave-change" prefix = "grace-ave-change" suffix = "model-RL05-f-A-1deg">
</grace-ave-change>
</srccomp>
<dstcomp>
<trendcomp id = 'dst' source = "trmmgrace" product = "trmm-grace" folder = "trendcomp" band = "trendcomp" prefix = "trendcomp" suffix = "model-v7-RL05-1deg">
</trendcomp>
</dstcomp>
</process>
</manageprocess>
Time Series Processing
The time series process is restricted to cross correlations between monthly variations in a master (rainfall or VWB) driving a slave (equivalent water pillar depth). The cross correlations are done at pixel by pixel time series. Following the results from comparing different smoothing algorithms cross correlating climate indexes and TRMM, the layer to layer cross correlation was done using a 12 month naive kernel. The allowed lag was restricted to slave responses following 0 to 6 months after the master signal.
Precipitation as driver of water content
<?xml version='1.0' encoding='utf-8'?>
<africasubsahara>
<userproj userid = 'karttur' projectid = 'karttur-africasubsahara' tractid= 'karttur-africasubsahara' siteid = '*' plotid = '*' system = 'modis'></userproj>
<period startyear = "2003" startmonth='01' endyear = "2016" endmonth='12' timestep='M'></period>
<process processid = 'imagecrosstrendtsmodis' version = '1.3'>
<overwrite>False</overwrite>
<!-- default parameter values
normalize = 'False'
standardize = 'True'
naive = 'False'
additive = 'True'
yearfac = '1'
trend = 'spline'
prefilterseason = 'False'
kernel = '0'
forceseason = 'True'
abs = 'False'
savelags = -1
maxlag = 6
-->
<parameters
naive='True'
savelags='6'
xcrossobserved='True'
xcrosseason='True'
xcrosstendency='True'
xcrossresidual='True'
></parameters>
<srcpath volume = "travel" hdrfiletype = 'tif' datfiletype = 'tif'></srcpath>
<dstpath volume = "travel" hdrfiletype = 'tif' datfiletype = 'tif'></dstpath>
<srccomp>
<trmm-3b43v7-precip id ='master' source = "trmm" product = "3b43" folder = "rainfall" band = "trmm-3b43v7-precip" prefix = "rainfall" suffix = "v7-f-m-1deg">
</trmm-3b43v7-precip>
<grace-ave id = 'slave' source = "NASA-GRACE" product = "cmwater" folder = "cmwater" band = "grace-ave" prefix = "grace-ave" suffix = "RL05-f-1deg">
</grace-ave>
</srccomp>
<dstcomp>
<noeffect source = "trmmgrace" product = "trmm-xc-grace" suffix = "v7-RL05">
</noeffect>
</dstcomp>
</process>
</africasubsahara>
VWB as driver of water content
<?xml version='1.0' encoding='utf-8'?>
<africasubsahara>
<userproj userid = 'karttur' projectid = 'karttur-africasubsahara' tractid= 'karttur-africasubsahara' siteid = '*' plotid = '*' system = 'modis'></userproj>
<period startyear = "2003" startmonth='01' endyear = "2016" endmonth='12' timestep='M'></period>
<process processid = 'imagecrosstrendtsmodis' version = '1.3'>
<overwrite>False</overwrite>
<!-- default parameter values
normalize = 'False'
standardize = 'True'
naive = 'False'
additive = 'True'
yearfac = '1'
trend = 'spline'
prefilterseason = 'False'
kernel = '0'
forceseason = 'True'
abs = 'False'
savelags = -1
maxlag = 6
-->
<parameters
naive='True'
savelags='6'
xcrossobserved='True'
xcrosseason='True'
xcrosstendency='True'
xcrossresidual='True'
></parameters>
<srcpath volume = "travel" hdrfiletype = 'tif' datfiletype = 'tif'></srcpath>
<dstpath volume = "travel" hdrfiletype = 'tif' datfiletype = 'tif'></dstpath>
<srccomp>
<trmm-3b43v7-precip id ='master' source = "trmm" product = "3b43" folder = "rainfall" band = "trmm-3b43v7-precip" prefix = "rainfall" suffix = "v7-f-m-1deg">
</trmm-3b43v7-precip>
<grace-ave id = 'slave' source = "NASA-GRACE" product = "cmwater" folder = "cmwater" band = "grace-ave" prefix = "grace-ave" suffix = "RL05-f-1deg">
</grace-ave>
</srccomp>
<dstcomp>
<noeffect source = "trmmgrace" product = "trmm-xc-grace" suffix = "v7-RL05">
</noeffect>
</dstcomp>
</process>
</africasubsahara>
Mosaic
In this projects, the mosaicking is only done for the exports in the next step. In the mosaic process, the tiles are first concatenated and then cut to the actual coordinates of the defining region. Cell values and data type remain the same, but the data can be reprojected on the fly.
Mosaic TRMM vs GRACE cross correlation
<?xml version='1.0' encoding='utf-8'?>
<okadeltaproject>
<userproj userid = 'karttur' projectid = 'karttur-africasubsahara' tractid= 'karttur-africasubsahara' siteid = '*' plotid = '*' system = 'modis'></userproj>
<period startyear = "2003" endyear = "2016" timestep='timespan-M'></period>
<!-- Mosaic TRMM vs GRACE crosscorr -->
<process processid = 'MosaicModis' version = '1.3'>
<overwrite>False</overwrite>
<parameters t_epsg ='4326' xres='1.0' yres='1.0'></parameters>
<srcpath volume = "travel"></srcpath>
<dstpath volume = "travel"></dstpath>
<srccomp>
<obs-lag id = 'obs-lag' source = "trmmgrace" product = "trmm-xc-grace" folder = "xcorr" band = "obs-lag" prefix = "obs-lag" suffix = "v7-RL05-nadd-a1"></obs-lag>
<season-lag id = 'season-lag' source = "trmmgrace" product = "trmm-xc-grace" folder = "xcorr" band = "season-lag" prefix = "season-lag" suffix = "v7-RL05-nadd-a1"></season-lag>
<tendency-lag id = 'tendency-lag' source = "trmmgrace" product = "trmm-xc-grace" folder = "xcorr" band = "tendency-lag" prefix = "tendency-lag" suffix = "v7-RL05-nadd-a1"></tendency-lag>
<residual-lag id = 'residual-lag' source = "trmmgrace" product = "trmm-xc-grace" folder = "xcorr" band = "residual-lag" prefix = "residual-lag" suffix = "v7-RL05-nadd-a1"></residual-lag>
<obs-pearson id = 'obs-pearson' source = "trmmgrace" product = "trmm-xc-grace" folder = "xcorr" band = "obs-pearson" prefix = "obs-pearson" suffix = "v7-RL05-nadd-a1"></obs-pearson>
<season-pearson id = 'season-pearson' source = "trmmgrace" product = "trmm-xc-grace" folder = "xcorr" band = "season-pearson" prefix = "season-pearson" suffix = "v7-RL05-nadd-a1"></season-pearson>
<tendency-pearson id = 'tendency-pearson' source = "trmmgrace" product = "trmm-xc-grace" folder = "xcorr" band = "tendency-pearson" prefix = "tendency-pearson" suffix = "v7-RL05-nadd-a1"></tendency-pearson>
<residual-pearson id = 'residual-pearson' source = "trmmgrace" product = "trmm-xc-grace" folder = "xcorr" band = "residual-pearson" prefix = "residual-pearson" suffix = "v7-RL05-nadd-a1"></residual-pearson>
<obs-pearson-lag0 id = '1' source = "trmmgrace" product = "trmm-xc-grace" folder = "xcorr" band = "obs-pearson-lag0" prefix = "obs-pearson" suffix = "v7-RL05-nadd-a1"></obs-pearson-lag0>
<obs-pearson-lag1 id = '1a' source = "trmmgrace" product = "trmm-xc-grace" folder = "xcorr" band = "obs-pearson-lag1" prefix = "obs-pearson" suffix = "v7-RL05-nadd-a1"></obs-pearson-lag1>
<obs-pearson-lag2 id = '1b' source = "trmmgrace" product = "trmm-xc-grace" folder = "xcorr" band = "obs-pearson-lag2" prefix = "obs-pearson" suffix = "v7-RL05-nadd-a1"></obs-pearson-lag2>
<season-pearson-lag0 id = '2' source = "trmmgrace" product = "trmm-xc-grace" folder = "xcorr" band = "season-pearson-lag0" prefix = "season-pearson" suffix = "v7-RL05-nadd-a1"></season-pearson-lag0>
<season-pearson-lag1 id = '2sb' source = "trmmgrace" product = "trmm-xc-grace" folder = "xcorr" band = "season-pearson-lag1" prefix = "season-pearson" suffix = "v7-RL05-nadd-a1"></season-pearson-lag1>
<season-pearson-lag2 id = '2b' source = "trmmgrace" product = "trmm-xc-grace" folder = "xcorr" band = "season-pearson-lag2" prefix = "season-pearson" suffix = "v7-RL05-nadd-a1"></season-pearson-lag2>
<season-pearson-lag3 id = '2c' source = "trmmgrace" product = "trmm-xc-grace" folder = "xcorr" band = "season-pearson-lag3" prefix = "season-pearson-lag3" suffix = "v7-RL05-nadd-a1"></season-pearson-lag3>
<tendency-pearson-lag0 id = '3a' source = "trmmgrace" product = "trmm-xc-grace" folder = "xcorr" band = "tendency-pearson-lag0" prefix = "tendency-pearson" suffix = "v7-RL05-nadd-a1"></tendency-pearson-lag0>
<tendency-pearson-lag1 id = '3b' source = "trmmgrace" product = "trmm-xc-grace" folder = "xcorr" band = "tendency-pearson-lag1" prefix = "tendency-pearson" suffix = "v7-RL05-nadd-a1"></tendency-pearson-lag1>
<tendency-pearson-lag2 id = '3c' source = "trmmgrace" product = "trmm-xc-grace" folder = "xcorr" band = "tendency-pearson-lag2" prefix = "tendency-pearson" suffix = "v7-RL05-nadd-a1"></tendency-pearson-lag2>
<tendency-pearson-lag3 id = '3d' source = "trmmgrace" product = "trmm-xc-grace" folder = "xcorr" band = "tendency-pearson-lag3" prefix = "tendency-pearson-lag3" suffix = "v7-RL05-nadd-a1"></tendency-pearson-lag3>
<tendency-pearson-lag4 id = '3d' source = "trmmgrace" product = "trmm-xc-grace" folder = "xcorr" band = "tendency-pearson-lag4" prefix = "tendency-pearson-lag4" suffix = "v7-RL05-nadd-a1"></tendency-pearson-lag4>
<tendency-pearson-lag5 id = '3d' source = "trmmgrace" product = "trmm-xc-grace" folder = "xcorr" band = "tendency-pearson-lag5" prefix = "tendency-pearson-lag5" suffix = "v7-RL05-nadd-a1"></tendency-pearson-lag5>
<residual-pearson-lag0 id = '4' source = "trmmgrace" product = "trmm-xc-grace" folder = "xcorr" band = "residual-pearson-lag0" prefix = "residual-pearson" suffix = "v7-RL05-nadd-a1"></residual-pearson-lag0>
<residual-pearson-lag1 id = '4a' source = "trmmgrace" product = "trmm-xc-grace" folder = "xcorr" band = "residual-pearson-lag1" prefix = "residual-pearson" suffix = "v7-RL05-nadd-a1"></residual-pearson-lag1>
<residual-pearson-lag2 id = '4b' source = "trmmgrace" product = "trmm-xc-grace" folder = "xcorr" band = "residual-pearson-lag2" prefix = "residual-pearson" suffix = "v7-RL05-nadd-a1"></residual-pearson-lag2>
<residual-pearson-lag3 id = '4b' source = "trmmgrace" product = "trmm-xc-grace" folder = "xcorr" band = "residual-pearson-lag3" prefix = "residual-pearson-lag3" suffix = "v7-RL05-nadd-a1"></residual-pearson-lag3>
</srccomp>
</process>
</okadeltaproject>
Mosaic VWB vs GRACE cross correlation
<?xml version='1.0' encoding='utf-8'?>
<okadeltaproject>
<userproj userid = 'karttur' projectid = 'karttur-africasubsahara' tractid= 'karttur-africasubsahara' siteid = '*' plotid = '*' system = 'modis'></userproj>
<period startyear = "2003" endyear = "2016" timestep='timespan-M'></period>
<!-- Mosaic TRMM vs GRACE crosscorr -->
<process processid = 'MosaicModis' version = '1.3'>
<overwrite>False</overwrite>
<parameters t_epsg ='4326' xres='1.0' yres='1.0'></parameters>
<srcpath volume = "travel"></srcpath>
<dstpath volume = "travel"></dstpath>
<srccomp>
<obs-lag id = 'obs-lag' source = "trmmgrace" product = "trmm-xc-grace" folder = "xcorr" band = "obs-lag" prefix = "obs-lag" suffix = "v7-RL05-nadd-a1"></obs-lag>
<season-lag id = 'season-lag' source = "trmmgrace" product = "trmm-xc-grace" folder = "xcorr" band = "season-lag" prefix = "season-lag" suffix = "v7-RL05-nadd-a1"></season-lag>
<tendency-lag id = 'tendency-lag' source = "trmmgrace" product = "trmm-xc-grace" folder = "xcorr" band = "tendency-lag" prefix = "tendency-lag" suffix = "v7-RL05-nadd-a1"></tendency-lag>
<residual-lag id = 'residual-lag' source = "trmmgrace" product = "trmm-xc-grace" folder = "xcorr" band = "residual-lag" prefix = "residual-lag" suffix = "v7-RL05-nadd-a1"></residual-lag>
<obs-pearson id = 'obs-pearson' source = "trmmgrace" product = "trmm-xc-grace" folder = "xcorr" band = "obs-pearson" prefix = "obs-pearson" suffix = "v7-RL05-nadd-a1"></obs-pearson>
<season-pearson id = 'season-pearson' source = "trmmgrace" product = "trmm-xc-grace" folder = "xcorr" band = "season-pearson" prefix = "season-pearson" suffix = "v7-RL05-nadd-a1"></season-pearson>
<tendency-pearson id = 'tendency-pearson' source = "trmmgrace" product = "trmm-xc-grace" folder = "xcorr" band = "tendency-pearson" prefix = "tendency-pearson" suffix = "v7-RL05-nadd-a1"></tendency-pearson>
<residual-pearson id = 'residual-pearson' source = "trmmgrace" product = "trmm-xc-grace" folder = "xcorr" band = "residual-pearson" prefix = "residual-pearson" suffix = "v7-RL05-nadd-a1"></residual-pearson>
<obs-pearson-lag0 id = '1' source = "trmmgrace" product = "trmm-xc-grace" folder = "xcorr" band = "obs-pearson-lag0" prefix = "obs-pearson" suffix = "v7-RL05-nadd-a1"></obs-pearson-lag0>
<obs-pearson-lag1 id = '1a' source = "trmmgrace" product = "trmm-xc-grace" folder = "xcorr" band = "obs-pearson-lag1" prefix = "obs-pearson" suffix = "v7-RL05-nadd-a1"></obs-pearson-lag1>
<obs-pearson-lag2 id = '1b' source = "trmmgrace" product = "trmm-xc-grace" folder = "xcorr" band = "obs-pearson-lag2" prefix = "obs-pearson" suffix = "v7-RL05-nadd-a1"></obs-pearson-lag2>
<season-pearson-lag0 id = '2' source = "trmmgrace" product = "trmm-xc-grace" folder = "xcorr" band = "season-pearson-lag0" prefix = "season-pearson" suffix = "v7-RL05-nadd-a1"></season-pearson-lag0>
<season-pearson-lag1 id = '2sb' source = "trmmgrace" product = "trmm-xc-grace" folder = "xcorr" band = "season-pearson-lag1" prefix = "season-pearson" suffix = "v7-RL05-nadd-a1"></season-pearson-lag1>
<season-pearson-lag2 id = '2b' source = "trmmgrace" product = "trmm-xc-grace" folder = "xcorr" band = "season-pearson-lag2" prefix = "season-pearson" suffix = "v7-RL05-nadd-a1"></season-pearson-lag2>
<season-pearson-lag3 id = '2c' source = "trmmgrace" product = "trmm-xc-grace" folder = "xcorr" band = "season-pearson-lag3" prefix = "season-pearson-lag3" suffix = "v7-RL05-nadd-a1"></season-pearson-lag3>
<tendency-pearson-lag0 id = '3a' source = "trmmgrace" product = "trmm-xc-grace" folder = "xcorr" band = "tendency-pearson-lag0" prefix = "tendency-pearson" suffix = "v7-RL05-nadd-a1"></tendency-pearson-lag0>
<tendency-pearson-lag1 id = '3b' source = "trmmgrace" product = "trmm-xc-grace" folder = "xcorr" band = "tendency-pearson-lag1" prefix = "tendency-pearson" suffix = "v7-RL05-nadd-a1"></tendency-pearson-lag1>
<tendency-pearson-lag2 id = '3c' source = "trmmgrace" product = "trmm-xc-grace" folder = "xcorr" band = "tendency-pearson-lag2" prefix = "tendency-pearson" suffix = "v7-RL05-nadd-a1"></tendency-pearson-lag2>
<tendency-pearson-lag3 id = '3d' source = "trmmgrace" product = "trmm-xc-grace" folder = "xcorr" band = "tendency-pearson-lag3" prefix = "tendency-pearson-lag3" suffix = "v7-RL05-nadd-a1"></tendency-pearson-lag3>
<tendency-pearson-lag4 id = '3d' source = "trmmgrace" product = "trmm-xc-grace" folder = "xcorr" band = "tendency-pearson-lag4" prefix = "tendency-pearson-lag4" suffix = "v7-RL05-nadd-a1"></tendency-pearson-lag4>
<tendency-pearson-lag5 id = '3d' source = "trmmgrace" product = "trmm-xc-grace" folder = "xcorr" band = "tendency-pearson-lag5" prefix = "tendency-pearson-lag5" suffix = "v7-RL05-nadd-a1"></tendency-pearson-lag5>
<residual-pearson-lag0 id = '4' source = "trmmgrace" product = "trmm-xc-grace" folder = "xcorr" band = "residual-pearson-lag0" prefix = "residual-pearson" suffix = "v7-RL05-nadd-a1"></residual-pearson-lag0>
<residual-pearson-lag1 id = '4a' source = "trmmgrace" product = "trmm-xc-grace" folder = "xcorr" band = "residual-pearson-lag1" prefix = "residual-pearson" suffix = "v7-RL05-nadd-a1"></residual-pearson-lag1>
<residual-pearson-lag2 id = '4b' source = "trmmgrace" product = "trmm-xc-grace" folder = "xcorr" band = "residual-pearson-lag2" prefix = "residual-pearson" suffix = "v7-RL05-nadd-a1"></residual-pearson-lag2>
<residual-pearson-lag3 id = '4b' source = "trmmgrace" product = "trmm-xc-grace" folder = "xcorr" band = "residual-pearson-lag3" prefix = "residual-pearson-lag3" suffix = "v7-RL05-nadd-a1"></residual-pearson-lag3>
</srccomp>
</process>
</okadeltaproject>
Export Media
The main reason for exporting the mosaicked layer is to allow visualization of both the data and the results.
Export TRMM vs GRACE cross correlation
NOT DONE
<?xml version='1.0' encoding='utf-8'?>
<okadeltaproject>
<userproj userid = 'karttur' projectid = 'karttur-africasubsahara' tractid= 'karttur-africasubsahara' siteid = '*' plotid = '*' system = 'modis'></userproj>
<period startyear = "2003" endyear = "2016" timestep='timespan-M'></period>
<!-- Mosaic TRMM vs GRACE crosscorr -->
<process processid = 'MosaicModis' version = '1.3'>
<overwrite>False</overwrite>
<parameters t_epsg ='4326' xres='1.0' yres='1.0'></parameters>
<srcpath volume = "travel"></srcpath>
<dstpath volume = "travel"></dstpath>
<srccomp>
<obs-lag id = 'obs-lag' source = "trmmgrace" product = "trmm-xc-grace" folder = "xcorr" band = "obs-lag" prefix = "obs-lag" suffix = "v7-RL05-nadd-a1"></obs-lag>
<season-lag id = 'season-lag' source = "trmmgrace" product = "trmm-xc-grace" folder = "xcorr" band = "season-lag" prefix = "season-lag" suffix = "v7-RL05-nadd-a1"></season-lag>
<tendency-lag id = 'tendency-lag' source = "trmmgrace" product = "trmm-xc-grace" folder = "xcorr" band = "tendency-lag" prefix = "tendency-lag" suffix = "v7-RL05-nadd-a1"></tendency-lag>
<residual-lag id = 'residual-lag' source = "trmmgrace" product = "trmm-xc-grace" folder = "xcorr" band = "residual-lag" prefix = "residual-lag" suffix = "v7-RL05-nadd-a1"></residual-lag>
<obs-pearson id = 'obs-pearson' source = "trmmgrace" product = "trmm-xc-grace" folder = "xcorr" band = "obs-pearson" prefix = "obs-pearson" suffix = "v7-RL05-nadd-a1"></obs-pearson>
<season-pearson id = 'season-pearson' source = "trmmgrace" product = "trmm-xc-grace" folder = "xcorr" band = "season-pearson" prefix = "season-pearson" suffix = "v7-RL05-nadd-a1"></season-pearson>
<tendency-pearson id = 'tendency-pearson' source = "trmmgrace" product = "trmm-xc-grace" folder = "xcorr" band = "tendency-pearson" prefix = "tendency-pearson" suffix = "v7-RL05-nadd-a1"></tendency-pearson>
<residual-pearson id = 'residual-pearson' source = "trmmgrace" product = "trmm-xc-grace" folder = "xcorr" band = "residual-pearson" prefix = "residual-pearson" suffix = "v7-RL05-nadd-a1"></residual-pearson>
<obs-pearson-lag0 id = '1' source = "trmmgrace" product = "trmm-xc-grace" folder = "xcorr" band = "obs-pearson-lag0" prefix = "obs-pearson" suffix = "v7-RL05-nadd-a1"></obs-pearson-lag0>
<obs-pearson-lag1 id = '1a' source = "trmmgrace" product = "trmm-xc-grace" folder = "xcorr" band = "obs-pearson-lag1" prefix = "obs-pearson" suffix = "v7-RL05-nadd-a1"></obs-pearson-lag1>
<obs-pearson-lag2 id = '1b' source = "trmmgrace" product = "trmm-xc-grace" folder = "xcorr" band = "obs-pearson-lag2" prefix = "obs-pearson" suffix = "v7-RL05-nadd-a1"></obs-pearson-lag2>
<season-pearson-lag0 id = '2' source = "trmmgrace" product = "trmm-xc-grace" folder = "xcorr" band = "season-pearson-lag0" prefix = "season-pearson" suffix = "v7-RL05-nadd-a1"></season-pearson-lag0>
<season-pearson-lag1 id = '2sb' source = "trmmgrace" product = "trmm-xc-grace" folder = "xcorr" band = "season-pearson-lag1" prefix = "season-pearson" suffix = "v7-RL05-nadd-a1"></season-pearson-lag1>
<season-pearson-lag2 id = '2b' source = "trmmgrace" product = "trmm-xc-grace" folder = "xcorr" band = "season-pearson-lag2" prefix = "season-pearson" suffix = "v7-RL05-nadd-a1"></season-pearson-lag2>
<season-pearson-lag3 id = '2c' source = "trmmgrace" product = "trmm-xc-grace" folder = "xcorr" band = "season-pearson-lag3" prefix = "season-pearson-lag3" suffix = "v7-RL05-nadd-a1"></season-pearson-lag3>
<tendency-pearson-lag0 id = '3a' source = "trmmgrace" product = "trmm-xc-grace" folder = "xcorr" band = "tendency-pearson-lag0" prefix = "tendency-pearson" suffix = "v7-RL05-nadd-a1"></tendency-pearson-lag0>
<tendency-pearson-lag1 id = '3b' source = "trmmgrace" product = "trmm-xc-grace" folder = "xcorr" band = "tendency-pearson-lag1" prefix = "tendency-pearson" suffix = "v7-RL05-nadd-a1"></tendency-pearson-lag1>
<tendency-pearson-lag2 id = '3c' source = "trmmgrace" product = "trmm-xc-grace" folder = "xcorr" band = "tendency-pearson-lag2" prefix = "tendency-pearson" suffix = "v7-RL05-nadd-a1"></tendency-pearson-lag2>
<tendency-pearson-lag3 id = '3d' source = "trmmgrace" product = "trmm-xc-grace" folder = "xcorr" band = "tendency-pearson-lag3" prefix = "tendency-pearson-lag3" suffix = "v7-RL05-nadd-a1"></tendency-pearson-lag3>
<tendency-pearson-lag4 id = '3d' source = "trmmgrace" product = "trmm-xc-grace" folder = "xcorr" band = "tendency-pearson-lag4" prefix = "tendency-pearson-lag4" suffix = "v7-RL05-nadd-a1"></tendency-pearson-lag4>
<tendency-pearson-lag5 id = '3d' source = "trmmgrace" product = "trmm-xc-grace" folder = "xcorr" band = "tendency-pearson-lag5" prefix = "tendency-pearson-lag5" suffix = "v7-RL05-nadd-a1"></tendency-pearson-lag5>
<residual-pearson-lag0 id = '4' source = "trmmgrace" product = "trmm-xc-grace" folder = "xcorr" band = "residual-pearson-lag0" prefix = "residual-pearson" suffix = "v7-RL05-nadd-a1"></residual-pearson-lag0>
<residual-pearson-lag1 id = '4a' source = "trmmgrace" product = "trmm-xc-grace" folder = "xcorr" band = "residual-pearson-lag1" prefix = "residual-pearson" suffix = "v7-RL05-nadd-a1"></residual-pearson-lag1>
<residual-pearson-lag2 id = '4b' source = "trmmgrace" product = "trmm-xc-grace" folder = "xcorr" band = "residual-pearson-lag2" prefix = "residual-pearson" suffix = "v7-RL05-nadd-a1"></residual-pearson-lag2>
<residual-pearson-lag3 id = '4b' source = "trmmgrace" product = "trmm-xc-grace" folder = "xcorr" band = "residual-pearson-lag3" prefix = "residual-pearson-lag3" suffix = "v7-RL05-nadd-a1"></residual-pearson-lag3>
</srccomp>
</process>
</okadeltaproject>
Export VWB vs GRACE cross correlation
NOT DONE
<?xml version='1.0' encoding='utf-8'?>
<okadeltaproject>
<userproj userid = 'karttur' projectid = 'karttur-africasubsahara' tractid= 'karttur-africasubsahara' siteid = '*' plotid = '*' system = 'modis'></userproj>
<period startyear = "2003" endyear = "2016" timestep='timespan-M'></period>
<!-- Mosaic TRMM vs GRACE crosscorr -->
<process processid = 'MosaicModis' version = '1.3'>
<overwrite>False</overwrite>
<parameters t_epsg ='4326' xres='1.0' yres='1.0'></parameters>
<srcpath volume = "travel"></srcpath>
<dstpath volume = "travel"></dstpath>
<srccomp>
<obs-lag id = 'obs-lag' source = "trmmgrace" product = "trmm-xc-grace" folder = "xcorr" band = "obs-lag" prefix = "obs-lag" suffix = "v7-RL05-nadd-a1"></obs-lag>
<season-lag id = 'season-lag' source = "trmmgrace" product = "trmm-xc-grace" folder = "xcorr" band = "season-lag" prefix = "season-lag" suffix = "v7-RL05-nadd-a1"></season-lag>
<tendency-lag id = 'tendency-lag' source = "trmmgrace" product = "trmm-xc-grace" folder = "xcorr" band = "tendency-lag" prefix = "tendency-lag" suffix = "v7-RL05-nadd-a1"></tendency-lag>
<residual-lag id = 'residual-lag' source = "trmmgrace" product = "trmm-xc-grace" folder = "xcorr" band = "residual-lag" prefix = "residual-lag" suffix = "v7-RL05-nadd-a1"></residual-lag>
<obs-pearson id = 'obs-pearson' source = "trmmgrace" product = "trmm-xc-grace" folder = "xcorr" band = "obs-pearson" prefix = "obs-pearson" suffix = "v7-RL05-nadd-a1"></obs-pearson>
<season-pearson id = 'season-pearson' source = "trmmgrace" product = "trmm-xc-grace" folder = "xcorr" band = "season-pearson" prefix = "season-pearson" suffix = "v7-RL05-nadd-a1"></season-pearson>
<tendency-pearson id = 'tendency-pearson' source = "trmmgrace" product = "trmm-xc-grace" folder = "xcorr" band = "tendency-pearson" prefix = "tendency-pearson" suffix = "v7-RL05-nadd-a1"></tendency-pearson>
<residual-pearson id = 'residual-pearson' source = "trmmgrace" product = "trmm-xc-grace" folder = "xcorr" band = "residual-pearson" prefix = "residual-pearson" suffix = "v7-RL05-nadd-a1"></residual-pearson>
<obs-pearson-lag0 id = '1' source = "trmmgrace" product = "trmm-xc-grace" folder = "xcorr" band = "obs-pearson-lag0" prefix = "obs-pearson" suffix = "v7-RL05-nadd-a1"></obs-pearson-lag0>
<obs-pearson-lag1 id = '1a' source = "trmmgrace" product = "trmm-xc-grace" folder = "xcorr" band = "obs-pearson-lag1" prefix = "obs-pearson" suffix = "v7-RL05-nadd-a1"></obs-pearson-lag1>
<obs-pearson-lag2 id = '1b' source = "trmmgrace" product = "trmm-xc-grace" folder = "xcorr" band = "obs-pearson-lag2" prefix = "obs-pearson" suffix = "v7-RL05-nadd-a1"></obs-pearson-lag2>
<season-pearson-lag0 id = '2' source = "trmmgrace" product = "trmm-xc-grace" folder = "xcorr" band = "season-pearson-lag0" prefix = "season-pearson" suffix = "v7-RL05-nadd-a1"></season-pearson-lag0>
<season-pearson-lag1 id = '2sb' source = "trmmgrace" product = "trmm-xc-grace" folder = "xcorr" band = "season-pearson-lag1" prefix = "season-pearson" suffix = "v7-RL05-nadd-a1"></season-pearson-lag1>
<season-pearson-lag2 id = '2b' source = "trmmgrace" product = "trmm-xc-grace" folder = "xcorr" band = "season-pearson-lag2" prefix = "season-pearson" suffix = "v7-RL05-nadd-a1"></season-pearson-lag2>
<season-pearson-lag3 id = '2c' source = "trmmgrace" product = "trmm-xc-grace" folder = "xcorr" band = "season-pearson-lag3" prefix = "season-pearson-lag3" suffix = "v7-RL05-nadd-a1"></season-pearson-lag3>
<tendency-pearson-lag0 id = '3a' source = "trmmgrace" product = "trmm-xc-grace" folder = "xcorr" band = "tendency-pearson-lag0" prefix = "tendency-pearson" suffix = "v7-RL05-nadd-a1"></tendency-pearson-lag0>
<tendency-pearson-lag1 id = '3b' source = "trmmgrace" product = "trmm-xc-grace" folder = "xcorr" band = "tendency-pearson-lag1" prefix = "tendency-pearson" suffix = "v7-RL05-nadd-a1"></tendency-pearson-lag1>
<tendency-pearson-lag2 id = '3c' source = "trmmgrace" product = "trmm-xc-grace" folder = "xcorr" band = "tendency-pearson-lag2" prefix = "tendency-pearson" suffix = "v7-RL05-nadd-a1"></tendency-pearson-lag2>
<tendency-pearson-lag3 id = '3d' source = "trmmgrace" product = "trmm-xc-grace" folder = "xcorr" band = "tendency-pearson-lag3" prefix = "tendency-pearson-lag3" suffix = "v7-RL05-nadd-a1"></tendency-pearson-lag3>
<tendency-pearson-lag4 id = '3d' source = "trmmgrace" product = "trmm-xc-grace" folder = "xcorr" band = "tendency-pearson-lag4" prefix = "tendency-pearson-lag4" suffix = "v7-RL05-nadd-a1"></tendency-pearson-lag4>
<tendency-pearson-lag5 id = '3d' source = "trmmgrace" product = "trmm-xc-grace" folder = "xcorr" band = "tendency-pearson-lag5" prefix = "tendency-pearson-lag5" suffix = "v7-RL05-nadd-a1"></tendency-pearson-lag5>
<residual-pearson-lag0 id = '4' source = "trmmgrace" product = "trmm-xc-grace" folder = "xcorr" band = "residual-pearson-lag0" prefix = "residual-pearson" suffix = "v7-RL05-nadd-a1"></residual-pearson-lag0>
<residual-pearson-lag1 id = '4a' source = "trmmgrace" product = "trmm-xc-grace" folder = "xcorr" band = "residual-pearson-lag1" prefix = "residual-pearson" suffix = "v7-RL05-nadd-a1"></residual-pearson-lag1>
<residual-pearson-lag2 id = '4b' source = "trmmgrace" product = "trmm-xc-grace" folder = "xcorr" band = "residual-pearson-lag2" prefix = "residual-pearson" suffix = "v7-RL05-nadd-a1"></residual-pearson-lag2>
<residual-pearson-lag3 id = '4b' source = "trmmgrace" product = "trmm-xc-grace" folder = "xcorr" band = "residual-pearson-lag3" prefix = "residual-pearson-lag3" suffix = "v7-RL05-nadd-a1"></residual-pearson-lag3>
</srccomp>
</process>
</okadeltaproject>
Movies
The animated movies for a master and a slave are created by overlaying a smaller master frame over a larger slave (the size and position can be set as process parameters). The master and slave frames must first be produced as separate frames and then combined. The clock and time line are then overlaid as for other movies.
The movie creation requires that the command line applications ImageMagick and FFmpeg are installed.
Create TRMM vs GRACE overlay movieframes
<?xml version='1.0' encoding='utf-8'?>
<africasubsaharaproject>
<userproj userid = 'karttur' projectid = 'karttur-africasubsahara' tractid= 'karttur-africasubsahara' siteid = '*' plotid = '*' system = 'modis'></userproj>
<period startyear = "2002" startmonth='4' startday='23' endyear = "2016" endmonth='12' endday='31' timestep='M'></period>
<!-- Create movie frame -->
<process processid = 'movieoverlayframeModisRegion' version = '1.3'>
<overwrite>False</overwrite>
<parameters name = 'gracetrmm' basewidth = '800' basecrop='800,532,0,0'
overlaywidth = '300' gravity='southwest' geomx='0' geomy='100'
emboss='KARTTUR' embossdims='720,150' embossptsize='100' asscript='True'></parameters>
<srcpath volume = "travel" hdrfiletype = 'tif' datfiletype = 'tif'></srcpath>
<dstpath volume = "travel/movieclockoverlay" hdrfiletype = 'png' datfiletype = 'png'></dstpath>
<srccomp>
<grace-ave id = 'base' source = "NASA-GRACE" product = "cmwater" folder = "cmwater" band = "grace-ave" prefix = "grace-ave" suffix = "RL05-f-1deg">
</grace-ave>
<trmm-3b43v7-precip id ='over' source = "trmm" product = "3b43" folder = "rainfall" band = "trmm-3b43v7-precip" prefix = "rainfall" suffix = "v7-f-m-30km">
</trmm-3b43v7-precip>
</srccomp>
</process>
</africasubsaharaproject>
Create TRMM movieclock and movie script
<?xml version='1.0' encoding='utf-8'?>
<africasubsaharaproject>
<userproj userid = 'karttur' projectid = 'karttur-africasubsahara' tractid= 'karttur-africasubsahara' siteid = '*' plotid = '*' system = 'modis'></userproj>
<period startyear = "2002" startmonth='4' startday='23' endyear = "2016" endmonth='12' endday='31' timestep='M'></period>
<!-- Create movie frame and movie -->
<process processid = 'movieclockModisRegionToRegion' version = '1.3'>
<overwrite>False</overwrite>
<parameters name = 'default' width = '800' asscript='True'></parameters>
<dstpath volume = "travel/movieclockoverlay" hdrfiletype = 'png' datfiletype = 'png'></dstpath>
<dstcomp>
<grace-ave id = 'base' source = "NASA-GRACE" product = "cmwater" folder = "cmwater" band = "grace-ave" prefix = "grace-ave" suffix = "RL05-f-1deg">
</grace-ave>
</dstcomp>
</process>
</africasubsaharaproject>