Skip to content

Instantly share code, notes, and snippets.

@hevgyrt
hevgyrt / read_data_from_tds.ipynb
Created November 20, 2017 14:13
Script for accessing products using OPeNDAP
View read_data_from_tds.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@hevgyrt
hevgyrt / OSISAF_kml_generator.py
Last active February 8, 2018 12:35
Script for generating .kml files for Ocean and Sea Ice Satellite Application Facility (OSI-SAF) products.
View OSISAF_kml_generator.py
""" Script for generating .kml files for Ocean and Sea Ice Satellite Application Facility(OSI-SAF) products.
Made as a show case.
USAGE:
python OSISAF_kml_generator.py [with arguments]
EXAMPLES:
python OSISAF_kml_generator.py -p conc
@hevgyrt
hevgyrt / fimex_cmd
Created October 18, 2019 09:19
fimex_cmd_s1_reproject
View fimex_cmd
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 / detect_folgefonna.ipynb
Last active November 20, 2019 08:07
Detect Folgefonna (glacier in Norway) and write polygon to shape file
View detect_folgefonna.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@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
View read_sentinel-2_L2A_opendap.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View monitor_change_sentinel_2.ipynb
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
View s1_s2_sea_ice_concentration.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@hevgyrt
hevgyrt / sentinel_3_opendap_example.ipynb
Created December 12, 2019 14:05
Test for reading Sentinel-3 OCLI L1 in NetCDF/CF
View sentinel_3_opendap_example.ipynb
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
View plot_aoi.py
# 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 / geof321_analysing_output.ipynb
Created February 25, 2020 13:17
analysing output in geof321 openIFS assignment by trygve and martin
View geof321_analysing_output.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.