<jupyter_start><jupyter_text>test with arbitrary gslib files<jupyter_code>parameters = {
            'datafl': 'true.dat',      # path to the input grid file or data
            'outfl' : None,      # path to the output grid file
            'ireal' : 1,          # realization number
            'nx'    : 50,      # number of rows, cols and levels
            'ny'    : 50,
            'nz'    : 1,
            'xmn'   : 0.5,    # coordinates of the centroid of first/corner block
            'ymn'   : 0.5,
            'zmn'   : 0,
            'xsiz'  : 1,    # grid node separation
            'ysiz'  : 1,
            'zsiz'  : 1}
result =addcoord.addcoord(parameters)
result.head()<jupyter_output><empty_output><jupyter_text>test with block model<jupyter_code># genarate a block model
nx = 50
ny = 70
nz = 10
dx = 20
dy = 20
dz = 10
xorg = 0
yorg = 0
zorg = 0

# create a block model object
bmod = pygslib.blockmodel.Blockmodel(nx=nx,ny=ny,nz=nz,
                               dx=dx,dy=dy,dz=dz,
                               xorg=xorg,yorg=yorg,zorg=zorg)
# create a full model 
bmod.create_IJK()
result =addcoord.addcoord(bmod)
result.head()
bmod.set_blocks(bmod.bmtable.merge(result, on='IJK' ))
bmod.bmtable.head()
bmod.calc_ixyz_fromijk()
bmod.calc_xyz_fromixyz()
bmod.bmtable.head()<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.11840120663650075, 'fraction_numerical': 0.021870286576168928, 'mean_word_length': 2.1595238095238094, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '2', 'dir': 'jupyter-structured-clean-dedup', 'id': '558590', 'license': 'MIT', 'n_tokens_mistral': 515, 'n_tokens_neox': 477, 'n_words': 112, 'path': 'sandbox/add_coord from gslib exe.ipynb', 'repo_name': 'cmrajan/pygslib', 'size': '1326'}