deepbedmap

Going beyond BEDMAP2 using a super resolution deep neural network. Also a convenient flat file data repository for high resolution bed elevation datasets around Antarctica.

https://github.com/weiji14/deepbedmap

Science Score: 23.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
  • .zenodo.json file
  • DOI references
    Found 7 DOI reference(s) in README
  • Academic publication links
    Links to: zenodo.org
  • Committers with academic emails
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (11.0%) to scientific vocabulary

Keywords

antarctica bedmap binder chainer data-science deep-neural-network digital-elevation-model flat-file-db generative-adversarial-network glaciology jupyter-notebook optuna pangeo remote-sensing super-resolution
Last synced: 6 months ago · JSON representation

Repository

Going beyond BEDMAP2 using a super resolution deep neural network. Also a convenient flat file data repository for high resolution bed elevation datasets around Antarctica.

Basic Info
  • Host: GitHub
  • Owner: weiji14
  • License: lgpl-3.0
  • Language: Jupyter Notebook
  • Default Branch: master
  • Homepage:
  • Size: 169 MB
Statistics
  • Stars: 43
  • Watchers: 5
  • Forks: 26
  • Open Issues: 6
  • Releases: 0
Topics
antarctica bedmap binder chainer data-science deep-neural-network digital-elevation-model flat-file-db generative-adversarial-network glaciology jupyter-notebook optuna pangeo remote-sensing super-resolution
Created over 7 years ago · Last pushed over 3 years ago
Metadata Files
Readme License

README.md

DeepBedMap [paper] [poster] [presentation]

Going beyond BEDMAP2 using a super resolution deep neural network. Also a convenient flat file data repository for high resolution bed elevation datasets around Antarctica.

DOI GitHub top language Code style: black Comet.ML: experiments Github Actions Build Status Dependabot Status

DeepBedMap DEM over entire Antarctic continent, EPSG:3031 projection

DeepBedMap Pipeline

Directory structure ``` deepbedmap/ ├── features/ (files describing the high level behaviour of various features) │ ├── *.feature... (easily understandable specifications written using the Given-When-Then gherkin language) │ └── README.md (markdown information on the feature files) ├── highres/ (contains high resolution localized DEMs) │ ├── *.txt/csv/grd/xyz... (input vector file containing the point-based bed elevation data) │ ├── *.json (the pipeline file used to process the xyz point data) │ ├── *.nc (output raster netcdf files) │ └── README.md (markdown information on highres data sources) ├── lowres/ (contains low resolution whole-continent DEMs) │ ├── bedmap2_bed.tif (the low resolution DEM!) │ └── README.md (markdown information on lowres data sources) ├── misc/ (miscellaneous raster datasets) │ ├── *.tif (Surface DEMs, Ice Flow Velocity, etc. See list in Issue #9) │ └── README.md (markdown information on miscellaneous data sources) ├── model/ (*hidden in git, neural network model related files) │ ├── train/ (a place to store the raster tile bounds and model training data) │ └── weights/ (contains the neural network model's architecture and weights) ├── .env (environment variable config file used by pipenv) ├── .ignore (files ignored by a particular piece of software) ├── . (stuff to make the code in this repo look and run nicely e.g. linters, CI/CD config files, etc) ├── Dockerfile (set of commands to fully reproduce the software stack here into a docker image, used by binder) ├── LICENSE.md (the license covering this repository) ├── Pipfile (what you want, the summary list of core python dependencies) ├── Pipfile.lock (what you need, all the pinned python dependencies for full reproducibility) ├── README.md (the markdown file you're reading now) ├── data_list.yml (human and machine readable list of the datasets and their metadata) ├── data_prep.ipynb/py (paired jupyter notebook/python script that prepares the data) ├── deepbedmap.ipynb/py (paired jupyter notebook/python script that predicts an Antarctic bed digital elevation model) ├── environment.yml (conda binary packages to install) ├── paper_figures.ipynb/py (paired jupyter notebook/python script to produce figures for DeepBedMap paper ├── srgan_train.ipynb/py (paired jupyter notebook/python script that trains the ESRGAN neural network model) └── test_ipynb.ipynb/py (paired jupyter notebook/python script that runs doctests in the other jupyter notebooks!) ```

Getting started

Quickstart

Launch in Binder (Interactive jupyter notebook/lab environment in the cloud).

Binder Open All Collab

Installation

Installation steps

Start by cloning this repo-url

git clone <repo-url>

Then I recommend using conda to install the non-python binaries (e.g. GMT, CUDA, etc). The conda virtual environment will also be created with Python and pipenv installed.

cd deepbedmap
conda env create -f environment.yml

Activate the conda environment first.

conda activate deepbedmap

Then set some environment variables before using pipenv to install the necessary python libraries, otherwise you may encounter some problems (see Common problems below). You may want to ensure that which pipenv returns something similar to ~/.conda/envs/deepbedmap/bin/pipenv.

export HDF5_DIR=$CONDA_PREFIX/
export LD_LIBRARY_PATH=$CONDA_PREFIX/lib/
pipenv install --python $CONDA_PREFIX/bin/python --dev
#or just
HDF5_DIR=$CONDA_PREFIX/ LD_LIBRARY_PATH=$CONDA_PREFIX/lib/ pipenv install --python $CONDA_PREFIX/bin/python --dev

Finally, double-check that the libraries have been installed.

pipenv graph

Syncing/Updating to new dependencies

conda env update -f environment.yml
pipenv sync --dev

Common problems

Note that the .env file stores some environment variables. So if you run conda activate deepbedmap followed by some other command and get an ...error while loading shared libraries: libpython3.7m.so.1.0..., you may need to run pipenv shell or do pipenv run <cmd> to have those environment variables registered properly. Or just run this first:

export LD_LIBRARY_PATH=$CONDA_PREFIX/lib/

Also, if you get a problem when using pipenv to install netcdf4, make sure you have done:

export HDF5_DIR=$CONDA_PREFIX/

and then you can try using pipenv install or pipenv sync again. See also this issue for more information.

Running jupyter lab

conda activate deepbedmap
pipenv shell

python -m ipykernel install --user --name deepbedmap  #to install conda env properly
jupyter kernelspec list --json                        #see if kernel is installed
jupyter lab &

Citing

The paper is published at The Cryosphere and can be referred to using the following BibTeX code:

@Article{tc-14-3687-2020,
    AUTHOR = {Leong, W. J. and Horgan, H. J.},
    TITLE = {DeepBedMap: a deep neural network for resolving the bed topography of Antarctica},
    JOURNAL = {The Cryosphere},
    VOLUME = {14},
    YEAR = {2020},
    NUMBER = {11},
    PAGES = {3687--3705},
    URL = {https://tc.copernicus.org/articles/14/3687/2020/},
    DOI = {10.5194/tc-14-3687-2020}
}

The DeepBedMap_DEM v1.1.0 dataset is available from Zenodo at https://doi.org/10.5281/zenodo.4054246. Neural network model training experiment runs are also recorded at https://www.comet.ml/weiji14/deepbedmap. Python code for the DeepBedMap model here on Github is also mirrored on Zenodo at https://doi.org/10.5281/zenodo.3752613.

Owner

  • Name: Wei Ji
  • Login: weiji14
  • Kind: user
  • Location: Wellington
  • Company: @developmentseed

Geospatial Data Scientist/ML Practitioner @developmentseed. Towards GPU-native and cloud-native geospatial machine learning!

GitHub Events

Total
  • Watch event: 2
Last Year
  • Watch event: 2

Committers

Last synced: 7 months ago

All Time
  • Total Commits: 467
  • Total Committers: 5
  • Avg Commits per committer: 93.4
  • Development Distribution Score (DDS): 0.188
Past Year
  • Commits: 0
  • Committers: 0
  • Avg Commits per committer: 0.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
Wei Ji w****g@v****z 379
dependabot[bot] s****t@d****m 84
dependabot[bot] d****] 2
Gunesh Shanbhag 1****5 1
stickler-ci s****t@s****m 1
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: 6 months ago

All Time
  • Total issues: 36
  • Total pull requests: 158
  • Average time to close issues: about 2 months
  • Average time to close pull requests: 5 days
  • Total issue authors: 5
  • Total pull request authors: 4
  • Average comments per issue: 0.58
  • Average comments per pull request: 0.73
  • Merged pull requests: 126
  • Bot issues: 20
  • Bot pull requests: 113
Past Year
  • Issues: 0
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • dependabot-preview[bot] (20)
  • weiji14 (13)
  • nififikan (1)
  • psychonaute (1)
Pull Request Authors
  • dependabot-preview[bot] (112)
  • weiji14 (44)
  • stickler-ci[bot] (1)
  • gshanbhag525 (1)
Top Labels
Issue Labels
bug :beetle: (8) enhancement :sparkles: (7) data :card_file_box: (6) help wanted (4) question :question: (1) model :building_construction: (1) good first issue :star: (1)
Pull Request Labels
dependencies (122) python (101) enhancement :sparkles: (27) model :building_construction: (13) data :card_file_box: (12) docker :whale: (5) security :lock: (3) bug :beetle: (2) help wanted (1)

Packages

  • Total packages: 1
  • Total downloads: unknown
  • Total dependent packages: 0
  • Total dependent repositories: 0
  • Total versions: 14
proxy.golang.org: github.com/weiji14/deepbedmap
  • Versions: 14
  • Dependent Packages: 0
  • Dependent Repositories: 0
Rankings
Dependent packages count: 5.4%
Average: 5.6%
Dependent repos count: 5.8%
Last synced: 6 months ago

Dependencies

environment.yml conda
  • cuda_driver 440.64.*
  • cudatoolkit 10.0.*
  • gmt 6.0.0.*
  • libspatialindex 1.9.0.*
  • pip 19.2.1.*
  • pipenv 2020.6.2.*
  • python 3.7.3.*
Pipfile pypi
  • behave ==1.2.6 develop
  • nbval ==0.9.2 develop
  • pytest ==5.0.1 develop
  • black ==19.3b0
  • chainer ==7.0.0
  • comet-ml ==2.0.5
  • cupy-cuda100 ==7.0.0
  • dask ==2.1.0
  • descartes ==1.1.0
  • filelock ==3.2
  • geopandas ==0.5.1
  • joblib ==0.13.2
  • jupyterlab ==1.0.2
  • jupytext ==1.2.0
  • livelossplot ==0.4.1
  • matplotlib ==3.1.1
  • netcdf4 ==1.4.1
  • numpy ==1.17.3
  • optuna ==2.0.0
  • pandas ==0.25.0
  • pygmt ==0.1.1
  • quilt ==2.9.15
  • rasterio ==1.0.24
  • rtree ==0.8.3
  • salem ==0.2.4
  • scikit-image ==0.15.0
  • ssim-chainer https://github.com/higumachan/ssim-chainer.git#9c54f25b7c068b562b711027a92c346ce0708b52
  • tqdm ==4.32.2
  • xarray ==0.12.3
Pipfile.lock pypi
  • 189 dependencies