View Raster mask on regular grid from shapely Polygon
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
def outline_to_mask(line, x, y): | |
"""Create mask from outline contour | |
Parameters | |
---------- | |
line: array-like (N, 2) | |
x, y: 1-D grid coordinates (input for meshgrid) |
View watergap_NOSOC-KGE-vl.json
This file has been truncated, but you can view the full file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
View concave_hull_and_smoothed_outline.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View lib.f90
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module mylib | |
use iso_c_binding, only: c_double | |
implicit none | |
double precision :: g | |
contains |
View catchment_basin.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View mask_and_outline.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View catchment_basin.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View .gistup
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gistup |
View Tutorial.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View Makefile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# requires: https://github.com/jameskermode/f90wrap | |
# basically this is a wrapper around f2py...: | |
# - the fortran code is rewritten by f90wrap into a f90wrap_module.f90 | |
# so that there is no type defined (which are not supported by f2py break) | |
# - the same step also produces a python module that wraps the newly written f90wrap_module.f90 into fortran | |
# - compile the fortran wrapper with a few nice additions such as | |
# handling optional arguments, and defining the f90wrap_abort() function to raise an error in python | |
# without crashing the program... | |
# name of python module to be created |
NewerOlder