<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Extracting Pixel Data in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/extracting-pixel-data/m-p/352036#M27604</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hey Everyone,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am working on a script right now that extracts climate data for one particular pixel over a period of time.&amp;nbsp; I have written a script which works, but I feel like there is a much faster and efficient way to go about it.&amp;nbsp; Right now I have a script which downloads a NetCDF file, creates a numpy 2d array, converts this array to a raster, then I create a point which is fed x and y coordinates, and the raster is then clipped by this point so that I am left with the pixel in the raster that this point falls within.&amp;nbsp; I feel like an easier way to do this is if I could specify the xy coordinate of the pixel of interest, and then simply read this pixel value from the numpy array.&amp;nbsp; This way I wouldn't be creating a numpy array for entire climate dataset (the entire United States) and then converting this huge dataset to a raster.&amp;nbsp; I would be very grateful if anyone knows how to do this.&amp;nbsp; Thanks!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is a bit of my code where I create the point which is used to clip the climate raster to my pixel of interest:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;def ClipPix(output,pixelX,pixelY):
&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.CreateFolder_management(output,'/clipped climate rasters')
&amp;nbsp;&amp;nbsp;&amp;nbsp; pointFC= arcpy.CreateFeatureclass_management(output, "Point.shp", "POINT")
&amp;nbsp;&amp;nbsp;&amp;nbsp; inPoint = arcpy.CreateObject("Point")
&amp;nbsp;&amp;nbsp;&amp;nbsp; inPoint.X = float(pixelX)
&amp;nbsp;&amp;nbsp;&amp;nbsp; inPoint.Y = float(pixelY)
&amp;nbsp;&amp;nbsp;&amp;nbsp; cursor= arcpy.InsertCursor(pointFC)
&amp;nbsp;&amp;nbsp;&amp;nbsp; feature= cursor.newRow()
&amp;nbsp;&amp;nbsp;&amp;nbsp; feature.shape= inPoint
&amp;nbsp;&amp;nbsp;&amp;nbsp; cursor.insertRow(feature)
&amp;nbsp;&amp;nbsp;&amp;nbsp; del cursor
&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.env.workspace= output+'/climate rasters'
&amp;nbsp;&amp;nbsp;&amp;nbsp; ClimRasters= arcpy.ListRasters()
&amp;nbsp;&amp;nbsp;&amp;nbsp; for ClimRaster in ClimRasters:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.Clip_management(output+'/climate rasters/'+ClimRaster, "", output+"/clipped climate rasters/"+ClimRaster, pointFC, "", "ClippingGeometry")&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Aug 2012 17:39:05 GMT</pubDate>
    <dc:creator>StephenFricke</dc:creator>
    <dc:date>2012-08-07T17:39:05Z</dc:date>
    <item>
      <title>Extracting Pixel Data</title>
      <link>https://community.esri.com/t5/python-questions/extracting-pixel-data/m-p/352036#M27604</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hey Everyone,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am working on a script right now that extracts climate data for one particular pixel over a period of time.&amp;nbsp; I have written a script which works, but I feel like there is a much faster and efficient way to go about it.&amp;nbsp; Right now I have a script which downloads a NetCDF file, creates a numpy 2d array, converts this array to a raster, then I create a point which is fed x and y coordinates, and the raster is then clipped by this point so that I am left with the pixel in the raster that this point falls within.&amp;nbsp; I feel like an easier way to do this is if I could specify the xy coordinate of the pixel of interest, and then simply read this pixel value from the numpy array.&amp;nbsp; This way I wouldn't be creating a numpy array for entire climate dataset (the entire United States) and then converting this huge dataset to a raster.&amp;nbsp; I would be very grateful if anyone knows how to do this.&amp;nbsp; Thanks!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is a bit of my code where I create the point which is used to clip the climate raster to my pixel of interest:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;def ClipPix(output,pixelX,pixelY):
&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.CreateFolder_management(output,'/clipped climate rasters')
&amp;nbsp;&amp;nbsp;&amp;nbsp; pointFC= arcpy.CreateFeatureclass_management(output, "Point.shp", "POINT")
&amp;nbsp;&amp;nbsp;&amp;nbsp; inPoint = arcpy.CreateObject("Point")
&amp;nbsp;&amp;nbsp;&amp;nbsp; inPoint.X = float(pixelX)
&amp;nbsp;&amp;nbsp;&amp;nbsp; inPoint.Y = float(pixelY)
&amp;nbsp;&amp;nbsp;&amp;nbsp; cursor= arcpy.InsertCursor(pointFC)
&amp;nbsp;&amp;nbsp;&amp;nbsp; feature= cursor.newRow()
&amp;nbsp;&amp;nbsp;&amp;nbsp; feature.shape= inPoint
&amp;nbsp;&amp;nbsp;&amp;nbsp; cursor.insertRow(feature)
&amp;nbsp;&amp;nbsp;&amp;nbsp; del cursor
&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.env.workspace= output+'/climate rasters'
&amp;nbsp;&amp;nbsp;&amp;nbsp; ClimRasters= arcpy.ListRasters()
&amp;nbsp;&amp;nbsp;&amp;nbsp; for ClimRaster in ClimRasters:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.Clip_management(output+'/climate rasters/'+ClimRaster, "", output+"/clipped climate rasters/"+ClimRaster, pointFC, "", "ClippingGeometry")&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Aug 2012 17:39:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/extracting-pixel-data/m-p/352036#M27604</guid>
      <dc:creator>StephenFricke</dc:creator>
      <dc:date>2012-08-07T17:39:05Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting Pixel Data</title>
      <link>https://community.esri.com/t5/python-questions/extracting-pixel-data/m-p/352037#M27605</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I haven't worked with netCDF data but it looks like you could avoid a lot of what you are doing by using the Make NetCDF Table View (arcpy.MakeNetCDFTableView_md) - the help/tutorial for this show how you can create a table view for a single location, which is what you want.&amp;nbsp; I guess i'm curious how you are obtaining the coordinates of your pixel in the first place - do you have multiple locations you are workinig through to build your dataset? Ultimately, i'm curious what the output is you need to work with - is it something you can show in a map? the tabular data? Lots of questions I know but those help understand the context of what you're trying to accomplish at the end of the day.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Aug 2012 12:35:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/extracting-pixel-data/m-p/352037#M27605</guid>
      <dc:creator>ChristopherThompson</dc:creator>
      <dc:date>2012-08-08T12:35:56Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting Pixel Data</title>
      <link>https://community.esri.com/t5/python-questions/extracting-pixel-data/m-p/352038#M27606</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I haven't worked with netCDF data but it looks like you could avoid a lot of what you are doing by using the Make NetCDF Table View (arcpy.MakeNetCDFTableView_md) - the help/tutorial for this show how you can create a table view for a single location, which is what you want.&amp;nbsp; I guess i'm curious how you are obtaining the coordinates of your pixel in the first place - do you have multiple locations you are workinig through to build your dataset? Ultimately, i'm curious what the output is you need to work with - is it something you can show in a map? the tabular data? Lots of questions I know but those help understand the context of what you're trying to accomplish at the end of the day.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Hey, so my ultimate goal is to create a tool that can access climate data at the smallest resolution possible.&amp;nbsp; I have climate datasets for the entire United States.&amp;nbsp; I would like a tool where you could enter in the x and y coordinates for any location in the United States and then be able to extract climate information about the particular pixel within the climate dataset in which that x and y coordinate lies.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Aug 2012 15:53:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/extracting-pixel-data/m-p/352038#M27606</guid>
      <dc:creator>StephenFricke</dc:creator>
      <dc:date>2012-08-08T15:53:02Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting Pixel Data</title>
      <link>https://community.esri.com/t5/python-questions/extracting-pixel-data/m-p/352039#M27607</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;i think you could easily wrap that tool into a python function that includes the netCDF file and the x,y coordinate pair as arguments - from there you could probably create a feature layer based on the x,y data or a table.&amp;nbsp; so that might look something like:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;import arcpy
climvar = 'xxxx' #variable to contain the climate variable you want to use
def get_dat(netcdf,pixelX,pixelY):
&amp;nbsp;&amp;nbsp;&amp;nbsp; tbl = arcpy.MakeNetCDF(netcdf,climvar,'',[[lon,{pixelY}],[lat,{pixelX}]])
&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.CopyRows_management(tbl,'path to saved table.. ')&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;again, this is highly conceptual but seems like it would work given the information in the tutorial for working with netcdf data that you can see here:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#/Exercise_2_Creating_a_temperature_table_at_a_specific_location/00460000001q000000/" rel="nofollow noopener noreferrer" target="_blank"&gt;http://resources.arcgis.com/en/help/main/10.1/index.html#/Exercise_2_Creating_a_temperature_table_at_a_specific_location/00460000001q000000/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The help is for 10.1 and shows the entries you'd make in the GUI for the tool but those elements are all available for scripting as well.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 16:32:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/extracting-pixel-data/m-p/352039#M27607</guid>
      <dc:creator>ChristopherThompson</dc:creator>
      <dc:date>2021-12-11T16:32:28Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting Pixel Data</title>
      <link>https://community.esri.com/t5/python-questions/extracting-pixel-data/m-p/352040#M27608</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hey thanks again for the reply.&amp;nbsp; Ideally, I don't want to have to download a netcdf file because it takes a while to download.&amp;nbsp; I would simply like to be able to read a netcdf file and create a numpy array at a specific pixel.&amp;nbsp; Not sure how to do this though.&amp;nbsp; Here is my script that creates a numpy array and then a raster for the entire USA.&amp;nbsp; I would really like to know a way to specify the array to simply be the one pixel at a specific x and y coordinate.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;def AddBcsd(output,GcmModel,GcmScenario,GcmMonth,GcmVar,GcmYear):
&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.CreateFolder_management (output, "climate rasters")
&amp;nbsp;&amp;nbsp;&amp;nbsp; dataset =('http://climatedata_NetCDF/')
&amp;nbsp;&amp;nbsp;&amp;nbsp; fn = ('dcsbcsd_'+str(GcmModel)+'_'+str(GcmScenario)+'_'+str(GcmMonth)+'_'+str(GcmVar)+'_run1_conus_epscor.nc')
&amp;nbsp;&amp;nbsp;&amp;nbsp; bcsd= open_url(dataset + fn)
&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.AddMessage("\nDownloading Climate Data for "+str(GcmMonth)+"/"+str(GcmYear)+"...")
&amp;nbsp;&amp;nbsp;&amp;nbsp; lt = bcsd['lat']
&amp;nbsp;&amp;nbsp;&amp;nbsp; ln = bcsd['lon']
&amp;nbsp;&amp;nbsp;&amp;nbsp; lat,lon = np.meshgrid(ln.data,lt.data)
&amp;nbsp;&amp;nbsp;&amp;nbsp; vars = bcsd.keys()
&amp;nbsp;&amp;nbsp;&amp;nbsp; years = range(1900,2100)
&amp;nbsp;&amp;nbsp;&amp;nbsp; data = bcsd[vars[1]][years.index(int(GcmYear)),:,:]
&amp;nbsp;&amp;nbsp;&amp;nbsp; indata = np.float32(data)
&amp;nbsp;&amp;nbsp;&amp;nbsp; array= np.array(indata).reshape(621,1405, order='F').copy()
&amp;nbsp;&amp;nbsp;&amp;nbsp; ycellsize = .041667938#float(lat[0][0] - lat[1][0])
&amp;nbsp;&amp;nbsp;&amp;nbsp; xcellsize = .041671753#float(abs(lon[0][0] - lon[0][1]))
&amp;nbsp;&amp;nbsp;&amp;nbsp; llc = arcpy.Point(float(lat.min().tolist())-(ycellsize/2),float(lon.min().tolist())-(xcellsize/2))
&amp;nbsp;&amp;nbsp;&amp;nbsp; myRaster = arcpy.NumPyArrayToRaster(array,llc,xcellsize,ycellsize,-9999)
&amp;nbsp;&amp;nbsp;&amp;nbsp; myRaster.save(output+'/climate rasters/'+str(GcmMonth)+'_'+str(GcmYear))
&amp;nbsp;&amp;nbsp;&amp;nbsp; coordinateSystem = "GEOGCS['GCS_WGS_1984',DATUM['D_WGS_1984',SPHEROID['WGS_1984',6378137.0,298.257223563]],PRIMEM['Greenwich',0.0],UNIT['Degree',0.0174532925199433]]"
&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.DefineProjection_management(myRaster, coordinateSystem)&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 16:32:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/extracting-pixel-data/m-p/352040#M27608</guid>
      <dc:creator>StephenFricke</dc:creator>
      <dc:date>2021-12-11T16:32:30Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting Pixel Data</title>
      <link>https://community.esri.com/t5/python-questions/extracting-pixel-data/m-p/352041#M27609</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;so you are reading the url directly in these lines:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;dataset =('http://climatedata_NetCDF/')
fn = ('dcsbcsd_'+str(GcmModel)+'_'+str(GcmScenario)+'_'+str(GcmMonth)+'_'+str(GcmVar)+'_run1_conus_epscor.nc')
bcsd= open_url(dataset + fn)&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Could you not supply the variable &lt;/SPAN&gt;&lt;STRONG&gt;bcsd&lt;/STRONG&gt;&lt;SPAN&gt; as the netCDF argument in this line:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;tbl = arcpy.MakeNetCDF(netcdf,climvar,'',[[lon,{pixelY}],[lat,{pixelX}]])&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;instead that might look like:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;tbl = arcpy.MakeNetCDF(bcsd,climvar,'',[[lon,{pixelY}],[lat,{pixelX}]])&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I feel like you're using the numpy array to create a dataset you may not need to create in this instance as there are tools already for creating vector and raster data from a netCDF file, or a table which is the suggestion above. Did you take a look at these tools to see if they will work for you?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What I'm not sure of is if you can reference a file through the url_open method you are using.. if this works currently then it may well work for what you need. Then the issue is how to supply the pixelX and pixelY values - where do those come from or how are they derived? If you truly have a single or even a finite known set of locations you need this data for then that's easy. Discovering them through other means.. well, thats a different set of issues and tangential to this thread.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 16:22:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/extracting-pixel-data/m-p/352041#M27609</guid>
      <dc:creator>ChristopherThompson</dc:creator>
      <dc:date>2021-12-12T16:22:16Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting Pixel Data</title>
      <link>https://community.esri.com/t5/python-questions/extracting-pixel-data/m-p/352042#M27610</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt; so you are reading the url directly in these lines:&amp;nbsp; &lt;BR /&gt; &lt;PRE class="lia-code-sample line-numbers language-none"&gt;dataset =('http://climatedata_NetCDF/')
fn = ('dcsbcsd_'+str(GcmModel)+'_'+str(GcmScenario)+'_'+str(GcmMonth)+'_'+str(GcmVar)+'_run1_conus_epscor.nc')
bcsd= open_url(dataset + fn)&lt;/PRE&gt; &lt;BR /&gt; &lt;BR /&gt;Could you not supply the variable&amp;nbsp;&amp;nbsp; &lt;STRONG style="color: &amp;quot;#FF0000&amp;quot;;"&gt;bcsd&lt;/STRONG&gt; as the netCDF argument in this line:&amp;nbsp; &lt;BR /&gt; &lt;BR /&gt; &lt;PRE class="lia-code-sample line-numbers language-none"&gt;tbl = arcpy.MakeNetCDF(netcdf,climvar,'',[[lon,{pixelY}],[lat,{pixelX}]])&lt;/PRE&gt; &lt;BR /&gt; &lt;BR /&gt;instead that might look like:&amp;nbsp; &lt;BR /&gt; &lt;PRE class="lia-code-sample line-numbers language-none"&gt;tbl = arcpy.MakeNetCDF(&lt;SPAN style="color:&amp;quot;#FF0000&amp;quot;;"&gt;bcsd&lt;/SPAN&gt;,climvar,'',[[lon,{pixelY}],[lat,{pixelX}]])&lt;/PRE&gt; &lt;BR /&gt; &lt;BR /&gt;I feel like you're using the numpy array to create a dataset you may not need to create in this instance as there are tools already for creating vector and raster data from a netCDF file, or a table which is the suggestion above. Did you take a look at these tools to see if they will work for you?&amp;nbsp; &lt;BR /&gt; &lt;BR /&gt;What I'm not sure of is if you can reference a file through the url_open method you are using.. if this works currently then it may well work for what you need. Then the issue is how to supply the pixelX and pixelY values - where do those come from or how are they derived? If you truly have a single or even a finite known set of locations you need this data for then that's easy. Discovering them through other means.. well, thats a different set of issues and tangential to this thread.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hey thanks for the suggestion. The problem is, I am having an error pop up when I use the bcsd as the input netcdf. I don't know the specifics of the error, all it says is "RuntimeError: Object: Error in executing tool"... The pixelY and pixelX are simply GetParameterAsText values which the user specifies on the scripts user interface.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 16:32:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/extracting-pixel-data/m-p/352042#M27610</guid>
      <dc:creator>StephenFricke</dc:creator>
      <dc:date>2021-12-11T16:32:33Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting Pixel Data</title>
      <link>https://community.esri.com/t5/python-questions/extracting-pixel-data/m-p/352043#M27611</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hey thanks for the suggestion.&amp;nbsp; The problem is, I am having an error pop up when I use the bcsd as the input netcdf.&amp;nbsp; I don't know the specifics of the error, all it says is "RuntimeError: Object: Error in executing tool"...&amp;nbsp; The pixelY and pixelX are simply GetParameterAsText values which the user specifies on the scripts user interface.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Yeah, I gave that a whirl and can't seem to make it work either.. you may have to download the file, even to a scratch location that you can clear out later.&amp;nbsp; Otherwise, have you looked at the NetCDF module that is part of the numpy package? you might be able to get what you are looking for using those tools.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Aug 2012 15:16:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/extracting-pixel-data/m-p/352043#M27611</guid>
      <dc:creator>ChristopherThompson</dc:creator>
      <dc:date>2012-08-13T15:16:34Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting Pixel Data</title>
      <link>https://community.esri.com/t5/python-questions/extracting-pixel-data/m-p/352044#M27612</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Yeah, I gave that a whirl and can't seem to make it work either.. you may have to download the file, even to a scratch location that you can clear out later.&amp;nbsp; Otherwise, have you looked at the NetCDF module that is part of the numpy package? you might be able to get what you are looking for using those tools.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Hey thanks for trying it out.&amp;nbsp; I am going to research more into Python's NetCDF4 module.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Aug 2012 22:53:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/extracting-pixel-data/m-p/352044#M27612</guid>
      <dc:creator>StephenFricke</dc:creator>
      <dc:date>2012-08-13T22:53:44Z</dc:date>
    </item>
  </channel>
</rss>

