Giter Site home page Giter Site logo

Comments (5)

pnuu avatar pnuu commented on May 23, 2024

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.

djhoese avatar djhoese commented on May 23, 2024

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.

djhoese avatar djhoese commented on May 23, 2024

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.

mraspaud avatar mraspaud commented on May 23, 2024

@davidh-ssec YAML support was added a while ago, can we close this ?

from pyresample.

djhoese avatar djhoese commented on May 23, 2024

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)

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.