
Security News
Meet Socket at Black Hat and DEF CON 2025 in Las Vegas
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
This is a utility package to enable IO and plotting for .nc, .tif, .zmap, .asc grid files or xarray objects
This is a python submodule containing IO and plotting functionality for reading and writing .asc, .zmap .nc and .tif grids.
pygridsio is available via the pypi package registry:
pip install pygridsio
from pygridsio import *
The standard grid class used throughout this project is a Xarray DataArray (see: https://xarray.dev/) with 2 dimensions: x and y.
To read a grid file to this class use:
grid = read_grid(filename)
You can write a grid to .asc, .zmap, .nc or .tif using the following method:
write_grid(grid,filename)
The code will discern which filetype to write out to by the file extension in filename. Note: .asc and .zmap are ascii based files and take up a lot of space. .nc and .tif are binary file types.
There is some plotting functionality implemented in pygridsio, this can be accessed using the pygridsio.grid_plotting
module:
pygridsio.grid_plotting.plot_grid
allows you to plot a custom Grid class, or xr.DataArray with multiple options. See the description of the method for more detail.pygridsio.grid_plotting.plot_grid_comparison
Creates a plot comparing two grids values against each other. See the description of the method for more detail.pygridsio.grid_plotting.make_interactive_plot
Creates a interactive .html plot using plotly, this saves to a .html fileFAQs
This is a utility package to enable IO and plotting for .nc, .tif, .zmap, .asc grid files or xarray objects
We found that pygridsio demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
Security News
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.
Security News
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.