Giter VIP home page Giter VIP logo

Comments (6)

loicdtx avatar loicdtx commented on July 17, 2024

Yes we should. Something like .hasLandsatMetadata() ? Will also make life easier whenever they decide to suddenly change naming convention. Or launch landsat 9. Or if we want to do sentinel2/Landsat merged analysis...
What do you mean by trim rasterbrick?

from bfastspatial.

bendv avatar bendv commented on July 17, 2024

Actually, subset would have been a better term. I have added a function subsetRasterTS(), which works similarly to raster::subset(), but uses dates and/or sensor information (from getSceneinfo) to subset a time series raster. Also check out my changes to bfmSpatial() - this is more or less how I have run bfm

from bfastspatial.

bendv avatar bendv commented on July 17, 2024

I have created a new remote branch - feature-isLandsatSceneID, with a function .isLandsatSceneID() that returns TRUE if a character conforms to Landsat scene naming convention. I changed the name from .hasLandsatMetadata for clarity, in case you want to work with actual Landsat metadata in the future. The idea is to call this function wherever a dates, sensor, or other Landsat-specific information is needed. This can also be replicated for other datasets if needed.

Check out the branch and let me know what you think before merging to develop. If it's ok, then I'll call it in the other functions and merge back to develop.

from bfastspatial.

loicdtx avatar loicdtx commented on July 17, 2024

Okay, just reading that now; I've commented the commit though. I had two comments I think which are to remove the export rocklet and to extend it to classes rasterbrick and stack, and not only to single characters.

from bfastspatial.

bendv avatar bendv commented on July 17, 2024

yup, working on it, and I'll commit something tomorrow

from bfastspatial.

loicdtx avatar loicdtx commented on July 17, 2024

Okay, just did it. I simplified quite a lot. Quite safe to assume that the pattern '(LT4|LT5|LE7|LC8)\d{13}' is sensor path row year jday I think

from bfastspatial.

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.