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
""" | |
Convert a Dynamics365 input CSV (separated by "|") into a EDI record format. | |
usage: dynamics_edi_940.py --input <filename> --output <filename> | |
""" | |
import re | |
import datetime as dt | |
import sys |
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
{ | |
"metadata": { | |
"name": "esgf-pyclient-demo" | |
}, | |
"nbformat": 3, | |
"nbformat_minor": 0, | |
"worksheets": [ | |
{ | |
"cells": [ | |
{ |
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
from pyesgf.search import SearchConnection | |
conn = SearchConnection('http://esgf-index1.ceda.ac.uk/esg-search/search', distrib=True) | |
ctx = conn.new_context(latest=True, institute='MPI-M') | |
for result in ctx.search(): | |
print result.json['master_id'], result.json['version'] |
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
#!/bin/sh | |
# | |
# This is a nieve migration script for converting a drslib dataset directory | |
# into a git-annex managed format. The result is properly deduplicated | |
# but each version will be temporarily duplicated during migration. This would | |
# be problematic for large datasets. A more robust approach could use | |
# "git-annex reinject" to set the versioned path of each file. | |
# | |
cd $DATASET_DIRECTORY |
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
[project:cordex] | |
categories = | |
project | enum | true | true | 0 | |
domain | enum | true | true | 1 | |
institute | enum | true | true | 2 | |
driving_model | enum | false | true | 3 | |
driving_experiment | enum | false | true | 4 | |
driving_ensemble | enum | false | true | 5 | |
rcm_model | enum | false | true | 6 | |
rcm_version | enum | false | true | 7 |
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
{ | |
"metadata": { | |
"name": "esgf_opendap1" | |
}, | |
"nbformat": 3, | |
"nbformat_minor": 0, | |
"worksheets": [ | |
{ | |
"cells": [ | |
{ |
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
{ | |
"metadata": { | |
"name": "esgf-pyclient-hadcm3-annotated" | |
}, | |
"nbformat": 3, | |
"nbformat_minor": 0, | |
"worksheets": [ | |
{ | |
"cells": [ | |
{ |
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
{ | |
"metadata": { | |
"name": "esgf_opendap" | |
}, | |
"nbformat": 3, | |
"nbformat_minor": 0, | |
"worksheets": [ | |
{ | |
"cells": [ | |
{ |