dipo_df = occ(query = "Dipodomys spectabilis",
from = "gbif",
limit = 1000,
has_coords = TRUE)
Warning messages:
1: gbif: No records returned in GBIF for Dipodomys spectabilis
Install Anaconda (2.7 or 3.5): https://www.continuum.io/downloads
From shell
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.
I hereby claim:
- I am ethanwhite on github.
- I am ethanwhite (https://keybase.io/ethanwhite) on keybase.
- I have a public key whose fingerprint is C8A0 514B EB42 6936 FB37 2900 5882 6D7C E10D CD71
To claim this, I am signing this object:
This file contains hidden or 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
from osgeo import gdal | |
gdal.AllRegister() | |
driver = gdal.GetDriverByName("netCDF") | |
gdal.Open("test.nc") |
This file contains hidden or 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
from setuptools import setup | |
setup( | |
name="UltimateAnswer", | |
version="0.1", | |
entry_points = {'console_scripts': ['ult-ans = ultimate_answer:main']}, | |
py_modules = ['ultimate_answer'] | |
) |
This file contains hidden or 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 re | |
inputfile = open('wikipedia_rodents.txt', 'r') | |
def get_species(inputstring): | |
species_regexs = "([A-Z][a-z]+ [a-z]+)" | |
species_search = re.search(species_re, inputstring) | |
if species_search: | |
return species_search.group(1) | |
This file contains hidden or 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
from __future__ import division | |
def add(num1, num2): | |
assert type(num1) == int or type(num1) == float | |
assert type(num2) == int or type(num2) == float | |
return num1 + num2 | |
def divide(numerator, denominator): | |
return numerator / denominator |
This file contains hidden or 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 subprocess | |
process = subprocess.Popen(['git', 'rev-parse', 'HEAD'], shell=False, stdout=subprocess.PIPE) | |
git_head_hash = process.communicate()[0].strip() |
NewerOlder