Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/water layers #6

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

z3nth10n
Copy link

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