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 | |
# This script is derived from GPL 2+ code | |
# Cudos to Hamish for providing the example it's based on. | |
# Also see the following link for an example of parallelization | |
# using the multiprocessing library. | |
# https://trac.osgeo.org/grass/browser/grass/trunk/scripts/i.landsat.rgb/i.landsat.rgb.py | |
import os | |
import grass.script as grass |
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 example_function(argument1, argument2): | |
''' | |
The function takes whatever is given to it as argument1 and argument2. | |
It then assigns the values it was given to the variables argument1 and argument2. | |
''' | |
print('argument1 is ' + str(argument1)) | |
print('argument2 is ' + str(argument2)) | |
print("I'll now call the function with the values 2 and 135. \n") | |
example_function(2, 135) |
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/env python | |
""" | |
Measure write, read time and memory consumption for different packingTypes | |
""" | |
from __future__ import print_function | |
import argparse |
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
#include <iostream> | |
#include <stdlib.h> | |
#include <string> | |
#include <time.h> | |
#include <vector> | |
std::vector<std::string> OPENINGS = { | |
"My organisation believes in", | |
"The solution can only be", | |
"The consultants recommend", |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
diff --git a/definitions/grib2/template.5.42.def b/definitions/grib2/template.5.42.def | |
index 21bcb3e..f8e9229 100644 | |
--- a/definitions/grib2/template.5.42.def | |
+++ b/definitions/grib2/template.5.42.def | |
@@ -15,7 +15,7 @@ include "grib2/template.5.original_values.def"; | |
unsigned[1] ccsdsFlags : dump; | |
flagbit AEC_DATA_SIGNED_OPTION_MASK(ccsdsFlags,0) = 0; | |
-flagbit AEC_DATA_3BYTE_OPTION_MASK(ccsdsFlags,1) = 0; | |
+flagbit AEC_DATA_3BYTE_OPTION_MASK(ccsdsFlags,1) = 1; |
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 python3 | |
"""Plot bank account balance in CSV-MT940 format based on a starting balance.""" | |
import matplotlib.pyplot as plt | |
import pandas as pd | |
import argparse | |
import os |
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 python3 | |
# -*- coding: <encoding name> -*- | |
"""Download most recent Meteosat RGB composite at 0°""" | |
from selenium import webdriver | |
from urllib.request import urlopen | |
from argparse import ArgumentParser | |
URL = "http://oiswww.eumetsat.org/IPPS/html/MSG/RGB/NATURALCOLOR/FULLRESOLUTION/index.htm" |
OlderNewer