ArcGIS

Understanding Precipitation Patterns and Trends using Scientific Multidimensional Data

(Author: Sudhir Raj Shrestha, Sarah Black)

Background

Are you working with complex scientific multidimensional datasets? Would you like to explore and learn how to use powerful tools and capabilities to help solve your problems? Many workflows can help with your analytical needs, but you may be wondering where to start. In this post, we will walk you through how to incorporate a multidimensional scientific data workflow (ingest, visualize, analyze, and share) within ArcGIS and which of Esri’s latest multidimensional geoprocessing tools you can use.  You will also learn a simple way to build and share your analytical science products using NetCDF, HDF, and GRIB (curated by NOAA and NASA).

One effect of climate change is changes in precipitation patterns. As sea surface temperatures increase, these patterns change and areas around the globe experience either an increase or decrease in their annual precipitation. Current studies indicate that the Sahara Desert is expanding due to decreased precipitation over the region. At the same time, South America is experiencing a slight increase in precipitation in past and severe storms . Much of the world’s freshwater supply is replenished through precipitation, so it is vital that we understand the changes already occurring. In this brief investigation, we will use multidimensional NOAA data showing monthly global precipitation from 1900 to 2017 to analyze and predict precipitation trends around the globe. We will also take a closer look at the Sahara desert and Amazon rainforest regions. If you wish to follow along, you can download the data here. We will use the ArcPy to ingest the data and analyze it in ArcGIS Notebooks and ArcGIS Pro.

The first step is to ingest the data so you can visualize it in ArcGIS Pro. We will do this using the ArcPy GP tools. The ArcGIS Notebook code shown here creates a raster object from a multidimensional raster dataset and applies the stretch function for better visualization.

Load netcdf as multidim raster

The multidimensional information is then added to the raster object and it can be saved as an optimized Cloud Raster Format (CRF).

save raster

Once you ingest the data, now you can explore the data structure and its variables as shown below.

variables exploration

Working with ArcGIS Notebooks allows you to access external python libraries to extend your analysis, but it also allows you to visualize and manipulate your data using ArcGIS Pro. Data may be displayed in the ArcGIS Notebooks window, but it can also be added to a map in your ArcGIS Pro project where you can work with it as you would in any other project.

Notebook pro

Once the precipitation data has been loaded into the new multidimensional raster, you can begin to explore the data and look for trends. This data includes monthly precipitation totals from 1900 to 2017. This means there are 1,404 slices of precipitation data represented here (117 years of monthly data), which gives you enough data points for your trend analysis. To begin, you will need to aggregate your monthly precipitation data into yearly precipitation.

The Aggregate Multidimensional Raster tool will aggregate your existing raster precipitation data by time.

aggregate multiD data

Now that the data has been aggregated to mean annual precipitation, let’s take a look at the Sahara desert and Amazon rainforest regions using the Temporal Profile Charting tool.

Temporal charting tool
Figure 3: Region of Interest used for charting precipitation change
Precipitation change in the Sahara desert region
Figure 4: Precipitation change in the Sahara desert region
Precipitation changes in the Amazon rainforest region
Figure 5: Precipitation changes in the Amazon rainforest region

The Temporal Profile Charting tool plots the mean annual precipitation on the vertical axis and time on the horizontal axis. It can also be used to generate trend lines, shown here in red. From these trend lines, we can see that the average annual precipitation in the Sahara desert region has decreased over time. Trends in the Amazon rainforest region are less clear, but precipitation appears to have slightly increased in this region over time.

Detecting Precipitation Anomaly

Another way to look at changes in precipitation is by detecting anomalies. The term “anomaly” means a departure from a reference value or long-term average. A positive anomaly value indicates that the observed precipitation was greater than the long-term average precipitation, while a negative anomaly indicates that the observed precipitation was less than the long-term average precipitation. To do this, we will use the Generate Multidimensional Anomaly tool. We will use this tool to compute the anomaly for each time slice in the multidimensional precipitation raster. The anomaly data will let us see how the precipitation deviates from the average at each location over time.

Anomaly detection

We can use the charting tool to look at the anomaly data through time. Figures 6 and 7 shows how the average annual precipitation compares to the long-term average (the average over all 117 years). Years with positive anomaly values had more precipitation than the long-term average, and years with negative anomaly values had less precipitation than the long-term average.

Anomaly Sahara
Figure 6: Precipitation anomaly in Sahara desert region
Anomaly in amazon rainforest region
Figure 7: Precipitation anomaly in Amazon rainforest region

Using these graphs, we can see the overall trends in the Amazon rainforest region and the Sahara desert region. Over this time period, annual precipitation has steadily declined in the Sahara desert region to the point where it is now consistently below the long-term average. Annual precipitation trends in the Amazon rainforest region are again harder to identify, but it appears they have slowly but steadily increased. Additional data points in upcoming years will help to separate the trend from the noise in this region.

Precipitation Patterns and Trends

Another way to look at this precipitation data is to use a simple regression model to look at the trends and predict future precipitation. To begin, we will use the Generate Trend Raster tool. This tool helps estimate the overall trend for each pixel along a dimension (time in this case). You can calculate the trends for one or more variables in a multidimensional raster. For this analysis, we will use the original monthly precipitation dataset and use a harmonic regression to account for seasonal fluctuations in precipitation.  Here is the code block.

generate trend raster

The result is a 3-band dataset, with the slope of the trend as band 1. Positive slope values (purple areas in figure 8) indicate the average precipitation is in an increasing trend over time and negative values (green areas) indicate that precipitation is in a decreasing trend.

global precipitation trend
Figure 8: Precipitation trend, with the Amazon rainforest region outlined in blue and the Sahara desert region outlined in red

As we inspect this trend map, we can see that the Amazon rainforest region is mostly dark purple and is experiencing an overall increase in precipitation. The Sahara desert region is primarily a light green and is experiencing an overall decrease in precipitation.

Predicting Future Precipitation

We can also use this trend raster to do predictive modeling with the Predict Using Trend Raster tool to explore what the precipitation trend might look like in the future. In this case, we will use the trend raster as an input with harmonic regression to predict the precipitation from 2018 to 2027. We will use a harmonic regression to remove the underlying effects of seasonal variation. This will minimize the effect of seasonality in our predictions. The code block to predict precipitation is as shown below.

time series prediction

The output from the Predict Using Trend Raster tool is a new multidimensional map showing predicted annual precipitation (figure 9).

Global precipitation prediction
Figure 9: Predicted annual precipitation for the period of 2018 to 2027

This new multidimensional raster contains predicted annual precipitation values for 2018 to 2027, which can be viewed using the chart tool. Our predicted results show a continued increase in precipitation in the Amazon rainforest region (figure 10), and a continued decrease in precipitation in the Sahara desert region (figure 11). The predicted precipitation increase in the Amazon rainforest region is relatively small compared to the current annual precipitation (an increase of 0.2 percent in a region that is receiving almost 18 cm/year of precipitation). However, predictions show an expected 3.9 percent decrease in annual precipitation in the Sahara desert region by 2027. This 3.9 percent decrease in an area which already receives less than 1 cm of precipitation per year will result in continued expansion of the Sahara desert region.

precipitation prediction for amazon
Figure 10: Predicted annual precipitation in Amazon rainforest region, 2018 to 2027
Precipitation prediction sahara
Figure 11: Predicted annual precipitation in the Sahara desert region, 2018 to 2027

To test the accuracy of our precipitation predictions, we will subset the original dataset to just 1900 to 1950. We will use this subset of the data and the same steps we completed previously to build a model and predict annual precipitation for the period 1951 to 2017. Once our prediction is complete, we can compare the predictions to the observed data for 27 random locations around the world.

precipitation prediction accuracy
Figure 12: Random locations used for the accuracy assessment
accuracy
Figure 13: Comparing the accuracy of predicted precipitation to observed precipitation

This accuracy assessment in figure 13 shows an overall agreement between our predicted precipitation and the observed precipitation for 1951 to 2017. This accuracy assessment indicates our original 2018 to 2027 predictions are within a reasonable level of error and accurately represent future precipitation values.

Summary

With a simple historical precipitation data set and Esri’s multidimensional tools, we were able to visualize and interpret the history of precipitation across the world. We were also able to predict future precipitation and investigate environmentally sensitive regions like the Amazon rainforest and the Sahara desert. These multidimensional tools allow you to work with rich datasets such as the precipitation records used here and easily produce meaningful results to help answer complex questions.

References

 Magrin, G.O., J.A. Marengo, J.-P. Boulanger, M.S. Buckeridge, E. Castellanos, G. Poveda, F.R. Scarano, and S. Vicuña, 2014: Central and South America. In: Climate Change 2014: Impacts, Adaptation, and Vulnerability. Part B: Regional Aspects. Contribution of Working Group II to the Fifth Assessment Report of the Intergovernmental Panel on Climate Change [Barros, V.R., C.B. Field, D.J. Dokken, M.D. Mastrandrea, K.J. Mach, T.E. Bilir, M. Chatterjee, K.L. Ebi, Y.O. Estrada, R.C. Genova, B. Girma, E.S. Kissel, A.N. Levy, S. MacCracken, P.R. Mastrandrea, and L.L.White (eds.)]. Cambridge University Press, Cambridge, United Kingdom and New York, NY, USA, pp. 1499-1566

 Natalie Thomas, Sumant Nigam. Twentieth-Century Climate Change over Africa: Seasonal Hydroclimate Trends and Sahara Desert Expansion. Journal of Climate, 2018; 31 (9): 3349 DOI: 10.1175/JCLI-D-17-0187.1

Wu, Yutian & Polvani, Lorenzo. (2017). Recent Trends in Extreme Precipitation and Temperature over Southeastern South America: The Dominant Role of Stratospheric Ozone Depletion in CESM Large Ensemble. Journal of Climate. 30. 10.1175/JCLI-D-17-0124.1.

University of Delaware Air Temperature & Precipitation

https://psl.noaa.gov/data/gridded/data.UDel_AirT_Precip.html#detail

About the author

Sudhir Raj Shrestha currently works at the Environmental Systems Research Institute (ESRI) as Solution Engineer Researcher supporting geospatial science applications in NASA, JPL, NOAA, and USDA ARS and industry partners like Microsoft and Amazon. He is a scientific data enthusiast with a keen interest in making data easily Discoverable and Interoperable. His research focuses on Geographic Information Science, Geoscience, Agricultural Science and Soil Science. His interests and expertise fall in development and implementation of new and innovative geospatial methods and techniques. These include Soil Moisture, Hydrological Modeling, and other complex Spatial and Statistical Modeling techniques that cover the Weather and Climate forecast and modeling; and applications of scientific data including the multidimensional weather and climate data. Sudhir works extensively with the Data Interoperability, Data and Metadata standards, R Programming and Linux system integration including the application of high resolution hyperspectral imagery and ground based and airborne LiDAR data. His previous experience includes working in the US (NOAA, University of California Merced, NOAA Environmental Cooperative Science Center at Florida A&M University, City of Merced, University of Wyoming) and internationally (Visiting Scientist Akita Prefectural University Japan, VLIR Scholar Gent University Belgium, Consultant for UN Environment Program(UNEP) funded project for Center for Rural Technology Nepal, Visiting lecturer for Himalayan College to Agricultural Science and Technology Nepal and Nepal Engineering College). In the past, Sudhir has led several organizations like nonprofit Young Water Action Team (YWAT) based in Netherlands. He was president and founder of University of Wyoming ASPRS (American Society of Photogrammetry and Remote Sensing) student chapter. Sudhir was elected as Vice President for 2020 for non-profit Earth Space Information Partner (ESIP). He volunteers to serve the earth and geospatial science community, as well as extending his experience working nationally and internationally in the earth science domain with government, academia and private industry, helping to forge and grow collaborations and expand the ESIP and Esri community at large.

Next Article

Let's Talk Data at Esri UC 2020

Read this article