Skip to content

Instantly share code, notes, and snippets.

View tucotuco's full-sized avatar

John Wieczorek tucotuco

  • Museum of Vertebrate Zoology
  • UC Berkeley
View GitHub Profile
@tucotuco
tucotuco / globalmaptiles.py
Created September 4, 2011 21:56
Classes to calculate Tile coordinates
#!/usr/bin/env python
###############################################################################
# $Id$
#
# Project: GDAL2Tiles, Google Summer of Code 2007 & 2008
# Global Map Tiles Classes
# Purpose: Convert a raster into TMS tiles, create KML SuperOverlay EPSG:4326,
# generate a simple HTML viewers based on Google Maps and OpenLayers
# Author: Klokan Petr Pridal, klokan at klokan dot cz
# Web: http://www.klokan.cz/projects/gdal2tiles/
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="/style/human.xsl"?>
<extension xmlns="http://rs.gbif.org/extension/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:dc="http://purl.org/dc/terms/"
xmlns:dwc="http://rs.tdwg.org/dwc/terms/"
xmlns:hc="http://rs.tdwg.org/hc/terms/"
xsi:schemaLocation="http://rs.gbif.org/extension/ http://rs.gbif.org/schema/extension.xsd"
dc:title="Humboldt Inventory Event Extension"
name="HumboldtInventoryEventExtension"
@tucotuco
tucotuco / extended_measurement_or_fact_2021-08_16.xml
Last active August 17, 2021 22:52
Draft update to the Extended Measurement or Facts Darwin Core Extension
<?xml version='1.0' encoding='UTF-8'?>
<?xml-stylesheet type='text/xsl' href='/style/human.xsl'?>
<extension xmlns='http://rs.gbif.org/extension/'
xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
xmlns:dc='http://purl.org/dc/terms/'
xsi:schemaLocation='http://rs.gbif.org/extension/ http://rs.gbif.org/schema/extension.xsd'
dc:title='Extended Measurement or Facts'
name='ExtendedMeasurementOrFacts' namespace='http://rs.tdwg.org/dwc/terms/'
rowType='http://rs.tdwg.org/dwc/terms/MeasurementOrFact'
dc:issued='2021-07-15'
# Glossary
*Biodiversity information facility*
Variously described as a ‘BIF’, a system or a network, the broader structure of people and institutions, coordinated by the node, that collectively forms an infrastructure for delivering biodiversity information to relevant stakeholders.
*Participant*
A country, economy or organization that joins GBIF by signing a Memorandum of Understanding and establishing a co-ordinated effort to support open access and use of biodiversity data, to advance scientific research, and to promote technological and sustainable development.
*Participant node*
A coordinating team designated by the Participant to coordinate a network of people and institutions that produce, manage and use biodiversity data, collectively building an infrastructure for delivering biodiversity information.
@tucotuco
tucotuco / worldclimmetadata.json
Created August 17, 2011 21:20
Worldclim variable metadata
{
"bio19":{
"maxval":5162,
"name":"Precipitation of Coldest Quarter",
"minval":0,
"created":"2006-01-04",
"srs":"+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs",
"version":"1.4",
"database":"WorldClim",
"key":"bio19",
@tucotuco
tucotuco / test.md
Created October 16, 2017 23:48
Test for md editing in gist

Title

@tucotuco
tucotuco / gn.json
Created July 18, 2017 15:56
GNR response JSON
{"id":"55vre03d7y3b","url":"http://resolver.globalnames.org/name_resolvers/55vre03d7y3b.json","data_sources":[],"data":[{"supplied_name_string":"Abies religiosa","is_known_name":true,"results":[{"data_source_id":4,"data_source_title":"NCBI","gni_uuid":"62e75dd3-ebd0-5f04-b987-5cc7d40e5034","name_string":"Abies religiosa","canonical_form":"Abies religiosa","classification_path":"|Eukaryota|Viridiplantae|Streptophyta|Streptophytina|Embryophyta|Tracheophyta|Euphyllophyta|Spermatophyta|Acrogymnospermae|Pinidae|Pinales|Pinaceae|Abies|Abies religiosa","classification_path_ranks":"|superkingdom|kingdom|phylum|subphylum||||||subclass|order|family|genus|species","classification_path_ids":"131567|2759|33090|35493|131221|3193|58023|78536|58024|1437180|3313|1446380|3318|3319|425948","taxon_id":"425948","edit_distance":0,"imported_at":"2017-05-26T17:50:04Z","match_type":1,"match_value":"Exact string match","prescore":"3|0|0","score":0.988}],"data_sources_number":7,"in_curated_sources":false}],"status":"success","message":
georeferenceverificationstatus count
12941869
requires verification 4121780
unverified 1790878
Unverified 172562
verified by curator 162177
verification required 157171
CoGe_corrected_2015-02-04 119658
Verified by data custodian 49514
checked by curator 21844
@tucotuco
tucotuco / bigqueryexample.py
Last active August 23, 2016 19:09
Example to do a bigquery Query for Classes in VertNet when invoked using the vertnet-portal project_id and appropriate authentication in the system where the script is executed.
#!/usr/bin/env python
# Copyright 2015, Google, Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
Generating public/private rsa key pair.
open /home/hadoop/.ssh/id_rsa failed: No such file or directory.
Saving the key failed: /home/hadoop/.ssh/id_rsa.
chmod: cannot access `/home/hadoop/.ssh/id_rsa': No such file or directory
./bootstrap.sh: line 17: /home/hadoop/.ssh/known_hosts: No such file or directory
./bootstrap.sh: line 21: /home/hadoop/.bashrc: No such file or directory
./bootstrap.sh: line 24: /home/hadoop/.bashrc: No such file or directory
./bootstrap.sh: line 27: /home/hadoop/.bashrc: No such file or directory
./bootstrap.sh: line 28: /home/hadoop/.bashrc: No such file or directory
./bootstrap.sh: line 30: /home/hadoop/.bashrc: No such file or directory