Skip to content

Instantly share code, notes, and snippets.

View ungarj's full-sized avatar

Joachim Ungar ungarj

View GitHub Profile
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
#!/usr/bin/env python
#
## Copyright (c) 2013
##
## Joachim Ungar (ju@eox.at)
##
## Permission is hereby granted, free of charge, to any person obtaining a copy
## of this software and associated documentation files (the "Software"), to deal
## in the Software without restriction, including without limitation the rights
## to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
@ungarj
ungarj / date2ansi.py
Created June 26, 2013 10:11
converts a date into an ANSI number
#!/usr/bin/env python
import sys
from datetime import datetime, timedelta, date, time
# ANSI constant
ANSI_DATE_START = datetime(1601, 1, 1)
if (len(sys.argv) <> 2):
{
"remotewcsurl" : "http://neso.cryoland.enveo.at/cryoland/ows?service=wcs&version=2.0.0&",
"localwcsurl" : "http://earthserver.eox.at/eoxserver/ows?service=wcs&version=2.0.0&",
"datasetseries": {
"daily_FSC_Baltic_Optical": {
"local_dir": "/home/ungarj/temp/getSnowMaps/CRYOLAND/daily_FSC_Baltic_Optical/",
"collection": "daily_FSC_Baltic_Optical",
"datatype" : "GreyCube:GreySet3"
}
},