<?
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 (page 4) - TranceAddict Forums

Become a part of the TranceAddict community!Frequently Asked Questions - Please read this if you haven'tSearch the forums
TranceAddict Forums > Main Forums > Chill Out Room > CTRL + V thread version 2.0
Pages (12): « 1 2 3 [4] 5 6 7 8 9 10 11 12 »   Last Thread   Next Thread
Share
Author
Thread    Post A Reply
meDina
puttin CUTE into execute



Registered: Nov 2002
Location: LATA#222-Redondo Beach

WC0185444


___________________
I really suck at making music

Old Post Mar-01-2007 00:20  Syria
Click Here to See the Profile for meDina Click here to Send meDina a Private Message Add meDina to your buddy list Report this Post Reply w/Quote Edit/Delete Message
medinaM5
supreme



Registered: Jan 2005
Location: Los Angeles

The New Amsterdam Cafe! Vancouver, British Columbia

Old Post Mar-01-2007 00:25  United States
Click Here to See the Profile for medinaM5 Click here to Send medinaM5 a Private Message Visit medinaM5's homepage! Add medinaM5 to your buddy list Report this Post Reply w/Quote Edit/Delete Message
_Nut_
North x NorthWest



Registered: Nov 2001
Location: 61.105423,-149.723555

A raster splitting program. Interesting.

PHP:

Old Post Mar-01-2007 01:06 
Click Here to See the Profile for _Nut_ Click here to Send _Nut_ a Private Message Add _Nut_ to your buddy list Report this Post Reply w/Quote Edit/Delete Message
XoxidE
Senior tranceaddict



Registered: Aug 2004
Location: TX TXTA: #79

tokio hotel


___________________

Old Post Mar-01-2007 01:10  United States
Click Here to See the Profile for XoxidE Click here to Send XoxidE a Private Message Visit XoxidE's homepage! Add XoxidE to your buddy list Report this Post Reply w/Quote Edit/Delete Message
LiGHT78
addicted to the hardbeats



Registered: Mar 2005
Location: Montreal, Canada

“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.

Old Post Mar-01-2007 02:51  Canada
Click Here to See the Profile for LiGHT78 Click here to Send LiGHT78 a Private Message Add LiGHT78 to your buddy list Report this Post Reply w/Quote Edit/Delete Message
Nrg2Nfinit
ItaloDiscoAddict



Registered: Sep 2001
Location: Ottawa

http://img135.**************/img135/253/casey06un1.jpg

Old Post Mar-01-2007 06:28 
Click Here to See the Profile for Nrg2Nfinit Click here to Send Nrg2Nfinit a Private Message Add Nrg2Nfinit to your buddy list Report this Post Reply w/Quote Edit/Delete Message
Sunsnail
Global Moderator



Registered: Sep 2004
Location:

http://secure.sciencecompany.com/Ac...-P6659C670.aspx

Old Post Mar-01-2007 06:28 
Click Here to See the Profile for Sunsnail Click here to Send Sunsnail a Private Message Add Sunsnail to your buddy list Report this Post Reply w/Quote Edit/Delete Message
PhaseFour
Big Bad Bald Asian Guy



Registered: Apr 2001
Location: Sacramento and/or UC Davis, California

quote:
Originally posted by Nrg2Nfinit
http://img135.**************/img135/253/casey06un1.jpg



___________________

Old Post Mar-01-2007 06:37  United States
Click Here to See the Profile for PhaseFour Click here to Send PhaseFour a Private Message Visit PhaseFour's homepage! Add PhaseFour to your buddy list Report this Post Reply w/Quote Edit/Delete Message
shaw
RIP



Registered: Jan 2005
Location: Intergalactic Mimosa Station

http://www.tranceaddict.com/forums/...fo&userid=73166


___________________

> S u s h i p u n k . P h o t o g r a p h y <

Old Post Mar-01-2007 17:39 
Click Here to See the Profile for shaw Click here to Send shaw a Private Message Add shaw to your buddy list Report this Post Reply w/Quote Edit/Delete Message
Abercrombie
myspace.com/ashesband



Registered: Sep 2005
Location: Aurora Borealis

http://www.maj.com/gallery/yruugly/fark/quagmire.gif

/see fat chick club thread


___________________

Short time TA, Long time Guver, Good time giver.

Old Post Mar-01-2007 17:57  Canada
Click Here to See the Profile for Abercrombie Click here to Send Abercrombie a Private Message Add Abercrombie to your buddy list Report this Post Reply w/Quote Edit/Delete Message
Cloudburst
I am the maximum



Registered: Oct 2003
Location: Jötebårj

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].


___________________



insignificant cor member alliance

Old Post Mar-01-2007 18:19  Finland
Click Here to See the Profile for Cloudburst Click here to Send Cloudburst a Private Message Visit Cloudburst's homepage! Add Cloudburst to your buddy list Report this Post Reply w/Quote Edit/Delete Message
Frenchie
life in technocolor



Registered: Feb 2006
Location: Intergalactic Planetary

Hmm what do I have?

"On angel's winds, an angelical formation"

Well there ya have it.

Old Post Mar-01-2007 18:26  Canada
Click Here to See the Profile for Frenchie Click here to Send Frenchie a Private Message Add Frenchie to your buddy list Report this Post Reply w/Quote Edit/Delete Message

TranceAddict Forums > Main Forums > Chill Out Room > CTRL + V thread version 2.0
Post New Thread    Post A Reply

Pages (12): « 1 2 3 [4] 5 6 7 8 9 10 11 12 »  
Last Thread   Next Thread
Click here to listen to the sample!Pause playbackRoc:Ma – Bangman (Protec Mix) [Sounds Good Records] [SGR 040] [2008] [2]

Click here to listen to the sample!Pause playbackBliss Inc featuring Carlotta Chadwick - "Faith" [2002]

Show Printable Version | Subscribe to this Thread
Forum Jump:

All times are GMT. The time now is 21:25.

Forum Rules:
You may not post new threads
You may not post replies
You may not edit your posts
HTML code is ON
vB code is ON
[IMG] code is ON
 
Search this Thread:

 
Contact Us - return to tranceaddict

Powered by: Trance Music & vBulletin Forums
Copyright ©2000-2026, Jelsoft Enterprises Ltd.
Privacy Statement / DMCA
Support TA!