Comments (6)
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.
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.
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.
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.
yup, working on it, and I'll commit something tomorrow
from bfastspatial.
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)
- RAM and CPU utilisation
- Support for more archive types?
- bfastts Output HOT 2
- how to create time series raster layers with self-produced rasters HOT 1
- An error occurred using bfmPixel HOT 3
- Error Extracting Brightness Temperature HOT 4
- how to create a dataset like tura HOT 1
- how to count the number of changes for every pixel with bfast
- Processing Landsat 8! HOT 4
- bfmSpatial just producing error raster
- Error in bfmpixels command
- BFAST Monitor function-No images in the results
- Sentinel2
- Question about Running processLandsat in batch mode
- Why single .grd NDVI file from processLandsatBatch HOT 1
- 'mc.cores' > 1 is not supported on Windows HOT 1
- Is BfastSpatial applicable to climate data? HOT 2
- Magnitude per Year HOT 1
- running processLandsatBatch HOT 1
- Landsat Collection 2 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 bfastspatial.