Marble/Sentinel2Bathymetry

From KDE Community Wiki
Revision as of 21:58, 7 July 2016 by *>Tackat phab (→‎Creating the Mask)

Creating the Bathymetry

This page exists mostly for documentation purposes. For actually applying the bathymetry follow our general instructions here.

Creating the Mask

First download the WGS land polygon shapefile. Unzip the shape file. Then choose Layer->Add Layer->Add Vector Layer and load the shape file into QGIS. Right-Click the layer's square icon in the legend and click Properties. In the Style tab click the Simple Fill and the Fill combobox. Then choose the color "#000000" (black). Then choose Project->Save As and save the project as coastline.qgs . Quit the QGIS application.

qgis --snapshot coastline.png --width 16200 --height 8100 --project coastline.qgs

Open the resulting coastline.png. Then choose the Crop tool and select the area starting at the top edge of the canvas and the left border where russia is cut off. Drag the selection area down to the bottom right corner of Antarctica. Then crop the image. Now choose Image->Canvas Size, reduce the height to half the width, drag the map upwards and press Resize.

Press File->Save to save the map.