Skip to content

brown-ccv/osom_regridder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OSOM Regridder

The OSOM Regridder is a Python package that's designed to transform OSOM data from the internal model grid to a visualizable latitude / longitude grid that can be plotted on a map.

The Algorithm

The grid is transformed by creating a canvas in the output dimensions, and selected data, pixel by pixel, from the OSOM dataset. At each pixel, data is select based on the relative latitude / longitude positions of the input grid against the output canvas, and averaged in cases were multiple data points are select. Any pixel without a data point is treated as a masked value.

CLI

This package builds a CLI to facilitate regridding of datasets. The CLI has the following commands:

  • regrid: Runs the regridding algorithm on a given file.
  • display: Creates a PNG based on regridded data.
  • tile: Creates a .mbtiles file from regridded data. (Not yet implemented.)

For information on the arguments and options for a command, run the script with the --help flag.

Package Stuff

Format

uv format

Build

uv build

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors