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/bash | |
# Institut für Wetter- und Klimakommunikation GmbH / Qmet | |
# O. Maywald <[email protected]> | |
# This should install CDO with grib2, netcdf and HDF5 support. Note that the binaries are in /opt/cdo-install/bin. | |
# For further information look: | |
# http://www.studytrails.com/blog/install-climate-data-operator-cdo-with-netcdf-grib2-and-hdf5-support/ | |
# docker-command |
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 pol2latlon(x,y): | |
R = 6370.04 | |
lam0 = math.radians(10); | |
phi0 = math.radians(60); | |
lam = np.arctan(x*-1 / y) + lam0 | |
z = math.pow(R,2) * math.pow(1+np.sin(phi0),2) - (math.pow(x,2) + math.pow(y,2)) | |
n = math.pow(R,2) * math.pow(1+np.sin(phi0),2) + (math.pow(x,2) + math.pow(y,2)) | |
phi = np.arcsin(z/n) | |
return (math.degrees(lam), math.degrees(phi)) | |
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
//http://jsfiddle.net/mainvoid/qq7zcufg/ | |
$('#btn').click(function () { | |
replaceT2m( | |
getT2mMinMaxFromText($('#data').html()), | |
getT2mFromText($('#text').text())) | |
}); | |
function replaceT2m(resultArrayData, resultArrayText) { | |
var myTextArray = $('#text').text().split('In der Nacht'); |