Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Lab 12: GRACE Ocean Mass and Global Mean Sea Level

In this lab, we will investigate the ocean mass contribution to sea level rise - the so-called “barystatic component” - using estimates from the Gravity Recovery and Climate Experiment (GRACE) and its follow-on (GRACE-FO).

Learning Objectives:

By the end of this lab, you should be able to

  • obtain monthly GRACE/GRACE-FO mascon data and generate maps

  • Estimate a time series of barystatic height from the GRACE data

  • Estimate a time series of steric height from the altimetry and ocean mass data

Import the modules for this notebook

Motivation

In Lab 10, we explored sea surface height from satellite altimeters that use radars to measure the ocean surface. Over time, these altimeters can be used to esimate global mean sea level rise. However, to diagnose the causes of sea level change, we need to partition steric change associated with changes in seawater volume and density as temperature and salinity vary, with barystatic change from changes in mass as water is added from land ice, groundwater, rivers, and other reservoirs, i.e.

ηtotal′≈ηbarystatic′+ηsteric′\eta'_{\text{total}} \approx \eta'_{\text{barystatic}} + \eta'_{\text{steric}}

GRACE is one of the few satellite systems that lets us estimate the mass contribution from changes in Earth’s gravity field.

In this lab, we will use GRACE/GRACE-FO mascon data to estimate the ocean mass contribution to sea level rise. Then, we will compare this estimate to estimates of global sea level to estimate the steric height contribution.

Getting Started

For this lab, we will use the JPL GRACE/GRACE-FO mascon product. The product is distributed as a monthly global netCDF file containing liquid water equivalent thickness anomalies. The most recently-updated file can be downloaded from the link HERE.

Navigate to this link and download the GRCTellus.JPL.200204_YYYYMM.GLO.RL06.3M.MSCNv04CRI.nc file into your data folder for this lab (defined here):

Part 1: Reading and Visualizing the GRACE Mascon Data

In the space below, we’ll read in the GRACE mascon dataset similar to our analysis with other netCDF datasets. Using the file downloaded above, import the following fields:

  • the lon, lat, lon_bounds, lat_bounds,

  • the time and time_bounds variables

  • the liquid water equivalent thickness field

  • the land mask

🤔 Check your units

  1. What are the units of the time variables?

  2. What are the units of the liquid water equivalent thickness field?

After you’ve read in the data, use the space below to generate a map of one monthly liquid water equivalent thickness (any month is fine). Be sure to use a divergent colorbar and stretch the color axes so that it is centered on 0.

<Figure size 640x480 with 2 Axes>

🤔 Questions for consideration

After you’ve made your plot, consider the following questions:

  1. In the month you’ve chosen to plot, where do you see strong positive values? Negative values? Why?

  2. What are the positive and negative values in reference to?

  3. The lon-lat grid in the file is provided with a longitudinal and latitudinal spacing of 0.5 degree. However, some of the signals in the data are “blocky” and don’t represent this resolution. Why?

Part 2: Assessing Hotspots of Mass Change

In the plot above, we tend to see higher values on land than in the ocean. As a first assessment of where mass changes are most variable, we can compute the standard deviation of the liquid water equivalent thickness values. Reproduce your map above with these values. Be sure to use a sequential colorbar and stretch the color map to represent the data appropriately.

<Figure size 640x480 with 2 Axes>

🤔 Question for consideration

After you’ve made your plot, consider the following question: Where is the variability the strongest? What do these locations have in common?

Part 3: Masking Land Data and Visualizing Ocean Changes

To investigate changes in ocean mass, we’ll need to remove the signal from land. One way to visualize this ocean signal alone is to mask out the portion on land. Since this is a common calculation, the GRACE team provides a land mask in the distributed mascon file. Make a plot of the land mask here:

<Figure size 640x480 with 2 Axes>

The land mask can be applied to the data using numpy’s np.ma.masked_where function. For example, the first time step of the mascon solution can be masked as follows:

masked_lwe_thickness = np.ma.masked_where(land_mask==1, lwe_thickness[0,:,:])

Using this masking code, recreate your plot above with the land data masked out. Be sure to adjust your colorbar to be appropriate for the ocean-only data as needed.

<Figure size 640x480 with 2 Axes>

🤔 Questions for consideration

After you’ve made your plot, consider the following questions:

  1. How does this change your assessment of ocean changes?

  2. Try changing your time step to a new time period. What do you notice about the map? Why?

Part 4: Computing Barystatic Sea Level Rise

Next, we will compute the area-weighted average liquid water equivalent thickness over the global ocean. This average tells us how much water would need to be spread evenly over the ocean to produce the same total volume anomaly -- in other words, barystatic sea level rise. Since the data are on a latitude-longitude grid, grid cells near the equator represent a larger area than grid cells near the poles. The first step in our calculation will be to estimate the area of each grid cell.

Estimating grid cell areas

If we assume the Earth is a perfect sphere with radius R=R=6,371 km, it’s fairly straightforward to compute the area of each cell if we think of each cell as taking up a given proportion of the sphere. On one hand, the area of a vertical latitude band between ϕ1\phi_1 and ϕ0\phi_0 has area

ALongitude Band=AEarth(ϕ1−ϕ02π)=2R2(ϕ1−ϕ0)A_{\text{Longitude Band}} = A_{Earth} \left(\frac{\phi_1 - \phi_0}{2\pi}\right) = 2 R^2 (\phi_1 - \phi_0)

Further, a little trigonometry shows the area of a portion of the sphere between the equator and a given latitude (θ\theta) is scaled by the sin of the latitude. Thus, in a given latitude band between θ1\theta_1 and θ0\theta_0, the fractional area is

ALatitude Band=AEarth(sin⁡(θ1)−sin⁡(θ0)2)A_{\text{Latitude Band}} = A_{Earth}\left(\frac{\sin (\theta_1) - \sin (\theta_0)}{2}\right)

Putting these pieces together, we can compute the surface area of a given area of a sphere as

Apatch=R2(ϕ1−ϕ0)(sin⁡(θ1)−sin⁡(θ0))A_{patch} = R^2 (\phi_1 - \phi_0) (\sin (\theta_1) - \sin (\theta_0))

Code this up below to make a 2D array of grid cell areas (Hint: be sure to use the longitude and latitude values at the grid cell edges rather than the centers):

Computing Barystatic Sea Level Rise

With the area of each grid cell in hand, we’re ready to compute the global barystatic sea level rise time series. The ocean volume anomaly at timestep tt is given by

Vt=∑iI∑jJLWEi,jAi,jV_t = \sum_i^{I} \sum_j^{J} LWE_{i,j}A_{i,j}

Here, II and JJ refer to the number of longitude and latitude values in the grid, LWEi,jLWE_{i,j} is the gridded liquid water equivalent thickness in cell (i,j)(i,j), and Ai,jA_{i,j} is the area of that cell.

We can divide this by the total area of the ocean to get the thickness anomaly over the globe (barystatic sea level rise):

Lt=∑iI∑jJLWEi,jAi,j∑iI∑jJAi,jL_t = \frac{\sum_i^{I} \sum_j^{J} LWE_{i,j}A_{i,j}}{\sum_i^{I} \sum_j^{J} A_{i,j}}

Using this formula, compute the values at each timestep. Be sure to exclude the data over land!

Computing Time

Before we plot the global ocean mass anomaly time series, we’ll need to know what each time step corresponds to. When we read in the time, this was referenced in “days since 2002-01-01”. That’s a convenient time record for calculations, but our calendar-focused brains would be much better with data. In the space below, make a list called dates that converts each time step to a given date. The datetime package we read in earlier is quite useful for this calculation:

Plotting the Global Ocean Mass Anomaly Time Series

<Figure size 1200x500 with 1 Axes>

🤔 Questions for consideration

  1. Is there a long-term increase or decrease in ocean mass over the record?

  2. What is the approximate range of the seasonal cycle? Why is there a seasonal cycle?

  3. Are there any gaps in the time series? Why?

Part 5: Estimating Steric Height

In the section above, we compute changes in ocean mass since the start of the GRACE observations. Next, we’ll compare this record to that for global mean sea level as measured by radar altimeters to estimate changes in steric height.

Download Mean Sea Surface Height Data

In Lab 10, we used sea surface height fields to estimate a time series of region or global mean sea level rise. Here, we will use a convenient product generated by JPL with this calculation already done. Navigate to the NASA-SSH Global Mean Sea Level from Simple Gridded Sea Surface Height product page and download the most recent NASA_SSH_GMSL_INDICATOR.txt document. (Hint: if you are on a Mac, you may need to right-click and choose “Save Link As...”). Be sure to put this in your data folder for this lab.

After you’ve read in the data,read the data into a numpy array using the coding block below.

Once you’ve read in the data, make a plot here:

<Figure size 1200x500 with 1 Axes>

🤔 Questions for consideration

  1. How does the time period of this record compare to the GRACE record?

  2. What is the time step between observations? How does this compare to the GRACE record?

  3. What are the units of time in this record? How does this compare to the GRACE record?

  4. What is the anomaly in this record relative to? How does this compare to the GRACE record?

Homogenize the time units across records

Clearly, the time series above has different time units and it represents a different length of time compared to the GRACE record. If we’d like to compare these and compute steric height as the residual from both time series, we need to have identical lengths and time records.

Use the space below to homogenize the time records and lengths of time. You can do this either by transforming the time coordinates of the GRACE record to the SSH record, or vice versa.

Here, we’ll demo the latter process. To convert the SSH time record, first we’ll define a function to convert a datetime date object to a decimal year:

Next, we’ll use this function to find the record in the SSH time series that corresponds to the same month in the GRACE record.

Now that the record is homogenized, plot the record to ensure it looks as expected:

<Figure size 1200x500 with 1 Axes>

Computing Steric Height

Now that we’ve got our

<Figure size 1200x500 with 1 Axes>

Now that we’ve isolated the steric height anomalies, remove the first value to reference all values to the height at the start of the GRACE record.

Finally, plot all records on the same plot:

<Figure size 1200x500 with 1 Axes>

🤔 Questions for consideration

  1. How does the steric height record compare to the barystatic height record?

  2. What in situ observations might you use to corroborate your calculation of the steric height time series?