Comments (5)
My first very-very-late-night-two-pennies:
- resample each channel to target definition using original resolution, avoid reducing data prematurely, and then you'll get the maximum coverage without losing any details from the higher resolution channels
- projection units depend on the projection, e.g. quite many of EPSG projections have both metric and degree based versions
from pyresample.
Point 1: Agreed. Although for testing or for the rare case that you want an image in the original sensor space the replication or reducing of data to fit the other datasets.
Point 2: I'm not sure I understand what you're saying. Yes the projection units depend on the projection but why does that matter? Each Area listed in the config will have a projection specified and that's how extents work currently.
from pyresample.
If we put the actual file format to the side for a moment, what if AreaDefinition had something like this for its __init__
:
def __init__(self, area_id=None, name=None, proj_id=None, proj_dict=None, x_size=None, y_size=None,
area_extent=None, nprocs=1, lons=None, lats=None, dtype=np.float64,
center=None, pixel_size=None, ...<other defining properties>...):
Knowing @mraspaud the way that I do and the arguments we've had on other projects I'm sure he'll hate how many arguments there are, but that's kind of the point. The above would be backwards compatible for anyone not using named arguments but would allow users to specify whatever they know and get a working AreaDefinition out of it.
Another option I can see working is to have class methods that create the AreaDefinition based on what "scheme" the user is using. Problem with that is a user might not know what scheme they are using, some of the parameters overlap between schemes, and whatever loads the config file would need to figure out which class method to call.
from pyresample.
@davidh-ssec YAML support was added a while ago, can we close this ?
from pyresample.
No, I'd like to keep this open until we have all the available forms of creating an area. It is something I'd like to do soon for geo2grid but Kathy has asked for other things first.
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.