Hosted by "1PLs Agency"

Marine Data Literacy

Proudly published in the United States of America for environmental scientists around the world.  Providing instruction for managing, converting, analyzing and displaying oceanographic station data, marine meteorological data, GIS-compatible marine and coastal data or model simulations, and mapped remote sensing imagery

 

 

Up
5.1 Table to Points
5.2 Grid Points
5.3 Resampling Grids
5.4 Grid Masks
5.5 Grid Products
5.6 Color Palettes
5.7 Classified Grids
5.8 Google Legends
5.9 Faulty FillValues
5.10 IDV Grids
5.11 IDV 180/360
5.13 Grid Stats
5.14 NetCDF/HDF/GRIB
5.16 Saga 180/360
5.17 IDV Histogram
5.18 ToolsUI Convert

Home > 5. Gridded Data > 5.3 Resampling Grid

5.3 Resampling Gridded Data to the Project Map Extent with a "Dummy" Grid In Saga

  • Exercise Title:  Resampling Gridded Data to the Project Map Extent with a "Dummy" Grid in Saga

  • Abstract:  "Resampling" is the method to resize or change the resolution of a data grid in GIS systems.  By this means, every aspect of the original grid (columns, rows, cellsize, exact corner locations) can be altered.  This can be done manually, by specifying each of the new parameters, but it is infinitely easier to accomplish with a set (library) of pre-made dummy grids.  A major new project, such as the creation of the Liberia data collection, requires you to make this library, and always use it for resampling, to insure that all project grids are identical.

  • Preliminary Reading (in OceanTeacher, unless otherwise indicated):

    • N/A

  • Required Software:

  • Other Resources: 

  • Author:  Murray Brown

  • Version:  April 2012

1.  Before we can begin gridding, we need to load the "dummy grids" that are needed by most gridding algorithms in Saga as blueprints for the grids to create. 
2.  In Saga, use FILE > GRID > LOAD GRID to load all the dummy grids you have for Liberia.  You should have at least the 1-degree version and the 0.1-degree version.
3.  Also in Saga, use FILE > GRID > LOAD GRID and navigate to the DATA > BASEMAP > GEOLOGY folder to load the global sediment thickness grid, sediments_global_ngdc, you worked with in the Marine GIS exercises.  If you did not do those exercises, then download the zipfile sediments_global_ngdc_sdat.zip to the same folder location and unzip it.
4.  This is approximately what you should see in Saga, if you have opened a map showing the global sediment grid.
5.  If your map doesn't look quite like the above, it's because we have adjusted the color palette to emphasis "low end" numbers (i.e. we have applied a logarithmic color scale that gives more weight to numbers at the lower end of the range).  The full range of sediment thickness values is about 0 to 18000 m.

You can do this in the properties window, by setting the DISPLAY MODE to LOGARITHMIC (UP).  Also a STRETCH FACTOR must be set, and values from 10-1000 often do a good job.

[Of course, LOGARITHMIC (DOWN) is available for value distributions that need more emphasis at the high end of the range.]

6.  Now to begin the resampling, select MODULES > GRID TOOLS > RESAMPLING
7.  For GRID SYSTEM, drop down the menu and select the system that contains the grid you want to resample.  That is the huge 0.0833333-degree system.
8.  Now make these additional selections:
  • For GRID, choose the only one available, the global sediments grid
  • For PRESERVE DATA TYPE, check the box
  • For TARGET GRID, choose GRID (which means we will name a grid later)

Click OK and this window closes.

9.  This window opens.  For GRID SYSTEM, select the dummy grid system that is closest in resolution to the 0.083333-degree grid to be resampled.

NOTE:  Data "purists" claim that resampling should never be done with a grid that is even slightly smaller in cell-size than the original.  In this case, we are certainly safe.

 

10.  For GRID, make sure it says CREATE (or it might over-write an existing other file).

Then click OK.

This window closes.

11.  This window opens.  The selection of the method depends on the nature of the resampling:
  • If there aren't any no-data areas, then use BICUBIC SPLINE INTERPOLATION
  • If there are no-data areas (as we have here), then;
    •  If you are resampling to a grid cell size that is very close to the original size, then choose NEAREST NEIGHBOR to avoid the creation of false cell values in no-data areas.
    • If you are resampling to a radically different cell size, then use an interpolation method like BICUBIC SPLINE INTERPOLATION, and then (in a second operation) use an appropriate land- or depth-mask to eliminate false cell values that will be created in no-data areas.  Masking is covered in the exercise Masking Methods for Depth- or Height-Limited Grids in Saga

You can see the results of both methods in Panel 13 below, to illustrate the difference.

Then click OK.

12.  A new grid object appears in the 0.1-degree system.  It has a misleading name ("global"), but that is just to help you recognize the original source.

Right-click on the object and select SHOW GRID.

13.  Here is your new grid (on the bottom).  It matches up very well with the World Vector Shoreline from GEBCO.

The improper grid on the top was created with BICUBIC SPLINE INTERPOLATION, and you can easily see that a band of false cells extends onto the land by at least 2 cell-widths.

14.  So that's all there is to it.  With the pre-made dummy grids, you can easily and quickly make identical grids from all sorts of data.  You'll find this necessary many time in the process of making a data collection, because grid operations usually require grids to have specific geometric "systems."  Also, and perhaps even as important, resampled grids are often much smaller than the parent grid, saving storage space, loading time, and calculation time.
15.  Now to save the grids, right-click on it in the objects menu and select SAVE GRID AS.  Then navigate back to the PRODUCTS > SAGA > GRIDS folder and save the grid as sediments_liberia_ngdc_saga_0.1deg.sgrd

 

The exercises, notes and graphics in this website are copyrighted, and may not be copied or abstracted in any way, without my explicit permission (in writing).  Making one copy for your personal use is allowed.   Please report any copyright infringement to me. Murray Brown m.brown.nsb <at> gmail.com.

web counter