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
"""A Python script to pull Argo float location data through time from a JSON | |
file and add it to a Matplotlib animation with colour coding for a dependent | |
parameter. | |
Data can be obtained from | |
https://erddap.ifremer.fr/erddap/tabledap/ArgoFloats.html | |
The full URL used for this version is: | |
https://erddap.ifremer.fr/erddap/tabledap/ArgoFloats.json? | |
time%2Clatitude%2Clongitude%2Cpres%2Ctemp& |
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 json | |
import bmesh | |
import urllib.request | |
import datetime | |
import math | |
def drawpolygon(xdata, ydata, | |
xnorm = None, ynorm=None, zscale=None, colour=(1, 1, 1, 1)): | |
if xnorm is not None: | |
xdata = list(map(lambda x, seriesmax=max(xdata), seriesmin=min(xdata), norm=xnorm: (((x - seriesmin)/(seriesmax - seriesmin)) * (norm[1]-norm[0])) + norm[0], xdata)) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
matplotlib |
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 urllib.request | |
from rdflib import Graph, Literal, OWL, RDF, RDFS, URIRef, SKOS | |
import rdflib.namespace | |
def nvs_fetcher(nvs_collection: str, others: list) -> Graph: | |
"""Fetches a NERC Vocabulary server collection and returns it | |
as a set of OWL Named Individuals with optional additional OWL or | |
RDF classes added to the graph. |
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
PREFIX dct: <http://purl.org/dc/terms/> | |
PREFIX skos: <http://www.w3.org/2004/02/skos/core#> | |
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> | |
SELECT DISTINCT ?url ?label ?date WHERE | |
{ | |
{ | |
SELECT (?a AS ?url) (?c AS ?label) | |
WHERE { | |
VALUES ?a {<http://vocab.nerc.ac.uk/collection/P01/current/PSALCU01/> <http://vocab.nerc.ac.uk/collection/P01/current/ALATZZ01/>} | |
?a skos:prefLabel ?c |
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
PREFIX dc:<http://purl.org/dc/elements/1.1/> | |
PREFIX skos:<http://www.w3.org/2004/02/skos/core#> | |
PREFIX rdf:<http://www.w3.org/1999/02/22-rdf-syntax-ns#> | |
SELECT ?p ?q WHERE { | |
<http://vocab.nerc.ac.uk/collection/P01/current/> rdf:type skos:Collection. | |
<http://vocab.nerc.ac.uk/collection/P01/current/> ?o ?p. | |
?p skos:prefLabel ?q | |
FILTER REGEX(lcase(str(?q)), "solar") | |
} |
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
{ | |
"@context": "http://schema.org", | |
"@type": "Thing", | |
"identifier": { | |
"@id": "http://vocab.nerc.ac.uk/collection/L05/current/134/", | |
"@type": ["PropertyValue", "CreativeWork"], | |
"name": "water temperature sensor", | |
"value": "water temperature sensor", | |
"description": "An instrument that measures the temperature of the water with which it is in contact.", | |
"alternateName": "", |
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
{ | |
"@context": { | |
"sc": "http://schema.org/", | |
"gl":"http://schema.geolink.org/1.0/base/main#", | |
"skos": "http://www.w3.org/2004/02/skos/core#" | |
}, | |
"@id": "https://www.oceanexpert.net/expert/20699", | |
"@type": "sc:Person", | |
"sc:additionalType": "gl:Person", | |
"sc:honorificPrefix": "Dr.", |
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
function GetCreatorEditorAndDates() | |
{ | |
var relativePageURL = _spPageContextInfo.serverRequestPath; | |
var siteURL = _spPageContextInfo.webAbsoluteUrl; | |
var profileUrl = "http://mysites.MYCOMPANY.com/Person.aspx?accountname="; <!-- fill in with your own mysites/profile url --> |
NewerOlder