J Kelly
  • Member for 8 years, 2 months
  • Last seen more than a month ago
  • New Haven, CT
Selecting bands of image collection in Google Earth Engine?
Accepted answer
12 votes

imageCollection.select([old bands], [new band names]) creates a new image collection containing only a specified set of bands from the images in a specified image collection var bandSubset = origCol....

View answer
If/Then python script in Field Calculator not working
Accepted answer
7 votes

You have a repeated typo: match.fabs instead of math.fabs. math is a python library, fabs is the absolute value function.

View answer
Change Detection using Raster Calculator
6 votes

Try reclassifying the rasters to a different scale of numbers, such as urban = 1 ag = 10 forest = 100 water = 1000 Then just subtract the rasters in Raster Calculator: 0 will mean unchanged. 9 ...

View answer
Using Zonal Statistics to determine percent forest cover in grid cells?
4 votes

Try reclassifying your raster (Spatial Analyst > Reclass > Reclassify) so that every pixel that used to have a value (forested) gets a value of 1, and everything that didn't becomes 0. Then, you ...

View answer
Getting the maximum value of one image in Google Earth Engine
Accepted answer
4 votes

.reduceRegion works if the geometry is reasonably small. https://code.earthengine.google.com/8d71b1f03571c4510be90381928f3925 (I drew a polygon region.) var RedBandIMAGE = ee.Image( 'LC8_L1T_TOA/...

View answer
Qgis delimited text layer from an excel file converted to .csv
Accepted answer
3 votes

Asker "needed to save it as a 'windows comma separated' values file, not just a .csv file" which also solved the problem for me.

View answer
How can I work with large DEM in GIS?
3 votes

From the IDLE interface that comes in the python folder of ArcGIS, you can execute any tool without actually loading the layer into the GUI. Go to IDLE's File Menu, New File, and type something like: ...

View answer
How to calculate area of a polygon in ArcGIS 10.2
3 votes

Open the attribute table. Choose Add Field in the first pull-down menu. Give it a name and set the type to float or double. When the new field appears, right-click at the top and choose Calculate ...

View answer
Batch converting netCDF to Raster using ArcPy?
3 votes

Just improving the efficiency of the above answer by pulling the if dimension == "time": out of the loop so it doesn't evaluate needlessly again and again. Also pulled the forward slashes out of the ...

View answer
How to compute population density of certain type with Arcmap table
3 votes

Use Select by Attribute. Fill in the expression field using the buttons and choices shown in the boxes, so that it says something like "density" < 3. You will get a subset of the original data ...

View answer
Coding Python about raster calculation for create a toolbox
Accepted answer
2 votes

GetParameterAsText gets the value AS TEXT. Therefore a,b,c,d are all strings. You need to convert them to a numeric format before asking Con to compare them to x.

View answer
How to Convert Property Survey Monument Marker Coordinates to State Plane?
Accepted answer
2 votes

From mkennedy, the answer: "it's NAD 27 state plane zone, so already in US survey feet . . . I used US NGS programs to look up the state plane zone, then to test converting the xy points to lat/lon."

View answer
Calculate average value from netcdf
Accepted answer
2 votes

Assuming that you can get each year as a separate raster, do so. Then use ArcToolbox > Spatial Analyst > Local > Cell Statistics to compute a new raster whose cell values are the mean of the ...

View answer
Lines shapefile plotted as polygons
Accepted answer
2 votes

It does not look like a line shapefile being misinterpreted. The boundaries are not the roads. Instead it looks like a service district map -- polygons around the bus routes representing areas from ...

View answer
Calculating average value into new field using layer file?
Accepted answer
2 votes

If you use the Summary Statistics tool in the Analysis>Statistics toolbox, there is an option to specify a case field, BE, when you calculate a statistic (specify "mean" as Statistic Type) on another ...

View answer
Is it possible to merge raster base maps with a DTM?
2 votes

Try creating a hillshade of the DEM and laying that, semi-transparent, over the basemap. They will not be "merged" per se, but it should give the visual effect you are seeking.

View answer
Distance measurement
1 votes

Reclassify your NDVI raster, setting the barren areas (NDVI <= 0?) to NoData. Then run the euclidean distance tool which will fill those empty areas with distance-to-vegetation. The distances ...

View answer
Arcpy python field calc syntax error variable creation
1 votes

While I'm not 100% sure whether it's possible to stick an entire function into a variable like that, in practice, I don't think you should. rep_field is the name of your function, and that's how you'...

View answer
Displaying point/kernel density map in ArcScene?
Accepted answer
1 votes

Yes, you can show the density rasters in 3D. It's unclear to me from which layer is the dialog box you're showing -- the points? You can show either the points or the density raster "floating on a ...

View answer
Clipping to Shape using ArcGIS for Desktop?
1 votes

Create a clipped layer. It sounds like you know or can easily find how to do that. Then show the clipped layer(s) over-a-top the original. You can make the original, now background, fainter by ...

View answer
Convert multiple csv (specific date range) to shp using ArcPy
1 votes

Remove "Date 1/1/2013-1/31/2013" from the arguments of MakeXYEventLayer. Add something like: arcpy.SelectLayerByAttribute_management(outlayer, "NEW_SELECTION", ' "Date" = <whatever> ') # ...

View answer
ArcGIS 10.2 arcpy -- how to import/install win32com?
Accepted answer
1 votes

I just got it working, but I had to move all of the contents (pyd's) of Lib\win32 and Lib\win32\lib out to the site-packages level. Now it can find them, but it's sort of an ad hoc solution.

View answer
ShapeFile with Z Co-ordinates
1 votes

In ArcCatalog, create a new shp with all of the same properties as the problematic one, but do not check the [] will have Z coordinates box. Then, use DataManagement/CopyFeatures to copy all of the ...

View answer
Creating clipped DEM and NDVI rasters with exact same numbers of rows and columns?
Accepted answer
0 votes

You need to ensure that both rasters have the same origin point and cell size. They probably did not actually match up before the clip. The best way to do this is to use the Resample Tool under Data ...

View answer
Create continuous raster from point values in 10.1?
0 votes

If I understand your question, you want the same result you get from PointToRaster, but you'd prefer to have zeroes in all the NoData cells? Simply follow PointToRaster with Spatial Analyst > ...

View answer
Zonal sum not working?
0 votes

Try Spatial Analyst > Generalization > Aggregate with the SUM option and a cell factor of 40. If you set the extent in Environments to match your coarse layer, you should get something pretty close. ...

View answer
How to Calculate the average value near a point
Accepted answer
0 votes

Do you have access to the Spatial Analyst extension? ArcToolbox > Spatial Analyst Tools > Neighborhood > Focal Statistics

View answer