Collect data and Batch processing

Python for Spatial Analysis in ArcGIS Advanced Python in ArcGIS for Spatial Analysis
10 minutes
Share the link to this page
Copied
  Completed
You need to have access to the item to view this lesson.
One-time Fee
$69.99
List Price:  $99.99
You save:  $30
€64.39
List Price:  €91.99
You save:  €27.60
£55.09
List Price:  £78.70
You save:  £23.61
CA$95.28
List Price:  CA$136.12
You save:  CA$40.84
A$104.54
List Price:  A$149.36
You save:  A$44.81
S$94.19
List Price:  S$134.57
You save:  S$40.37
HK$545.77
List Price:  HK$779.70
You save:  HK$233.93
CHF 63.61
List Price:  CHF 90.88
You save:  CHF 27.26
NOK kr746.97
List Price:  NOK kr1,067.14
You save:  NOK kr320.17
DKK kr480.44
List Price:  DKK kr686.38
You save:  DKK kr205.93
NZ$114.32
List Price:  NZ$163.32
You save:  NZ$49
د.إ257.07
List Price:  د.إ367.26
You save:  د.إ110.19
৳8,168.69
List Price:  ৳11,670.06
You save:  ৳3,501.36
₹5,828.58
List Price:  ₹8,326.90
You save:  ₹2,498.32
RM327.90
List Price:  RM468.45
You save:  RM140.55
₦105,229.96
List Price:  ₦150,334.96
You save:  ₦45,105
₨19,431.47
List Price:  ₨27,760.43
You save:  ₨8,328.96
฿2,521.66
List Price:  ฿3,602.53
You save:  ฿1,080.87
₺2,253.99
List Price:  ₺3,220.12
You save:  ₺966.13
B$357.19
List Price:  B$510.29
You save:  B$153.10
R1,273.09
List Price:  R1,818.79
You save:  R545.69
Лв125.75
List Price:  Лв179.65
You save:  Лв53.90
₩95,095.26
List Price:  ₩135,856.19
You save:  ₩40,760.93
₪258.97
List Price:  ₪369.98
You save:  ₪111
₱4,052.01
List Price:  ₱5,788.84
You save:  ₱1,736.82
¥10,898.49
List Price:  ¥15,569.94
You save:  ¥4,671.45
MX$1,161.50
List Price:  MX$1,659.36
You save:  MX$497.86
QR254.39
List Price:  QR363.44
You save:  QR109.04
P945.24
List Price:  P1,350.41
You save:  P405.16
KSh9,168.69
List Price:  KSh13,098.69
You save:  KSh3,930
E£3,276.23
List Price:  E£4,680.53
You save:  E£1,404.29
ብር4,006.99
List Price:  ብር5,724.51
You save:  ብር1,717.52
Kz59,384.57
List Price:  Kz84,838.74
You save:  Kz25,454.16
CLP$62,491.07
List Price:  CLP$89,276.78
You save:  CLP$26,785.71
CN¥496.64
List Price:  CN¥709.51
You save:  CN¥212.87
RD$4,086.46
List Price:  RD$5,838.06
You save:  RD$1,751.59
DA9,413.48
List Price:  DA13,448.41
You save:  DA4,034.92
FJ$155.95
List Price:  FJ$222.79
You save:  FJ$66.84
Q541.96
List Price:  Q774.26
You save:  Q232.30
GY$14,594.23
List Price:  GY$20,849.79
You save:  GY$6,255.56
ISK kr9,678.91
List Price:  ISK kr13,827.61
You save:  ISK kr4,148.70
DH694.53
List Price:  DH992.23
You save:  DH297.69
L1,236.03
List Price:  L1,765.83
You save:  L529.80
ден3,963.41
List Price:  ден5,662.25
You save:  ден1,698.84
MOP$560.62
List Price:  MOP$800.92
You save:  MOP$240.30
N$1,276.29
List Price:  N$1,823.35
You save:  N$547.06
C$2,568.19
List Price:  C$3,669
You save:  C$1,100.81
रु9,300.39
List Price:  रु13,286.84
You save:  रु3,986.45
S/260.50
List Price:  S/372.17
You save:  S/111.66
K270.91
List Price:  K387.03
You save:  K116.12
SAR262.49
List Price:  SAR375
You save:  SAR112.51
ZK1,780.59
List Price:  ZK2,543.81
You save:  ZK763.22
L320.34
List Price:  L457.65
You save:  L137.31
Kč1,591.01
List Price:  Kč2,272.97
You save:  Kč681.96
Ft24,857.67
List Price:  Ft35,512.48
You save:  Ft10,654.81
SEK kr747.87
List Price:  SEK kr1,068.43
You save:  SEK kr320.56
ARS$62,063.45
List Price:  ARS$88,665.87
You save:  ARS$26,602.42
Bs481.99
List Price:  Bs688.59
You save:  Bs206.59
COP$267,109.86
List Price:  COP$381,601.87
You save:  COP$114,492.01
₡35,703.30
List Price:  ₡51,006.90
You save:  ₡15,303.60
L1,727.27
List Price:  L2,467.63
You save:  L740.36
₲522,695.49
List Price:  ₲746,739.85
You save:  ₲224,044.36
$U2,715.34
List Price:  $U3,879.22
You save:  $U1,163.88
zł274.22
List Price:  zł391.77
You save:  zł117.54
Already have an account? Log In

Transcript

Well there are two which is called mosaic. So here is ArcMap workspace and I just downloaded a world dm 15 arc second resolution for sale size is 450 meters. Let's have a quick look of the data. The data is by pieces. Africa, Asia, Europe, Australia, syndrome America, North America and South America. seven pieces of city from the hydro state.

It's basically our Shuttle Radar Topography Mission product and they'd has different resolution Like 30 arcsecond resolution which means each pixel each cell size is 900 a meter sometimes is quoted as one kilometer 15 arcsecond each cell size is a 450 meter, 90 meter dm, which is the three arcsecond resolution and this 30 meter dm, one arcsecond dm. With finer resolution, there will be more columns and our eyes and that will be a big amount of data from a raster file. My computer memory wouldn't be able to handle that. So, for this demonstration, I will just use 15 arcsecond. The cell size is approximate It must be 450 meter. When I say cell size, I mean that's I mean Chengdu right now.

Okay so this is a one sale as measured site 400 meters This is 450 meter. It's open arctoolbox data management tools, raster raster data set mosaic. There are actually two tools can do this one is called Mosaic, once called mosaic to new raster the mosaic it will merge multiple existing raster into a existing raster data set. mosaic to new will merge them When people raster data set into a new raster data set, I will use this one because I don't want to change my existing data I want to create a new one. So mosaic to new raster input rasters has all my seven. Well, I can click click each one and use this tool here to do this practice.

But since we have already have our new friend, model Buder, and Python with ArcGIS, let's just to go here. Just add on one or two Monty find this Python script a little bit itself to well put up all the input data Oh my seven d m data set as the input, I will write a loop quickly here. Okay, so I did a little bit of modification here. I import the OSS well because I want to use the OS dot Lister directory to reading all the rasters into a list. I need the T file and I keep everything else the same as the way it was exported from moto beauty. Here I changed that this variable a little Then I tested earlier with eight bit, almost find the value range only goes to 255.

But the highest elevation is over 8000. We need a bigger volume on the data. Again, that's your one. It wasn't working because I put the wrong directory. That's right. get you to work that's at the data.

Give it time to die he or she puts a change in dm layer transparency very 10% is better. Now it looks better. Let's learn how to extract. From here. We will extract a DM for only the United States. Let's add to the boundary first.

This is the United States. export the boundary will only you as first. So, click the black feature to select a boundary for United States and click on layer data export data export selected features extracted by map the input raster feature mask export output, which is the boundary for United States and is the final result about the mosaic and extraction being class two, we learn the flow direction and flow accumulation from FDM and today I'm gonna introduce a new tool which is called basic bass into will create a raster delineating our drainage obey things. The input is flow direction raster. Okay, let's gain the pythons Script first. Okay, so the syntax is are the pi.tp dot basing, underscore input and output.

We are actually used Python script or class to add this at the end. Let me change this code quickly Okay, so here I changed the environmental workplace. I changed the flow director, I changed the file, I changed the input, directory and the name and the for all the FDM MTR FA CC. And the best thing I get me to correct directory and name and all the process I just for the process, I deleted a one which will create a stream and I added the GP dog facing function, the flow direction here and then the out is just called basic. I will put it here. That's the one.

This is the final result with all the bases in the world. Next time I will introduce another way to create Facing Watership

Sign Up

Share

Share with friends, get 20% off
Invite your friends to LearnDesk learning marketplace. For each purchase they make, you get 20% off (upto $10) on your next purchase.