|
POST
|
Hi Anthony for the ExecuteModelV5, make sure Model is the Alias of your Model. for the ExecuteModelV7, I think the string for the extension you are checking out, it needs to be all lower case per examples ArcGIS Help (10.2, 10.2.1, and 10.2.2) arcpy.CheckOutExtension("datareviewer") case matters greatly in python Edit: Edit was made for a correction
... View more
05-07-2015
11:34 AM
|
1
|
3
|
3773
|
|
POST
|
Okay, once you downloaded the multidimeonsional tool zip and unzip it, open the folder and there is an netCDF4-1.0.4.win32-py2.7.exe. That is the installer for the netcdf python module. Let it run and it will install the netcdf python module on your computer.
... View more
05-07-2015
06:48 AM
|
1
|
0
|
2346
|
|
POST
|
I took her response to mean she opened the toolbox in the catalog, but once she tried to put in the URL parameter, it said it was invalid, so the red x showed up next to the parameter. The tool had no syntax errors when I tried it, I suppose she needs to be sure that the netcdf python module is installed.
... View more
05-06-2015
07:20 AM
|
1
|
5
|
2346
|
|
POST
|
This is a truncated part of the script, and the part that I think is the issue
class Dap2tin(object):
def __init__(self):
"""Define the tool (tool name is the name of the class)."""
self.label = "Dap2tin"
self.description = "Access data from the FVCOM Ocean Model via DAP and return a TIN"
self.canRunInBackground = False
self.url = None
self.dataset = None
self.cols = {
'url': 0,
'dataset_var': 1,
'iyear': 2,
'imonth': 3,
'iday': 4,
'ihour': 5,
'klev': 6,
'sr' : 7,
'out_tin': 8
}
self.default_urls = ['http://www.smast.umassd.edu:8080/thredds/dodsc/fvcom/hindcasts/30yr_gom3/mean',
'http://www.smast.umassd.edu:8080/thredds/dodsc/fvcom/hindcasts/wave_gom3',
'http://www.smast.umassd.edu:8080/thredds/dodsc/fvcom/archives/necofs_gom3',
'http://www.smast.umassd.edu:8080/thredds/dodsc/fvcom/archives/necofs_mb',
'http://www.smast.umassd.edu:8080/thredds/dodsC/FVCOM/NECOFS/Forecasts/NECOFS_GOM3_FORECAST.nc',
'http://www.smast.umassd.edu:8080/thredds/dodsc/fvcom/necofs/forecasts/necofs_fvcom_ocean_massbay_forecast.nc']
def getParameterInfo(self):
"""Define parameter definitions"""
# Parameter: URL
url = arcpy.Parameter(
displayName="OPeNDAP URL",
name="url",
datatype="String",
parameterType="Required",
direction="Input")
# set default value to 30 year hindcast monthly mean dataset
url.value = 'http://www.smast.umassd.edu:8080/thredds/dodsC/fvcom/hindcasts/30yr_gom3/mean'
url.filter.type = "ValueList"
url.filter.list = self.default_urls
I dug into that python toolbox and the issue seems to be with the url parameter, it only accepts web addresses that are defaulted in that list. If you could add your url to the list, then it could try to process. I don't have time to try and fix it and upload a new toolbox with script tool. Filip Král, you able to help on this? Also, Curtis Price, you name is on the credits for a few of those other tools, for helping with them. You got any suggestions or comments that can help out?
... View more
05-05-2015
06:35 PM
|
2
|
8
|
3858
|
|
POST
|
Hi Ashley, As everyone might not be familiar with the tools you are using, next time please post links to the downloads you are using, without being able to look at them it would be difficult to help you out. I'm assuming the MultiDimensional Tool Service Package is the one found here, provided by ESRI. This file contains the netcdf-python module that came with the download, which the scripts from githib needs to work correctly. You will need to install the module before any of the scripts work. As for which scripts, that depends on what you are trying to do. The Github page for dap2arc has a youtube example video which you may want to look at though the scripts are now in the src folder, not in the layers folder it seems. Disclaimer: I have never used these tools and my opinion is based on what I have discovered from rsignell-usgs/dap2arc · GitHub and the video provided.
... View more
05-05-2015
02:41 PM
|
1
|
0
|
3858
|
|
POST
|
From what you said, I believe you are overthinking this too much. You have a shapefile with a certain field in it with 3 different values. You want to make a new feature class for each based on the field value, either "rs", "bs" or "brn". Why not do a select by attribute for each one of those values, then make a feature layer then convert the feature layer to a feature class?
... View more
04-27-2015
07:28 AM
|
1
|
2
|
3915
|
|
POST
|
There is no way to export out georeferenced maps from layout view. To quote the ESRI help: "To add georeferencing information, check Write World File. This option is only available when you export while in data view and creates a world file that contains information that is used in conjunction with the exported raster file to tell software where the image is located in the world. The file will have the same name as the image file and a file extension that is based on the first and last letters of the image's file extension plus the letter w. (For example, if you create a TIFF image named MyMap.tif, the world file is called MyMap.tfw.)"
... View more
04-27-2015
07:22 AM
|
2
|
0
|
2112
|
|
POST
|
Depending on the shape and dimensions, this could be a very easy or a difficult task. Could you give a little more detail about what you are wanting to do or possible give a screenshot of your polygon?
... View more
04-24-2015
12:07 PM
|
1
|
1
|
1251
|
|
POST
|
There have been quite a few people lately with the exact same question about doing this. Near has been the answer everytime, wonder why this seems to be a consistent question from the community?
... View more
04-15-2015
01:11 PM
|
0
|
3
|
2539
|
|
POST
|
1. Yes that is for getting input for a script tool. 2. You can set your workspace using arcpy.env.workspace here is a link for all environment controls ArcGIS Help 10.1 3. Not familiar enough with the os module to help unfortunately. I believe it can take a full file path 4. You can set a scratch workspace using the environment settings (See #2) as far as the rhyme or reason for a file going to scratch workspace vs default workspace, someone smarter can get to that. 5. You can set if outputs get added to map with environment settings (See #2) look for arcpy.env.addOutputsToMap 6. From what I know, no there is not. 7. Use arcpy.mapping.AddLayerToGroup to add a layer to a group layer
... View more
04-10-2015
12:13 PM
|
1
|
1
|
1665
|
|
POST
|
What exactly is the error code it is throwing? I would guess you are having an issue with your query statement, check this post Python - Select by attributes query issue. Joshua Bixby shows a great example of using python string formatting for query statements. You are using string formatting in your code, so it should be simple to adapt it for your query statement. Hope this helps
... View more
04-10-2015
09:04 AM
|
1
|
6
|
3082
|
|
POST
|
It would depend on what the variable outFld contains. If it contains a list of fields of which "Area" is the 4th field in the list, then yes you would use row[3]. However, if it only contained a single field, "Area", then you would use row[0]. Generally it is good practice to only put the fields into a cursor that you will actually be using to check or update data, since it will run faster if it needs values from 1-2 fields then from 20.
... View more
04-08-2015
03:03 PM
|
2
|
0
|
2284
|
|
POST
|
I'm still just a student and haven't been able to look into Open Source GIS a whole lot, though it sounds like it would be fairly easy to do in QGIS, more so then running a tool like that in batch mode in ArcGIS. Python just helps augment ArcGIS geoprocessing tools to make them more effective.
... View more
04-01-2015
07:08 AM
|
1
|
0
|
3000
|
|
POST
|
Lisa, programming isn't required to do this for a single tif, but it sounds like she wants to convert an entire folders worth of tifs to jpegs. It fine to go and do manually if you have just a few, but it sound like they could have many tifs to be converted, so a script to do it all could save lots of time.
... View more
04-01-2015
06:26 AM
|
0
|
2
|
3000
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 02-22-2017 08:58 AM | |
| 1 | 10-05-2015 05:43 AM | |
| 1 | 05-08-2015 07:03 AM | |
| 1 | 10-20-2015 02:20 PM | |
| 1 | 10-05-2015 05:46 AM |
| Online Status |
Offline
|
| Date Last Visited |
11-11-2020
02:23 AM
|