Skip to content

Instantly share code, notes, and snippets.

Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@hevgyrt
hevgyrt / POC_Sentinel-2_L2A_aggregated_product.ipynb
Last active April 5, 2022 11:12
Sentinel-2 L2A proof of concept from satellittdata.no
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@hevgyrt
hevgyrt / aen_webinar_netcdf_cf_acdd.ipynb
Last active August 24, 2022 12:26
Tutorial for how to create CF and ACDD compliant NetCDF files in the context of the Nansen Legacy project
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@hevgyrt
hevgyrt / geof321_analysing_output.ipynb
Created February 25, 2020 13:17
analysing output in geof321 openIFS assignment by trygve and martin
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@hevgyrt
hevgyrt / plot_aoi.py
Created January 21, 2020 13:32
generic script for plotting AOI in py3 using cartopy
# inspired by https://scitools.org.uk/cartopy/docs/v0.16/gallery/effects_of_the_ellipse.html
import matplotlib.pyplot as plt
import matplotlib
import cartopy.crs as ccrs
import cartopy.feature as cfeature
from matplotlib.patheffects import Stroke
import numpy as np
import shapely.geometry as sgeom
import matplotlib.ticker as mticker
@hevgyrt
hevgyrt / sentinel_3_opendap_example.ipynb
Created December 12, 2019 14:05
Test for reading Sentinel-3 OCLI L1 in NetCDF/CF
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@hevgyrt
hevgyrt / create_NetCDF_CF_ACDD.ipynb
Last active April 29, 2024 07:22
How to make a NetCDF file compliant with CF and ACDD
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@hevgyrt
hevgyrt / fimex_cmd
Created October 18, 2019 09:19
fimex_cmd_s1_reproject
fimex --input.file=http://nbstds.met.no/thredds/dodsC/NBS/S1B/2019/10/14/EW/S1B_EW_GRDM_1SDH_20191014T084352_20191014T084452_018469_022CC3_15BE.nc --input.type=nc4 --output.type=NetCDF --extract.selectVariables=Amplitude_HV --extract.removeVariable=crsWGS84 --interpolate.method=forward_mean --interpolate.projString="+proj=stere +lat_0=90 +lat_ts=71 +lon_0=0 +k=1 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs" --interpolate.xAxisValues=-815464.0,-815262.435,...,-613899.0 --interpolate.yAxisValues=-1671949.0,-1671796.504,...,-1519453.0 --interpolate.xAxisUnit=m --interpolate.yAxisUnit=m --output.file int_swath.nc
@hevgyrt
hevgyrt / read_sentinel-2_L2A_opendap.ipynb
Last active November 20, 2019 08:08
Read Sentinel-2 L2A (bottom of atmosphere) product in NetCDF/CF by means of OPeNDAP from satellittdata.no
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@hevgyrt
hevgyrt / s1_s2_sea_ice_concentration.ipynb
Last active November 20, 2019 09:04
Calculating sea ice concentration in overlapping, aligned areas for Sentinel-1 and Sentinel-2 data in NetCDF/CF from satellittdata.no
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.