<jupyter_start><jupyter_text>Zonal Extract By PointUsing an example raster and some semi-randomly placed points, we can extract the value of each raster cells at each point.first, let's import some modules, including zonepy<jupyter_code>import os, sys
sys.path.append('../')
import zonepy as zp<jupyter_output><empty_output><jupyter_text>Next, we'll assign variables for the location of our point feature class (and the layer name within the feature class, which in this case is in a geopackage), the raster, and the output filename<jupyter_code>gdb = os.path.join('data', 'zonepy_pts.gpkg')
ras = os.path.join('data', 'zone10kmCellNum.tif')
lyrName = 'zonepy_pts'
filenm = os.path.join('data', 'outputfile')<jupyter_output><empty_output><jupyter_text>Now we instantiate our class by passing ZoneClass the required variables defined above.<jupyter_code>zc = zp.ZoneClass(gdb, ras, lyrName=lyrName, fldname=None ,  
              filenm=filenm)<jupyter_output><empty_output><jupyter_text>After we have our class instance, called 'zc', we can call the extractByPoint() method to obtain the value of each raster cell for each point.<jupyter_code>zc.extractByPoint()<jupyter_output>data/outputfile<jupyter_text>View result using the dataframe attribute of the class<jupyter_code>zc.df<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.09312977099236641, 'fraction_numerical': 0.0015267175572519084, 'mean_word_length': 6.622093023255814, 'pattern_counts': {'":': 0, '<': 20, '<?xml version=': 0, '>': 20, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '5', 'dir': 'jupyter-structured-clean-dedup', 'id': '658207', 'license': 'BSD-3-Clause', 'n_tokens_mistral': 435, 'n_tokens_neox': 422, 'n_words': 129, 'path': 'examples/zone_extractByPoint_example.ipynb', 'repo_name': 'brclark-usgs/zonepy', 'size': '1310'}