Skip to content

Instantly share code, notes, and snippets.

@nishadhka
nishadhka / ImageResizingPIL.ipynb
Created June 4, 2017 07:18
AccessingtheBasemapObject.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@nishadhka
nishadhka / AccessBasemapObject.ipynb
Created June 3, 2017 07:44
AccessingtheBasemapObject.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@nishadhka
nishadhka / RasterReader.py
Created June 1, 2017 17:07
Reading, editing and visualizing Raster tiffs in Python
import rasterio
from numpy import copy, random, arange
import numpy as np
from matplotlib import pyplot
from matplotlib.colors import LinearSegmentedColormap
#Reading
dataset = rasterio.open('raster.tif')
#example raster is from https://daac.ornl.gov/VEGETATION/guides/Decadal_LULC_India.html
data=dataset.read(1)
Based on [this](http://stackoverflow.com/questions/27905295/how-to-replace-nans-by-preceding-values-in-pandas-dataframe)
ee['company']=ee['company'].fillna(method='ffill')
\documentclass[10pt]{article}
\usepackage{labels}
\usepackage{url}
\newcommand{\brk}{$\cdot$ }
%\LabelGridtrue % Enable this to
\LabelCols=2% Number of columns of labels per page
\LabelRows=6% Number of rows of labels per page
\begin{document}
\numberoflabels=12