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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@hevgyrt
hevgyrt / detect_folgefonna.ipynb
Last active November 20, 2019 08:07
Detect Folgefonna (glacier in Norway) and write polygon to shape file
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@hevgyrt
hevgyrt / read_data_from_tds_basemap.ipynb
Created February 6, 2018 12:52
Script for interactive plotting of Sentinel-2 scenes from nbstds.met.no (Nasjonalt BakkeSegment) upon a background map.
Loading
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.
""" 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
Loading
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
Loading
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
Loading
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 / create_NetCDF_CF_ACDD.ipynb
Last active August 21, 2024 08:33
How to make a NetCDF file compliant with CF and ACDD
Loading
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.