If you are in the AWI network (for example through VPN), the easiest way to run jupyter notebook is to login on ollie and execute:
module load python3/3.6.3-intel2018
module load gdal/2.2.3
jupyter notebook password
| import xarray as xr | |
| import numpy as np | |
| import pyfesom2 as pf | |
| # we make it similar to this file | |
| # ugrid = xr.open_dataset('./MDAL/tests/data/ugrid/ADCIRC/ADCIRC_BG_20190910_1t.nc') | |
| data = xr.open_mfdataset('/Users/nkolduno/PYTHON/DATA/LCORE2/temp.fesom.*.nc') | |
| mesh = pf.load_mesh('/Users/nkolduno/PYTHON/DATA/core2/') |
| import Image | |
| import sys | |
| import glob | |
| import ImageOps | |
| # Trim all png images with white background in a folder | |
| # Usage "python PNGWhiteTrim.py ../someFolder" | |
| try: | |
| folderName = sys.argv[1] |