Skip to content

Instantly share code, notes, and snippets.

View lukecampbell's full-sized avatar

Luke Campbell lukecampbell

View GitHub Profile
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
netcdf HRALBPH_2016-06-23 {
dimensions:
name_strlen = 7 ;
time = UNLIMITED ; // (96 currently)
variables:
float lat ;
lat:units = "degrees_north" ;
lat:standard_name = "latitude" ;
lat:long_name = "station latitude" ;
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@lukecampbell
lukecampbell / wafs.json
Created June 22, 2016 17:26
List of existing WAFs
{
"providers": [
"PacIOOS",
"SCCOOS",
"NDBC",
"GLOS",
"GCOOS",
"Unidata",
"NANOOS",
"CariCOOS",
netcdf sample-station {
dimensions:
time = 10;
variables:
int station_id;
station_id:long_name = "Sample Station";
station_id:cf_role = "timeseries_id";
double time(time);
time:long_name = "Time";
netcdf ru28_20151007T1858Z_rt {
dimensions:
time = 56 ;
traj_strlen = 18 ;
variables:
char trajectory(traj_strlen) ;
trajectory:_FillValue = "" ;
trajectory:cf_role = "trajectory_id" ;
trajectory:comment = "A trajectory is a single deployment of a glider and may span multiple data files." ;
trajectory:long_name = "Trajectory/Deployment Name" ;
class ISOPaths(object):
identifier = "./gmd:fileIdentifier/gco:CharacterString/text()[1]"
title = "./gmd:identificationInfo/gmd:MD_DataIdentification/gmd:citation/gmd:CI_Citation/gmd:title/gco:CharacterString/text()[1]"
abstract = "./gmd:identificationInfo/gmd:MD_DataIdentification/gmd:abstract/gco:CharacterString/text()[1]"
thesaurus_name = "./gmd:identificationInfo/gmd:MD_DataIdentification/gmd:descriptiveKeywords/gmd:MD_Keywords/gmd:thesaurusName/gmd:CI_Citation/gmd:title/gco:CharacterString/text()"
# A lot of gmd:MD_DataIdentification here. Consider traversing from this element
# Temporal Extents
start_time = "./gmd:identificationInfo/gmd:MD_DataIdentification/gmd:extent/gmd:EX_Extent/gmd:temporalElement/gmd:EX_TemporalExtent/gmd:extent/gml:TimePeriod/gml:beginPosition/text()"
end_time = "./gmd:identificationInfo/gmd:MD_DataIdentification/gmd:extent/gmd:EX_Extent/gmd:temporalElement/gmd:EX_TemporalExtent/gmd:extent/gml:TimePeriod/gml:endPosition/text()"
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
<?xml version="1.0" encoding="UTF-8" ?>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You 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
@lukecampbell
lukecampbell / map.html
Created March 9, 2016 21:43
Simple leaflet map that loads geojson
<!doctype html>
<html>
<head>
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet/v0.7.7/leaflet.css" />
<script src="http://cdn.leafletjs.com/leaflet/v0.7.7/leaflet.js"></script>
<script src="https://code.jquery.com/jquery-2.2.1.min.js"></script>
</head>
<style>
#mapid { height: 800px; }
.circle {