Welcome to Golden Software Support

blank to a set value

Comments

1 comment

  • Avatar
    Kari Dickenson

    Hi Thierry,

    There is not a simpler way that I can see. I recommend blanking each water body with a specific Z value independently of the others, then fill that water body with the Z, and blank again for the next water body.

    What you could do (which may or may not be simpler than just blanking the grid a few times, depending on the number of water bodies you have) is blank the grid with the water bodies and replace the value with -9999. Then create a second grid with the correct Z values in each water body. Then replace the -9999 in the first grid with the water level Z value. Specifically:

    1. Create the grid as it is.
    2. Blank the grid with the multiple water bodies.
    3. Create a new grid file for just the water body data, this time using the BLN file of the water bodies as a fault file, using the Nearest Neighbor gridding method, and making sure there is one point within each water body with the appropriate Z value. The area inside each water body should have a single Z value (you can ignore any data outside the water bodies).
    4. Then replace the Z values for inside the water bodies in the blanked grid with the Z values for the water body grid. First, use Grid Math to replace the blanked values in the original blanked grid with a unique number like -9999.
    5. Now we can replace the -9999 values with the values from the other grid. Click Grid | Math, and in the Grid Math dialog click Add Grids, select both grids, and click Open.
    6. Enter the function IF (A=-9999, B, A); where -9999 is the current NULL value, A is the variable for the blanked grid, and B is the variable for the grid with the Z values in the water bodies.
    7. Click OK and the new grid is created. Use the grid to create your maps.

     

    Thanks,

    Kari

    0
    Comment actions Permalink

Please sign in to leave a comment.