Giter Site home page Giter Site logo

Comments (9)

mraspaud avatar mraspaud commented on June 5, 2024

Sounds good. How about you can also make the grid coarser ? like half the cells in x and y ?

from pyresample.

TomLav avatar TomLav commented on June 5, 2024

Originally, my request also had getting the coarser grid spacing. But mixing the two in a single function meant a lot of checks and documentation. Maybe have another method like:
new_area_def = area_def.coarser_grid_spacing(3,2) ?

from pyresample.

mraspaud avatar mraspaud commented on June 5, 2024

what about the user provides the number of cells he/she/it wants to have, like:

new_area_def = area_def.new_grid_size(x_size / 2, y_size * 3)

?

from pyresample.

TomLav avatar TomLav commented on June 5, 2024

Could work. But the routine has to check the validity of the input (that they are exactly multiples or fractions of what is already there).

from pyresample.

TomLav avatar TomLav commented on June 5, 2024

And just to think ahead: I see two applications of this:

  1. motion detection. For motion detection from cross-correlation techniques you need two grids: the target grid which is the grid locations where you will have your motion vectors on, and the imaging grid, which is much finer resolution, and is where you reproject your satellite images. The motion algorithms are much easier to write if the two grids are exactly in line, but the imaging grid has finer resolution.

  2. anti-aliasing in pyresample: here the idea is to instantiate a finer grid than the target area_def, do the pyresample against the finer grid, and finally collect the resampled output from the finer grid to the original target grid (simple average).

from pyresample.

mraspaud avatar mraspaud commented on June 5, 2024

Sounds good. I was just thinking of that this could be quite generic and allow any size, but Iย can see the utility of having the method allowing only integer ratios.

from pyresample.

mraspaud avatar mraspaud commented on June 5, 2024

@TomLav what's the status on this ?

from pyresample.

TomLav avatar TomLav commented on June 5, 2024

I have a version of that in my modules somewhere, but never pushed it to the codebase.

from pyresample.

mraspaud avatar mraspaud commented on June 5, 2024

Please do :)

from pyresample.

Related Issues (20)

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.