Skip to content

Feature/water layers#6

Open
z3nth10n wants to merge 7 commits into
jjmontesl:masterfrom
uta-org:feature/water_layers
Open

Feature/water layers#6
z3nth10n wants to merge 7 commits into
jjmontesl:masterfrom
uta-org:feature/water_layers

Conversation

@z3nth10n

Copy link
Copy Markdown

I create a feature to have both water layers from blue marble next generation: https://neo.gsfc.nasa.gov/archive/bluemarble/bmng/

The configuration I have (on ddd.conf) is this:

    {'path': '/root/earthplusplus/elevation/ocean/ocean-landmask3.tiff',
     'crs': 'EPSG:4326',
     'resolution_m': '207.08403036450474',
     'bounds': [-180.0, -90.0, 180.0, 90.0],
     'bounds_wgs84_xy': [-180.0, -90.0, 180.0, 90.0],
     'is_water_mask': True,
     'land_value': 255,
     'water_value': 0
    },  # (207.084 m/pixel)
    {'path': '/root/earthplusplus/elevation/ocean/ocean-test.tif',
     'crs': 'EPSG:4326',
     'resolution_m': '414.16639569346967',
     'bounds': [-180.0, -89.99928, 179.99986, 90.0],
     'bounds_wgs84_xy': [-180.0, -89.99928, 179.99986, 90.0],
     'is_water_layer': True
    },  # (414.166 m/pixel)

I created the right GeoTiff by using QGis, rescaling the minimum and maximum values and rasterizing the binary file for the landmask using Pillow in Python.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant