View watergap_NOSOC-KGE-vl.json
This file has been truncated, but you can view the full file.
View Raster mask on regular grid from shapely Polygon
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 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 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 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
gistup |
View Makefile
# 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 |
View 2015-06-22-first-attempt.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
module mylib | |
use iso_c_binding, only: c_double | |
implicit none | |
double precision :: g | |
contains |
NewerOlder