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
In [1]: from thredds_crawler.crawl import Crawl | |
In [2]: url = 'http://opendap.oceanobservatories.org:8090/thredds/catalog/ooi-preliminary-datasets/Coastal_Endurance/CE05MOAS/05-CTDGVM000/recovered_host/catalog.html' | |
In [3]: c = Crawl(url, debug=True) | |
2016-10-03 12:25:45,151 - [INFO] Crawling: http://opendap.oceanobservatories.org:8090/thredds/catalog/ooi-preliminary-datasets/Coastal_Endurance/CE05MOAS/05-CTDGVM000/recovered_host/catalog.html | |
2016-10-03 12:25:45,294 - [DEBUG] Processing ooi-preliminary-datasets/Coastal_Endurance/CE05MOAS/05-CTDGVM000/recovered_host/CE05MOAS-GL319-05-CTDGVM000-ctdgv_m_glider_instrument_recovered-recovered_host/CE05MOAS-GL319-05-CTDGVM000-ctdgv_m_glider_instrument_recovered-recovered_host.ncml | |
2016-10-03 12:25:45,294 - [DEBUG] Processing ooi-preliminary-datasets/Coastal_Endurance/CE05MOAS/05-CTDGVM000/recovered_host/CE05MOAS-GL319-05-CTDGVM000-ctdgv_m_glider_instrument_recovered-recovered_host/CE05MOAS-GL319-05-CTDGVM000-recovered_host-ctdgv_m_glider_instrument_recovered-20140 |
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
/data/Development/compliance-checker stringerror ✔ | |
$ conda list | |
# packages in environment at /home/kwilcox/miniconda3/envs/cc35: | |
# | |
Using Anaconda API: https://api.anaconda.org | |
arrow 0.8.0 py35_0 conda-forge | |
ca-certificates 2016.9.26 0 conda-forge | |
certifi 2016.9.26 py35_0 conda-forge | |
cf_units 1.1.3 py35_0 conda-forge | |
curl 7.49.1 1 conda-forge |
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
#! /usr/bin/env python | |
import os | |
import argparse | |
from lxml import etree | |
def main(oldxml, newxml, outfile): | |
oldtree = None |
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
-88881,2017,116,18,49,3161,0,105,141,0,3000,-88885,116,1700,50181,2017,116,75104,21342,23429,130,3,8,280,253,245,914,117879,-32873,9,0,0,0,-9999,-9999,-9999,-9999,-9999,-9999,-9999,-9999,-9999,-9999,-9999,-9999,-9999,-9999,-9999,-9999,-9999,-9999,-9999,-9999,-9999,-9999,-9999,-9999,-9999,-9999,-9999,-9999,-9999,-9999,-9999,-9999,-9999,-9999,-9999,-9999,-9999,-9999,-9999,-9999,-9999,-9999,-9999,-9999,-9999,-9999,-9999,-9999,-9999,-9999,-9999,-9999,-9999,-9999,-9999,-9999,-9999,-9999,-9999,-9999,-9999,-9999,-9999,-9999,-9999,-9999,-9999,-9999,-9999,-9999,-9999,-9999,-9999,-9999,-9999,-9999,-9999,-9999,-9999,-9999,-9999,-9999,-9999,-9999,-9999,-9999,-9999,-9999,-9999,-9999,-9999,-9999,-9999,-9999,-9999,-9999,-9999,-9999,-9999,-9999,-9999,-9999,-9999,-9999,-9999,-9999,-9999,-9999,-9999,-9999,-9999,-9999,-9999,-9999,-9999,-9999,-9999,-9999,-9999,-9999,-9999,-9999,-9999,-9999,-9999,-9999,-9999,-9999,-9999,-9999,-9999,-9999,-9999,-9999,-9999,-9999,-9999,-9999,-9999,-9999,-9999,-9999,-9999,-9999,-9999,-9999,-9999,-99 |
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
def decode_campbell_18_bit_binary_message(bites): | |
""" | |
Takes Cambell Scientific High Resolution 18-Bit Binary Format and converts | |
it to a CSV row. | |
""" | |
row = [] | |
while True: | |
# Number are three bytes long | |
byte_s = bites.read(3) | |
if not byte_s: |
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
#! /usr/bin/env python | |
import os | |
import argparse | |
from lxml import etree | |
def main(oldxml, newxml, outfile): | |
oldtree = None |
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
def forecast_member(dt, timestep_period, forecast_period, runtimes, base_date=None): | |
# Go back as far as we could go to still be in a forecast | |
# The datetime won't be in any future forecasts | |
# Only supporting hourly runtimes so set minutes to 0 so we can match on the "hourly" runtimes | |
starting = dt - forecast_period | |
starting = starting.replace(minute=0, second=0, microsecond=0) | |
compare_dt = copy(dt) | |
if timestep_period >= timedelta(days=1): | |
compare_dt = compare_dt.replace(hour=0) |
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 yaml | |
import logging | |
from typing import Sequence | |
from starlette.routing import NoMatchFound | |
from fastapi import APIRouter, Depends, Response, Request | |
from xpublish.utils.api import DATASET_ID_ATTR_KEY | |
from xpublish.plugins import Dependencies, Plugin, hookimpl |
OlderNewer