|
POST
|
Dan Patterson, Thank you. I have few question, Hopefully this time i can clear my doubt, 1. I have 12 raster file, my aim is to plot all those raster into single pdf file using single legend, so i have to create 12 mxd for different raster or i have to create only 1 mxd for all raster? (In one mxd file, multi data frame can be added, its like draw a frame inside the frame , below i have attached one ArcGIS's snapshot of multilayer framing ). Below is my working code that can produce pdf file from one mxd, import arcpy mxd = arcpy.mapping.MapDocument(r"C:\Project\Project.mxd")
df = arcpy.mapping.ListDataFrames(mxd, "Transportation")[0]
arcpy.mapping.ExportToPDF(mxd, r"C:\Project\Output\ProjectDataFrame.pdf", df, df_export_width=1600, df_export_height=1200)
del mxd
... View more
09-01-2016
04:05 AM
|
0
|
1
|
2529
|
|
POST
|
I have visited many pages but still confused. how do i process it, even i am not getting such reference that Arc GIS allow or not such plot.
... View more
09-01-2016
03:11 AM
|
0
|
1
|
2529
|
|
POST
|
Dan_Patterson. Thank you very much. I gone through the page suggested by you. Really it is very useful. I have one doubt that, I have 12 rasters, so i have to create 12 mxd file for each raster or only one mxd file for all raster to generate the output as same which i posted with my question.
... View more
08-31-2016
11:39 PM
|
0
|
1
|
2529
|
|
POST
|
I have 12 rasters for different month in single folder (Name of raster r001_npp, r002_npp…..012_npp). I am trying to export those raster into single pdf file along with layout, north arrow, scale bar, and legend and I want to keep one legend for all rasters. Below I have attached the sample raster file and images for reference, which I trying to do. Any guidance to automate the process would be great. Example of output pdf here
... View more
08-31-2016
10:04 PM
|
0
|
10
|
4672
|
|
POST
|
jskinner-esristaff. Thank you very much. Code working perfectly as you changed the cell value. But output from Kriging seems to be not accurate due to some limitation with kriging. I keep continue my research on this subject.
... View more
08-30-2016
07:50 PM
|
0
|
5
|
1579
|
|
POST
|
xander_bakker. I think so Kriging is not to be solution. I ran the code by 0.05 cell size. but i think its not probably the solution, I keep continue my research on this subject until resolve the issues. Thank you very much for you kind cooperation.
... View more
08-30-2016
07:46 PM
|
0
|
0
|
1174
|
|
POST
|
Hi Jake, Earlier Whatever CSV we converted to point feature class and later we merged them into one feature class month wise (Mereged_001, (Mereged_002...(Mereged_012 ), Now i want to perform Universal Kriging (LINEARDRIFT). I have written a code for that but its not running , Below is my code along with reference data. Any suggestion would be great. Thank you import arcpy
from arcpy import env
from arcpy.sa import *
arcpy.env.overwriteOutput = True
# Check out the ArcGIS Spatial Analyst extension license
arcpy.CheckOutExtension("Spatial")
env.workspace = r"D:\SWAT-WEATHER-DATA"
# Set local variables
inPointFeatures = "D:\SWAT-WEATHER-DATA\SELECTED-EX-MERGE.shp"
zFields = ["Max_Temper", "Min_Temper", "Precipitat", "Wind", "Relative_H", "Solar"]
#Kriging Veriable
cellSize = 0.002298707671
lagSize = 0.5780481172534
majorRange = 6
partialSill = 3.304292110
nugget = 0.002701348
kRadius = RadiusFixed(20000, 1)
#Mask region of interest
mask="D:\Gujarta Shape file\GUJARATSTATE.shp"
# Execute Kriging
for zField in zFields:
kModelUniversalObj = KrigingModelUniversal("LINEARDRIFT", lagSize, majorRange, partialSill, nugget)
OutKriging = Kriging(inPointFeatures, zField, kModelUniversalObj, 20000, kRadius)
# Execute Mask
#IDWMASk = ExtractByMask(outIDW, mask)
KrigMask = ExtractByMask(OutKriging, mask)
if not zField == "Solar":
# Save output, except Solar Radiation raster
KrigMask.save("012_{}.tif".format(zField))
else:
#Only for Solar Radiation raster
PAR = (KrigMask * 30) * 0.5
#Save output, Only for Solar Radiation raster
PAR.save("012_{}.tif".format(zField))
#print done
print 'done'
... View more
08-30-2016
10:24 AM
|
0
|
1
|
1579
|
|
POST
|
xander_bakker. Thank you for the cooperating. I am still trying to get solution. one Humbly request to you, looking for solution if possible.
... View more
08-30-2016
08:24 AM
|
0
|
2
|
1174
|
|
POST
|
Thank you for the suggestion . But i am working on 30 years satellite data sets . So without python its very time consuming and error may occur. If once we can trained the programme then process would be very smooth.
... View more
08-30-2016
08:21 AM
|
0
|
0
|
1174
|
|
POST
|
Xander Bakker, Thank you. I tried hard to fix the error of above code for Kriging. But still i am getting same error. My humbly request if you can point out the error by replace the right code.its would be very helpful.
... View more
08-30-2016
07:05 AM
|
0
|
6
|
1174
|
|
POST
|
Xander Bakker Following the same i have assigned the variable for Kriging. But had some confusion i am on right track or not. I have attached some step to take the variable which i used for kriging.
... View more
08-30-2016
06:37 AM
|
0
|
8
|
1742
|
|
POST
|
Xander Bakker. As you said to skip those variable which i don't have tool to find out. If i skip those variable is there any effect on accuracy of output. Please can you tell me, how to skip those variable by defining default values for Kriging. Kriging is tested by several researcher therefor would like to employ Kriging.
... View more
08-30-2016
06:13 AM
|
0
|
10
|
1742
|
|
POST
|
Xander Bakker. Thank you. as you mentioned take average of the month into a single point for each parameters, By default interpolation techniques takes the mean value of each coincident points for each parameters . I have added one snapshot of this.
... View more
08-30-2016
05:55 AM
|
0
|
11
|
1742
|
|
POST
|
Dan_Patterson yes i have added r in file path but still the same error
... View more
08-30-2016
05:34 AM
|
0
|
2
|
1743
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 02-01-2017 09:56 PM | |
| 1 | 01-19-2017 08:03 AM | |
| 1 | 07-31-2017 11:57 AM | |
| 1 | 08-25-2016 09:38 AM | |
| 1 | 08-17-2016 11:13 AM |
| Online Status |
Offline
|
| Date Last Visited |
11-11-2020
02:25 AM
|