<?
from win32com
.client import Dispatch
GP 
Dispatch("esriGeoprocessing.GPDispatch.1")

import math
from math import 
*

GP.Workspace raw_input("Input the workspace: ")

rasList GP.listRasters ()
rasList.Reset()
ras rasList.next()

print 
"The raster dataset in the work space are: "
while ras:
    print 
"\t" ras
    ras 
rasList.next()

rasData GP.Describe(raw_input("Raster Data to be divided to tiles: "))

extentList rasData.extent.split(" ")
math.sqrt(cellNum) = int(cells)

print 
"The extent of the Raster"
print "------------------------"
print "Xmin, Ymin: (" ,extentList[0],",",extentList[1],")  Xmax, Ymax (" ,extentList[2],",",extentList[3],")"

print "Number of Rows = "cellNum,"and the number of Columns = " cellNum


astart int(extentList[0])
bstart int(extentList[1])
cstart int(extentList[2])
dstart int(extentList[3])

cW int((a)/cellNum)
cH int((b)/cellNum)
 

 

print 
"The width of each cell is: "cW" and the height will be: "cH


tileCount 
1
output 
"OutRast"

a
b
cW
cH

#Concept of structure#

##################

#row4#i4j1, i4j2, i4j3 etc
#row3#i3j1, i3j2, i3j3 etc
#row2#i2j1, i2j2, i2j3 etc
#row1#i1j1, i1j2, i1j3 etc

##################

 


for i in range(1,cellNum+1):
    print 
"\nRow"i,"started"
    
for j in range(1,cellNum+1):
        
coords str(a) +" "str(b) +" "str(c) +" "str(d)
        
outRas str(output)+str(tileCount)
        print 
"\tCell #",tileCount," Complete"

        
GP.clip_management (rasData.name,coords,outRas)

        
cW
        b 
b
        c 
cW
        d 
d

        tileCount 
tileCount +1

    a 
astart
    b 
bstart + (cH i)
    
astart + (cW)
    
bstart + (cH i) + cH

 

print "\nThe DEM has now been cut into",cells," individual cells"
?>
CTRL + V thread version 2.0 (pg. 4) - TranceAddict Forums - Chill Out Room
return to tranceaddict TranceAddict Forums Archive > Main Forums > Chill Out Room

Pages: 1 2 3 [4] 5 6 7 8 9 10 11 12 
CTRL + V thread version 2.0 (pg. 4)
View this Thread in Original format
meDina
WC0185444
medinaM5
The New Amsterdam Cafe! Vancouver, British Columbia
_Nut_
A raster splitting program. Interesting.

PHP:

XoxidE
tokio hotel
LiGHT78
“Stereo in Montreal is every DJ's wet dream!” laughs Sander Kleinenberg, clearly an admirer. “The soundsystem is unique and the vibe during the infamous after-hours is legendary. There is simply no place like it anywhere in the world and some of my best DJ memories so far lay in that amazing DJ booth.
Nrg2Nfinit
http://img135.**************/img135/253/casey06un1.jpg
Sunsnail
http://secure.sciencecompany.com/Ac...-P6659C670.aspx
PhaseFour
quote:
Originally posted by Nrg2Nfinit
http://img135.**************/img135/253/casey06un1.jpg


:wtf: :wtf: :wtf: :wtf: :wtf:
Inconspicuous
http://www.tranceaddict.com/forums/...fo&userid=73166
Abercrombie
http://www.maj.com/gallery/yruugly/fark/quagmire.gif

/see fat chick club thread

Cloudburst
HexLire has the same IP like Catolico. Catolico is a leaver 5*v5 (00:09:25) in dota -arem nordic only --bl [2007-03-01].; PotW[BrunO] is a leaver. Banned by Kaempestore 4v5 (@ 00:43:38) in Dota -arem Swe Only!BL! [2006-11-17].
Frenchie
Hmm what do I have?

"On angel's winds, an angelical formation"

Well there ya have it.
CLICK TO RETURN TO TOP OF PAGE
Pages: 1 2 3 [4] 5 6 7 8 9 10 11 12 
Privacy Statement