Skip to content

Instantly share code, notes, and snippets.

from pathlib import Path
import logging
from harmony.message import Format, Message, Source, ScaleExtent
from harmony_browse_image_generator.adapter import BrowseImageGeneratorAdapter
from harmony_browse_image_generator.browse import create_browse_imagery
# Set up the logger

Listing of test files

  • ABoVE_TVPRM_bbox.nc4
    • This is an example output from a bounding box request to the ABoVE TVPRM collection, where -160 ≤ longitude (degrees east) ≤ -145, 68 ≤ latitude (degrees north) ≤ 70. Note, ABoVE TVPRM has 8784 time slices. To minimise the size of the stored artefact in Git, this example output only contains the first 10 time slices. ABoVE TVPRM has a projected grid that uses an Albers Conical Equal Area CRS.
  • ABoVE_TVPRM_example.dmr
import plotly.plotly as py
import plotly.graph_objs as go
import numpy as np
from pandas import RangeIndex
from numpy import array
data = [{'hoverinfo': 'y',
'line': {'color': 'transparent'},
'name': '± 2 Standard Deviations',
@flamingbear
flamingbear / Sample code and data to demonstrate imshow problems.md
Last active December 19, 2016 19:06
Sample binary grid and code to demonstrate imshow vs scipy problem.
# Sample code and data for describing data issue in imshow
## Problem: imshow seems to move some of the data around in it's axes.
When I try to us axes.imshow in matplotlib with a grid of known size and shape,
and then later read the png data, the image's data changes compared to the
input gridded data.
I've included a script `make-gif.sh` that reads a sample 900x600 image and then
Elpy Error
The backend encountered an unexpected error. This indicates a bug in
Elpy. Please open a bug report with the data below in the Elpy bug tracker:
https://github.com/jorgenschaefer/elpy/issues/new
```
Error Message
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@flamingbear
flamingbear / greenland services hack.ipynb
Last active September 28, 2015 19:06
Work for greenland hack week stuff.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@flamingbear
flamingbear / compute N3B polarstereo areas by python.ipynb
Last active January 13, 2016 20:21
Compute N3B areas with shapely
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@flamingbear
flamingbear / EASE-Grid Sea Ice Age Python Example.ipynb
Created August 28, 2015 15:31
EASE-Grid Sea Ice Age Python Example
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.