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
2.1 Preliminaries
2.2 Project Area
2.3 Project Map
2.4 Map Frames
___2.4.1 Frames Check
2.5 Grid Templates
___2.5.1 Grid Check
2.6 GEBCO Contours
2.7 Sediment Thickness
2.8 Boundaries & Coast
2.9 Marine Regions
2.10 Text Spreadsheet
2.11 Number Spreadsheet
2.12 Cutting a Shape
___2.12.1 Cutting Check
2.13 0-360 System
2.15 Shape from XYs
2.18 Navy Waves
2.19 IDV & THREDDS
2.20 Land Stations
2.21 HDF Chloro/Sal
2.22 HDF SST
2.24 Coastal Survey
2.25 NetCDF with NaN
2.26 Google Digitizing
2.27 UTM->WGS84
2.28 WGS84->UTM
2.29 Nav Charts
2.30 Argo MLDs
2.31 SST/Ice Climate
2.32 EU Wave Climate
2.33 GSHHG Vectors
2.34 GlobWave Grids
2.35 MGD77 Surveys
2.36 ColorWeb T/Chl/S
2.37 Named Places/Features
2.38 Giovanni Chlorophyll
2.39 Set Properties
2.40 Adding Graticules

Home > 2. Marine GIS > 2.13 0-360 System

2.13 Creating Alternative Map Systems in Saga for Pacific- and Indian-Centered Analyses & Products

  • Exercise Title:  Creating Alternative Map Systems in Saga for Pacific-  and Indian-Centered Analyses & Products

  • Abstract:  In cases where the data analyses and products are mainly centered over the Pacific, it is impractical to work with the -180˚ to +180˚ coordinate system centered in the Atlantic.  In this exercise you'll learn how to set up a base map, project area frames and graticule for a Pacific-centered (2 versions) and Indian-centered systems. 

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

  • Required Software:

    • Saga (version 2.1.2 or higher)

  • Other Resources: 

  • Authors:   Murray Brown and Lica Krug

  • Version:  8-04-2015

SPECIAL NOTE:  Users of this exercise have run into memory problems, due to the huge size of some global polygon shapes. You can tell you are having memory problems if Saga reports "Module caused access violation."  To avoid these problems, there are notes below where you should delete older versions of the shapes as you create new versions (transformed, merged, cut, etc.)    [Thanks to Emily Artack for reporting this.]
1.  Indian & Pacific Oceans Map Run Saga, and select FILE > SHAPE > LOAD SHAPE to load the world borders shapefile.

2.  We need two borders files, the original and a copy that has been moved 360 to the east.

Select TOOLS > SHAPES-TOOLS > TRANSFORM SHAPES

  • For OUTPUT leave it as CREATE.
  • For SHAPE select the WORLD BORDERS shape.
  • For dX, enter +360.

Leave everything else unchanged.  Click OK.

 

3.  Now you have two shapes, and one is TRANSFORMED (meaning moved to a different location)

4.  Now we need to combine them.  Select TOOLS > SHAPES-TOOLS > MERGE SHAPES LAYERS.

Then click on the ellipsis (...) to the right of LAYERS.

5.  Here is the objects selection tool.  You'll see it often in Saga.

6.  Move both layers on the left side ("available")  to the right side ("selected" ) with the >> control.

Then click OK.

7.  Now you can click OK.

8.  This new shape, named MERGED LAYERS appears.  You should delete the original two shapes, to save memory space.

Right-click on the new merged shape and select ADD TO MAP.

 

9.  This is your new map.  It goes from minus 180 on the left to +540 on the right.

 

10.  Take a minute, for the sake of safety, to save the new double world borders shape with the filename world_borders_doubled_minus180deg_540deg.shp
11.  Before we can specify only the middle portion of the map (the Pacific region), we need to make certain that each country is represented as multiple separate polygons, and not as multi-part single polygons.  The reason for this is that strange things happen to polygons with parts inside and outside the data management area.
12.  Select TOOLS > SHAPES-POLYGONS > POLYGON PARTS TO SEPARATE POLYGONS. 
  • For POLYGONS, select MERGED LAYERS
  • Check IGNORE LAKES

Then click OK.

 

13.  This creates a new shape named MERGED LAYERS [PARTS].  You could examine it, but it will appear identical to the map above.

14.  Now we're almost ready to cut the double-globe shape down to the desired Pacific area.  But first we need a normal graticule with lattice lines, and a special "frame" graticule.
15.  Select TOOLS > SHAPE TOOLS > CREATE GRATICULE.

Enter these settings to create a 10-degree graticule (i.e. one with 10-degree spacing between the lattice lines). 

Notice that the longitude range is from +20 to +290.

Then enter OK to create the new graticule shape.

NOTE:  You can actually set the longitude range for whatever you want.

 

16.  Here the new graticule has been shown with ADD TO MAP.  You can see where the 20-290˚ system will be.  [A genuine 0-360 system would be just a bit wider, but identical in concept.]

 

17.  You can save the new graticule shape you just made in the folder PRODUCTS > SAGA > VECTORS with the name graticule_20deg_290deg_10delta.shp
18.  Now run the graticule module again, but with these settings, to create the special frame.  The difference is in the WIDTH and HEIGHT items.

Make sure GRATICULE is set to CREATE.

Then click OK.

19.  This makes a frame that exactly surrounds the graticule, as you see here on the map.  We will use it below.

Make sure to view this map, to insure that all the geographic coordinates are as you expected.  Use your imagination (and the settings) to make the frame and graticule easily visible.

20.  Now save the new "frame" in the folder PRODUCTS > SAGA > VECTORS with this filename: frame_20deg_290deg
21.  Select TOOLS > SHAPES-POLYGONS > POLYGON-LINE INTERSECTION.

This module adds new lines to a polygon, cutting or bisecting the existing polygon borders.

22.  Make these selections:
  • For POLYGONS select the merged polygons (name might be different)
  • For LINE select the new frame graticule you just made

Then click OK.

 

23.  This new polygon shape appears.

24.  Now you have all polygons cut into "inside" parts and "outside" parts.  Next we will cut away the outside parts.
25.  Select TOOLS > SHAPES-TOOLS > CUT SHAPES LAYER.

For SHAPES, you must click the ellipsis to go to an object-selection window.

26.  In the object-selection window, move the new polygon you have just made to the right side (left side not shown here).  This means it is selected for the module calculations.

Then click OK.

27.  Now make these further selections:
  • For METHOD, select COMPLETELY CONTAINED
  • For EXTENT, select SHAPES LAYER EXTENT

Then click OK.

28.  Now you're asked for the specific shape to define the EXTENT.  Select the frame you made above.

Then click OK.

 

29.  This new shape appears, with a very long name indicating the TOOLS you used.

30.  Before you see the new object, select it and make these COLORS settings.

NOTE:  The VALUE RANGE is set automatically, so leave it alone.

31.  Here is the final map.

32.  To make certain that all countries in the map can be colored identically, the separate physical polygons must be "dissolved" back into multi-part polygons.  To do this, select TOOLS > SHAPES-POLYGONS > POLYGON DISSOLVE.
  • For POLYGON, select the new Pacific map
  • For ATTRIBUTE, select UN which is a unique numerical identifier assigned to each country in the World Borders dataset

Then select OK.

NOTE:  This is the opposite of what we did above with the tool POLYGON PARTS TO SEPARATE POLYGONS.

33.  Now you can save the new shapefile in PRODUCTS > SAGA > VECTORS with the name map_20deg_290deg_worldborders_saga
34.  Dummy Grid for Indian-Pacific Map.  Just as we did for the Liberia project area, dummy grids can be created for the new system.  In the next panel we make only one grid, covering the same map area for consistency.
35.  Select TOOLS > GRID TOOLS > CREATE GRID SYSTEM.  Then make these choices.
  • Select the xMIN, yMIN, NX, NY method
  • Set xMIN = 20
  • Set yMIN = -90
  • Set NX = 270
  • Set NY = 180
  • Set CELLSIZE = 1
  • Put a CHECK by USE OFFSET
  • Set X OFFSET = 1/2 CELLSIZE
  • Set Y OFFSET = 1/2 CELLSIZE

Then click OK.

36.  Here is the new grid, zoomed extremely close (to the bottom-right corner) to see how it matches the expected corner coordinates.  The cursor coordinates for that corner show on the bottom line.

Within the limits of the computer chip's display ability, the match is exact.

 

37.  Save the dummy grid in the folder PRODUCTS > SAGA >GRIDS with the name frame_grid_pacific_regional_1deg.sgrd
38.  But if you want complete global maps (i.e. 360-degrees wide) centered on either the Pacific or the Indian, how do you do that?
39.  Open Google Maps, minimize the zoom to get the entire world map on your screen. Click and drag  it in order to locate the ocean you are interested in right in the middle of your screen. Once you are satisfied, right click on the mid left of your screen and select ‘What’s here?. Google informs you the geographical coordinates of that point on the direction box (top left corner).

We we have the Pacific example, the westernmost point (at Equator) is approximately 18oE. Don’t worry about latitudes, we will keep it the same -90 to 90. However, try to get your left longitude on top of the Equator line. Since we have a ‘rounded’ Earth, the closer to the Poles higher will be the differences in longitudes values.

40.  We know that a map from +18o to +378o (because +18+360=378) will have 360o and the Pacific right in the middle.

In the same way, we get that a map centralizing the Indian Ocean has longitude coordinates as -88o to +272o (because -88+360=272).

41.  Global Pacific-Centered or Indian-Centered Maps:  Once we have the coordinates for our new maps, we can create the tools allowing us to prepare them.

To generate the frame lines, Select TOOLS > SHAPE TOOLS > CREATE GRATICULE.

We are creating a frame line with 360 cells width (minimum 18 and maximum 378) and 180 cells height (minimum -90 and maximum +90). Click okay.

This will generate your Pacific-centered map frame. 

 

42.  Repeating the process for the Indian-centered map:

Select TOOLS > SHAPE TOOLS > CREATE GRATICULE.

And change settings to a frame line with 360 cells width (minimum -88 and maximum272) and 180 cells height (minimum -90 and maximum +90). Click okay.

 

43.  Here are the new graticules shown with ADD TO MAP. Don’t forget to rename them in order to know which graticule belongs to which ocean-centered map. We suggest FramePacific and FrameIndian.

44.  You can save both shapes in the folder PRODUCTS > SAGA > VECTORS. We suggest you name it framePacific_18deg_378deg.shp and frameIndian_88degW_272deg.shp.

45.  Select TOOLS > SHAPES-POLYGONS > POLYGON-LINE INTERSECTION. 

This module adds new lines to a polygon, cutting or bisecting the existing polygon borders using the frame you just created.

 

46.  Make these selections: 

  • For POLYGONS select the merged polygons

  • For LINE select the new frame line.

Here is the example for the Pacific frame.

Then click Okay and repeat for the Indian Ocean Frame.

 

47.  These new polygon shapes appear.

48.  Now you have all polygons cut into "inside" parts and "outside" parts.  Next we will cut away the outside parts.

49.  Select TOOLS > SHAPES-TOOLS > CUT SHAPES LAYER. 

For SHAPES, you must click the ellipsis to go to an object-selection window.

 

50.  In the object-selection window, move the new FramePacific intersection polygon you have just made to the right side (left side not shown here).  This means it is selected for the module calculations.

Then click OK.

51.  Now make these further selections:

  • For METHOD, select COMPLETELY CONTAINED
  • For EXTENT, select SHAPES LAYER EXTENT

Then click OK.

 

52.  Now you're asked for the specific shape to define the EXTENT.  Select the frame you made for the Pacific.

Then click OK.

 

53.  This new shape appears, with a very long name indicating the TOOLS you used.

54.  Before you see the new object, select it and make these COLORS settings.

NOTE:  The VALUE RANGE is set automatically, so leave it alone.

 

55.  Here is the final map.

56.  Repeat steps 22 to 28 for the Indian Ocean. Here is its map

57.  To make certain that all countries in the map can be colored identically, the separate physical polygons must be "dissolved" back into multi-part polygons.  To do this, select TOOLS > SHAPES-POLYGONS > POLYGON DISSOLVE.

  • For POLYGON, select the new Pacific map
  • For ATTRIBUTE, select UN which is a unique numerical identifier assigned to each country in the World Borders dataset.

Then select OK.

NOTE:  This is the opposite of what we did above with the tool POLYGON PARTS TO SEPARATE POLYGONS.

Repeat for the Indian Ocean map.

 

58.  .  Now you can save the new shapefiles in PRODUCTS > SAGA > VECTORS with the names Pacificmap_18deg_378deg_worldborders_saga and Indianmap_88degW_272deg_worldborders_saga

59.  Dummy Grid for the Pacific-Centered Global Map.  Just as we did for the Liberia project area, dummy grids can be created for the new system.  In the next panel we make only one grid, covering the same map area for consistency.

60.  Select TOOLS > GRID TOOLS > CREATE GRID SYSTEM.  Then make these choices.

  • Select the xMIN, yMIN, NX, NY method
  • Set xMIN = 20
  • Set yMIN = -90
  • Set NX = 270
  • Set NY = 180
  • Set CELLSIZE = 1
  • Put a CHECK by USE OFFSET
  • Set X OFFSET = 1/2 CELLSIZE
  • Set Y OFFSET = 1/2 CELLSIZE

Then click OK.

 

61.  Here is the new grid, zoomed extremely close (to the bottom-right corner) to see how it matches the expected corner coordinates.  The cursor coordinates for that corner show on the bottom line.

Within the limits of the computer chip's display ability, the match is exact.

62.  Save the dummy grid in the folder PRODUCTS > SAGA >GRIDS with the name frame_grid_pacific_global_1deg.sgrd
63.  A huge amount of information has been provided in this very long exercise.  That's because there are so many thing to consider and choices to make when you decide on a project map.  There is no single "best map" so you have to study this matter yourself, with a view toward the actual data and products you'll be working with, to optimize the base map.  Don't hesitate to contact the authors if you have questions.

 

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