All Questions
35 questions
1
vote
2
answers
61
views
Averaging multiple rasters while considering NA pixels
I am using MODIS11A2 LST 8-day average raster .tif data to calculate daily average for the year. For year 2001, I have 44 files (2 files are missing). I want that a pixel should be excluded from the ...
0
votes
0
answers
102
views
MODIStsp R package: unable to download land cover data
I am trying to download land cover data using the MODIStsp R package without using the GUI, using the following code:
library(remotes)
remotes::install_github(
"ropensci/MODIStsp"
)
...
-1
votes
1
answer
91
views
What are the ways for the faster processing of raster stack
I have been trying to calculate the monthly means of 8day MODIS data and it is taking very long to calculate the mean. Is there a faster way to do this. I am using the following code to do it in R:
...
0
votes
0
answers
200
views
Merging MODIS data using R to produce either single raster layer or multiple raster layers displaying NPP over time
I am trying to collate NPP MODIS data (MOD17A3HGF V061) for an area over Europe (at least 17 tiles) and spanning for the available timeframe (2001-present) in R. I have downloaded the data as .hdf ...
0
votes
2
answers
42
views
How to make the result of dates in the loop correlative?
I made a code to calculate daily data from MODIS 8-day data, as it is known the last data of the year is always divided by 5 or 6 and not by 8 depending on whether it is a leap year or not so I added ...
0
votes
1
answer
89
views
Fill pixel gaps in MYD13Q1 EVI with matching pixel from MOD13Q1 EVI raster in R
I'm working with monthly aggregates of MODIS EVI data from an area with a lot of cloud cover. Not many pixels are left after parsing for QA.
To improve the number of pixels, I want to combine pixels ...
1
vote
1
answer
790
views
Extract values from netCDF to location by date
I am new to R and am now looking for a solution to my problem.
I have a directory with files in .nc (netCDF) format that contain daily data on sea surface temperature. Each day during the period from ...
0
votes
1
answer
441
views
Group raster files by week/month
I have downloaded AOD data ("MCD19A2") using the MODIStsp package for several years.
library(raster)
library(stars)
The data I have extracted has the following format:
...
0
votes
0
answers
65
views
How to convert a panel dataset to a multi-layer raster in R?
I wish to use the R package greenbrown to calculate phenology metrics such as Start of Season (SOS) or End of Season (EOS) of Kenya from NDVI values. I already have a panel dataset which includes one ...
1
vote
1
answer
355
views
MODIStsp in R on MacOS: Error in gdal_utils("buildvrt", gdalfile, output.vrt, opts) : gdal_utils buildvrt: an error occured
My project is on sheep in California and I'm trying to get the vegetation measures of the region over time to see if there's any correlation between disease prevalence and increased vegitation (...
-1
votes
1
answer
580
views
How to make a cycle that takes multiple rasters and mosaics them in R? And save them with an specific name
I have around of 2000 raster files of different parts of the wolrd. Some of them are from the same day, and other are from different days. I want to mosaic/merge all the files that are from the same ...
1
vote
1
answer
525
views
How to extract lists of raster into separate raster in R
I have this data in XDR format and I tried to open it using R.
This is my data
> unlist(MCD12Q1.wgs84.ras.01L)
[[1]]
class : RasterLayer
dimensions : 276, 199, 54924 (nrow, ncol, ncell)
...
0
votes
1
answer
326
views
Using BFAST to show breakpoints
I am currently working with bfastSpatial, I am attempting to plot breakpoint values as a year colour based legend. I am aware of changeMonth function for plotting monthly based breakpoints (http://www....
0
votes
0
answers
68
views
MODISTools mt_subset() warning/error - A code that once worked now doesn't
I've been working on a project about air pollutants and vegetation index. About the vegetation index (VI), I'm using the MODISTools package for R, and with the mt_subset() function I'm downlowading ...
0
votes
1
answer
128
views
R: raster() changes pixel size when converting from SpatialGridDF
I am using the following MODIS DSR 1km product to do some analysis: MCD18A1.A2001001.h15v05.061.2020097222704.hdf
However, I am having trouble converting from SpatialGridDataFrame to Raster, since the ...