Comments (9)
Sounds good. How about you can also make the grid coarser ? like half the cells in x and y ?
from pyresample.
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.
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.
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.
And just to think ahead: I see two applications of this:
-
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.
-
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.
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.
@TomLav what's the status on this ?
from pyresample.
I have a version of that in my modules somewhere, but never pushed it to the codebase.
from pyresample.
Please do :)
from pyresample.
Related Issues (20)
- BUG: Import fails due to misconfigured setup.py HOT 3
- Infinite values in geostationary bounding box crash intersection function HOT 2
- resampling fails with `ValueError` if not padding data HOT 2
- Time for spherical intersection almost doubled in recent version of pyresample
- `get_neighbour_info` slows down significantly when working with large target rasters using many segments HOT 3
- `gradient_search` fails when resampling Himawari data HOT 7
- EWA resampling in 1.27 slows down four times than 1.26.1 HOT 69
- Refactor boundary creation logic
- area definition for a rotated pole coordinate system HOT 24
- Index Error when calling `boundary` with non full disk geos ara HOT 5
- Bug where boundary coordinates wrap around 180 degrees when geostationary AreaDefinition extends beyond 180 degrees HOT 7
- Upgrade to Cython 3.0 and check annotations
- Compatibility with libproj v9.3 HOT 23
- How should this warning be addressed? HOT 2
- Catch or fix pyproj UserWarning when loading an AreaDefinition from a netCDF/CF file HOT 1
- Make a Swath definition subclass for interpolated data HOT 4
- The finding of the optimal radius of influence makes assumption on the ordering of the dimensions in the longitude array HOT 4
- Wrong coordinates returned by `AreaDefintion.get_lonlats` for some projections in out-of-Earth locations HOT 6
- dump DynamicAreaDefinition to YAML
- errors in area definition should not be silently ignored HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pyresample.