In Git you can add a submodule to a repository. This is basically a repository embedded in your main repository. This can be very useful. A couple of usecases of submodules:
- Separate big codebases into multiple repositories.
import numpy as np | |
import xarray as xr | |
def to_180(lon): | |
""" | |
Wrap longitude from degrees [0, 360] to degrees [-180, 180]. | |
An alternative method is | |
lon[lon>180] -= 360 |