Average rainfall 2001-2016, global tropics

Map: Average rainfall 2001-2016, global tropics

Regional synthesis: 2 Extract regional precipitation

Thomas Gumbricht bio photo By Thomas Gumbricht

Introduction

This post is the second hands-on post in the series of posts on "Regional synthesis" using Karttur’s GeoImagine Framework. In this post you are going to import precipitation data to the region you defined in the first step. The example uses the Okavango Inland Delta in Botswana as the region, but you can use any other region as described in the previous post.

Prerequisites

To follow this post you must have setup a project and a region as defined in the first step.

Karttur regions and systems

As discussed in the previous post all the processes included in Karttur´s GeoImagine Framework must be associated with a user, a project, a region and a system. Running the Framework from xml files, these are defined in the <userproj> child tag:

userproj userid = 'karttur' projectid = 'karttur-okadelta' tractid= 'karttur-okadelta' siteid = '*' plotid = '*' system = 'modis'></userproj>

In the previous post you created your own project using your own tract. The example I used was a project and region (tract) for the Okavango Inland Delta in Botswana, and I called both the project and the tract karttur-okadelta.

In this post you are going to import precipitation data to the project. To do that you need to define the system you want to import the data to. At time of writing, Karttur’s GeoImagine Framework can use two different tiling systems for processing regional data: MODIS SIN grid or Sentinel MGRS.

Strictly speaking the SIN grid and MGRS are projection systems, but also including predefined tiles. Both systems can be used by the Framework, but they have different advantages and dis-advantages. In general the SIN grid system tiles are larger and thus better for processing medium to coarse scale data. The MODIS SIN grid system is also preferred for all processing that requires equal areas (e.g. for hydrological modelling or other mass balance calculations). It is in general more parsimonious compared to MGRS. The MGRS system, however, is more fine grained, and if you are going to work with high spatial resolution data, in particular Sentinel or Landsat satellite data or finer satellite imagery, then the MGRS system is preferred. This example uses the MODIS SIN grid (MODIS) system.

The MODIS tiling system

The MODIS tiling system is included as part of the installation process when you first set up Karttur’s GeoImagine Framework. You should thus have the MODIS tiling system defined in the Framework database. When setting system = "modis" in the <userproj> tag, all the processing will be on SIN tile basis. It is thus possible to process the full global coverage of any data at any spatial resolution (at least down to 100 m or so) using the MODIS system. The Framework will simply process one SIN tile at the time. All you have to do is to give the global region.

In our example we are going to process the region you defined in the previous post. But we do not have any data associated with this region yet. In this post you are going to tile the precipitation data that you created, or imported, using other posts in this blog.

Global precipitation data

The post on TRMM precipitation data is a tutorial on how to access, import and process tropical rainfall data. If you need precipitation data at higher latitudes, you should instead follow the post on IMERG precipitation data. The post on Transfer TRMM Framework data goes through how to import Framework pre-processed data.

Tile and mosaic precipitation to region

As emphasised above, project regions are in essence equal to an assembly of tiles. If the system is set to modis, the region is composed of the MODIS SIN tiles that fully or partly fall within the region. Importing ancillary data to a region is thus equal to tiling the ancillary data to the tiles that compose the region. The Framework process for that is tileRegionToModisAncillary.

Most of the regional processing will operate on the tiles, but when analyzing the results or exporting images or animations, the region is mosaicked from the tiles and then cut to fit the actual regional extent. The Framework process for mosaicking tiles and cutting out the region is MosaicModis. Exporting images from modis regional data is done with the process exporttobytemodisRegionToRegion, and movieframes and movieclocks are created with the processes movieframeModisRegionToRegion and movieclock.

Tile monthly precipitation

Process: tileRegionToModisAncillary.

Tile statistical precipitation dataset

Process: tileRegionToModisAncillary.

Mosaic monthly precipitation dataset

Process: MosaicModis.

Mosaic statistical precipitation dataset

Process: MosaicModis.

Export monthly precipitation dataset

Process: exporttobytemodisRegionToRegion.

Monthly precipitation movie frames

Process: movieframeModisRegionToRegion.

Monthly precipitation movie clock

Process: movieclock.