GithubHelp home page GithubHelp logo

handyscripts's Introduction

HandyScripts

Handy python scripts for a variety of things!

=============================================

merge_tiff.py:

Merges a collection of .tif files located in a single directory, and outputs a new .tif file (can be quite large!)

newresolution_tiff.py:

Modifies the resolution of a .tif file and creates a new .tif file. Can either upscale or downscale as needed. Useful for very large .tif files - reducing the resolution reduces the size by a significant amount

crop_tif.py:

Two functions: one obtains the coordinates of a tif file (optional: crop to a smaller size) and the other function saves a new tif with the chosen coordinates. Handy for cropping one tif file to the size of another tif

DEMtoVTK.py:

Reads a .tif file and outputs a pyvista mesh file for plotting etc, and also saves a .vtk file for use in Paraview. Can scale the height up or down if needed. Can also import a satellite image (or other) to use as a texture file - saves the mesh with texture coordinates and exports the image in the correct format

import_json_colormap.py:

Imports a .json colormap as a LinearSegmentedColormap object for use with matplotlib, pyvista etc. json colormap file can be exported from Paraview

modToVtk.py:

Several functions to convert modflow, modpath and mt3d output files to vtk for viewing. Does NOT work with modflow 6 or grids with uneven grid size (yet)

flopy-edited folder:

Edited scripts for flopy to allow for easy export to vtk

handyscripts's People

Contributors

agk29 avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.