Skip to content

Instantly share code, notes, and snippets.

View loicdtx's full-sized avatar

Loïc Dutrieux loicdtx

View GitHub Profile
@loicdtx
loicdtx / geo_bin.py
Last active July 1, 2020 09:54
ocean color binning with numpy
#!/usr/bin/env python
import argparse
import netCDF4 as nc
import numpy as np
from pyproj import Proj
from affine import Affine
import rasterio
from rasterio.crs import CRS
@loicdtx
loicdtx / latex2Rmd
Created November 5, 2014 15:49
Utility to help converting Rnw files (R latex/sweave/knitr) to Rmd R markdown
#' Latex to R markdown converter
#'
#' @description Does 7- percent of the job, the rest is manual edits.
#'
#' @param input Character Filename of input file
#' @param output character Filename of output file
#'
#' @details Doesn't insert figures from external sources.
#'
#' @author Loic Dutrieux