This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Converts csv files downloaded from the Ameriflux archive into a CF-compliant netCDF4 file. | |
""" | |
import argparse | |
import glob | |
import re | |
import xlrd | |
import numpy as np | |
import cftime as cf | |
from netCDF4 import Dataset |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
from netCDF4 import Dataset | |
import pylab as plt | |
import os | |
import time | |
from urllib.request import urlretrieve | |
remote_source = "http://scrippsco2.ucsd.edu/assets/data/atmospheric/stations/in_situ_co2/monthly/monthly_in_situ_co2_mlo.csv" | |
gist_source = "https://gist.github.com/nocollier/d73585731756fa472731065389af45dc" | |
local_source = os.path.basename(remote_source) |
NewerOlder