This post outlines a process chain for comparing the variations between rainfall and the Earth´s land water content. The next post instead compares the Vertical Water Balance (VWB) and water content. The results are presented in the following 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 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 as a driver (master) 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. The next post instead uses the Vertical Water Balannce as the master. The results of both comparisons, with TRMM and VWB as drivers, are presented together in this post.
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
Cross correlations
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 another post.
Hide/Show AfricaSubSahara_process_GRACE.txt
###################################
###################################
### TRMM vs GRACE analysis ###
###################################
###################################
## The processing requires that the project TRMM and GRACE processing are completed ##
###################################
### Update db ###
###################################
## If you have access to preprocessed data created by karttur's Geoimagine Framework ##
## you can access the data from your Framework installation by updating the db ##
## You can also use updatedb to clean your database and/or delete files from your Framework organized storage ##
###################################
### 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 ##
#AfricaSubSahara_TRMM-GRACE-0925-ExporttoByte_layer-x-corr_2003-2016.xml
## Export trend comparison TRMM-GRACE results ##
#AfricaSubSahara_TRMM-GRACE-0930-ExporttoByte_trendcomp.xml
### Movie ###
## Create TRMM-GRACE overlay image frames ##
#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
###################################
### Archive ###
###################################
## Archive cross correlation ##
#AfricaSubSahara_TRMM-GRACE-0980_archive-zip_layer-x-corr_2003-2016.xml
## Archive trend comparison TRMM-GRACE for Sub Saharan Africa ##
AfricaSubSahara_TRMM-GRACE-0980-archive-zip_trendcomp.xml
Overlay comparison
As part of the processing of TRMM rainfall and [GRACE equivalent water pillar depth](..(grace-methods) 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.
Process: dualtrendscompmodistiles
Hide/Show
<?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) 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.
Process: imagecrosstrendtsmodis
Hide/Show
<?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 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.
Process: MosaicModis
Mosaic cross correlation
Hide/Show
<?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 change comparison
Hide/Show
<?xml version='1.0' encoding='utf-8'?>
<africasubsaharaproject>
<userproj userid = 'karttur' projectid = 'karttur-africasubsahara' tractid= 'karttur-africasubsahara' siteid = '*' plotid = '*' system = 'modis'></userproj>
<period startyear = "2003" endyear = "2016" timestep='timespan-A'></period>
<!-- Mosaic TRMM vs GRACE trendcomp -->
<process processid = 'MosaicModis' version = '1.3'>
<overwrite>True</overwrite>
<parameters t_epsg ='4326' xres='1.0' yres='1.0'></parameters>
<srcpath volume = "travel"></srcpath>
<dstpath volume = "travel"></dstpath>
<srccomp>
<trendcomp id = 'dst' source = "trmmgrace" product = "trmm-grace" folder = "trendcomp" band = "trendcomp" prefix = "trendcomp" suffix = "model@p-v7-RL05-1deg"></trendcomp>
</srccomp>
</process>
<!-- Mosaic TRMM vs GRACE trendcomp -->
<process processid = 'MosaicModis' version = '1.3'>
<overwrite>True</overwrite>
<parameters t_epsg ='4326' xres='1.0' yres='1.0'></parameters>
<srcpath volume = "travel"></srcpath>
<dstpath volume = "travel"></dstpath>
<srccomp>
<trendcomp id = 'dst' source = "trmmgrace" product = "trmm-grace" folder = "trendcomp" band = "trendcomp" prefix = "trendcomp" suffix = "model-v7-RL05-1deg"></trendcomp>
</srccomp>
</process>
</africasubsaharaproject>
Process: exporttobytemodisRegionToRegion
Export cross correlation
Hide/Show
<?xml version='1.0' encoding='utf-8'?>
<africasubsaharaproject>
<userproj userid = 'karttur' projectid = 'karttur-africasubsahara' tractid= 'karttur-africasubsahara' siteid = '*' plotid = '*' system = 'modis'></userproj>
<period startyear = "2003" endyear = "2016" timestep='timespan-M'></period>
<!-- Export TRMM vs GRACE crosscorr lag -->
<process processid = 'exporttobytemodisRegionToRegion' version = '1.3'>
<overwrite>False</overwrite>
<parameters palette= 'lag12'></parameters>
<srcpath volume = "travel" hdrfiletype = 'tif' datfiletype = 'tif'></srcpath>
<dstpath volume = "travel" hdrfiletype = 'tif' datfiletype = 'tif'></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>
</srccomp>
</process>
<!-- Export TRMM vs GRACE crosscorr pearson-->
<process processid = 'exporttobytemodisRegionToRegion' version = '1.3'>
<overwrite>False</overwrite>
<parameters palette= 'pearsonnr'></parameters>
<srcpath volume = "travel" hdrfiletype = 'tif' datfiletype = 'tif'></srcpath>
<dstpath volume = "travel" hdrfiletype = 'tif' datfiletype = 'tif'></dstpath>
<srccomp>
<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-lag0" 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-lag1" 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-lag2" 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-lag0" 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-lag1" 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-lag2" 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-lag0" 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-lag1" 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-lag2" 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-lag0" 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-lag1" 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-lag2" 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>
</africasubsaharaproject>
Export change comparison
Hide/Show
<?xml version='1.0' encoding='utf-8'?>
<africasubsaharaproject>
<userproj userid = 'karttur' projectid = 'karttur-africasubsahara' tractid= 'karttur-africasubsahara' siteid = '*' plotid = '*' system = 'modis'></userproj>
<period startyear = "2003" endyear = "2016" timestep='timespan-A'></period>
<!-- Export TRMM vs GRACE trendcomp -->
<process processid = 'exporttobytemodisRegionToRegion' version = '1.3'>
<overwrite>True</overwrite>
<parameters palette= 'trendcomp_trmm_grace'></parameters>
<srcpath volume = "travel" hdrfiletype = 'tif' datfiletype = 'tif'></srcpath>
<dstpath volume = "travel" hdrfiletype = 'tif' datfiletype = 'tif'></dstpath>
<srccomp>
<trendcomp id = 'dst' source = "trmmgrace" product = "trmm-grace" folder = "trendcomp" band = "trendcomp" prefix = "trendcomp" suffix = "model@p-v7-RL05-1deg"></trendcomp>
</srccomp>
</process>
<process processid = 'exporttobytemodisRegionToRegion' version = '1.3'>
<overwrite>True</overwrite>
<parameters palette= 'trendcomp_trmm_grace'></parameters>
<srcpath volume = "travel" hdrfiletype = 'tif' datfiletype = 'tif'></srcpath>
<dstpath volume = "travel" hdrfiletype = 'tif' datfiletype = 'tif'></dstpath>
<srccomp>
<trendcomp id = 'dst' source = "trmmgrace" product = "trmm-grace" folder = "trendcomp" band = "trendcomp" prefix = "trendcomp" suffix = "model-v7-RL05-1deg"></trendcomp>
</srccomp>
</process>
</africasubsaharaproject>
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 overlay image frames
Process: mmovieoverlayframeModisRegion
Hide/Show
<?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 clock frames and movie
Process: movieclockModisRegionToRegion
Hide/Show
<?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>
Archive
Archiving is done by creating zip files of each individual layer and saving it in a hierarchical structure identical to the original.
Process: ArchiveModisRegionTiles
Archive cross correlation
Hide/Show
<?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='timespan-M'></period>
<process processid = 'ArchiveModisRegionTiles' version = '1.3'>
<overwrite>False</overwrite>
<parameters></parameters>
<srcpath volume = "africa" hdrfiletype = 'tif' datfiletype = 'tif'></srcpath>
<dstpath volume = "africa" hdrfiletype = 'zip' datfiletype = 'zip'></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>
</africasubsahara>
Archive change comparison
Hide/Show
<?xml version='1.0' encoding='utf-8'?>
<africasubsaharaproject>
<userproj userid = 'karttur' projectid = 'karttur-africasubsahara' tractid= 'karttur-africasubsahara' siteid = '*' plotid = '*' system = 'modis'></userproj>
<period startyear = "2003" endyear = "2016" timestep='timespan-A'></period>
<!-- Export TRMM vs GRACE trendcomp -->
<process processid = 'ArchiveModisRegionTiles' version = '1.3'>
<parameters palette= 'trendcomp_trmm_grace'></parameters>
<srcpath volume = "africa" hdrfiletype = 'tif' datfiletype = 'tif'></srcpath>
<dstpath volume = "africa" hdrfiletype = 'zip' datfiletype = 'zip'></dstpath>
<srccomp>
<trendcomp id = 'dst' source = "trmmgrace" product = "trmm-grace" folder = "trendcomp" band = "trendcomp" prefix = "trendcomp" suffix = "model@p-v7-RL05-1deg"></trendcomp>
</srccomp>
</process>
<process processid = 'ArchiveModisRegionTiles' version = '1.3'>
<parameters palette= 'trendcomp_trmm_grace'></parameters>
<srcpath volume = "africa" hdrfiletype = 'tif' datfiletype = 'tif'></srcpath>
<dstpath volume = "africa" hdrfiletype = 'zip' datfiletype = 'zip'></dstpath>
<srccomp>
<trendcomp id = 'dst' source = "trmmgrace" product = "trmm-grace" folder = "trendcomp" band = "trendcomp" prefix = "trendcomp" suffix = "model-v7-RL05-1deg"></trendcomp>
</srccomp>
</process>
</africasubsaharaproject>
The Next button below will take you to a duplicate of the methods used in this post, but for comparing the Vertical Water Balance with the GRACE estimated water pillar on land .