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
subroutine caller(arg, called) | |
integer :: arg | |
external :: called | |
call called(arg) | |
end subroutine caller |
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
subroutine caller(arg, called) | |
integer :: arg | |
interface | |
subroutine called(arg) | |
integer :: arg | |
end subroutine called | |
end interface | |
call called(arg) | |
end subroutine caller |
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 com.vividsolutions.jts.geom.Coordinate; | |
import com.vividsolutions.jts.geom.Geometry; | |
import com.vividsolutions.jts.geom.GeometryFactory; | |
import com.vividsolutions.jts.geom.LinearRing; | |
import com.vividsolutions.jts.geom.util.AffineTransformationBuilder; | |
import com.vividsolutions.jts.geom.util.NoninvertibleTransformationException; | |
import org.geotools.geometry.jts.JTSFactoryFinder; | |
/** | |
* |
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
polygon = loads(geom.ExportToWkt()) | |
boundary = polygon.exterior | |
coords = np.zeros(( len(boundary.coords), 2)) | |
for i, the_coord in enumerate(boundary.coords): | |
coords[i, 0], coords[i, 1] = basemap( the_coord[0], the_coord[1] ) | |
result.append(Polygon(coords, facecolor = 'none', edgecolor = edge_color, linewidth = linewidth)) |
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
__author__="huziy" | |
__date__ ="$Aug 10, 2011 3:49:16 PM$" | |
from shapely.geometry import Point, Polygon | |
import numpy as np | |
class AffineTransform(): | |
def __init__(self): | |
self.transMatrix = 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
cat $(ls) > dictionary.txt |
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
find ./ -name afb -type d |
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
__author__="san" | |
__date__ ="$18-May-2010 11:48:34 PM$" | |
from datetime import datetime | |
from reportlab.platypus import * | |
from reportlab.platypus.tables import * | |
from datetime import timedelta | |
from datetime import * | |
from reportlab.lib.styles import * | |
from reportlab.lib.units import * |
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
\usepackage{tikz} | |
\usepackage{verbatim} | |
\usetikzlibrary{arrows,shapes} | |
\usepackage{pgfplots} | |
\pgfplotsset{compat=1.3} | |
\usepackage{amsmath} | |
\usetikzlibrary{chains,positioning} | |
... |
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
~# ncdump -h evap-1985.nc | |
netcdf evap-1985 { | |
dimensions: | |
longitude = 480 ; | |
latitude = 241 ; | |
time = UNLIMITED ; // (730 currently) | |
variables: | |
float longitude(longitude) ; | |
longitude:units = "degrees_east" ; | |
longitude:long_name = "longitude" ; |
OlderNewer