Skip to content

Search Archives

Search tips
from:Name Search by author name, e.g. from:Duncan Murdoch "exact phrase" Match an exact phrase word1 word2 Match messages containing both words Date range Use the date pickers to filter results to a time period

Use the list dropdown to narrow results to a specific mailing list. Combine from: with other terms to filter by author and content.

58 results for “from:Bacou, Melanie”

how to write ESRI grids from R
Bacou, Melanie · Jul 25, 2016 · r-sig-geo

You can use: writeGDAL(x, drivername="AAIGrid", ...) or simply use a ".asc" file extention: writeRaster(x, filename="fileName.asc", ...) See raster::WriteFormats(). --Mel. On 7/24/2016 11:41 AM, Pascal Title wrote: > I am trying to convert some rasters...

performing hydrological analysis in R.reg
Bacou, Melanie · Sep 7, 2022 · r-sig-geo

Sandeep, You can take a look at the Hydrological R taskview (under section Hydrograph Analysis) https://cran.r-project.org/web/views/Hydrology.html for a list of relevant packages and functions, in particular the vignette for package *HydroTSM*. --Mel...

Using Stargazer to output spautolm models in Latex
Bacou, Melanie · Nov 25, 2016 · r-sig-geo

You could also check into the `pander` package (documented at http://rapporter.github.io/pander/#helper-functions). AFAIK there's no helper function to output SAR/CAR or GWR objects directly, but you might be able to work with `pander...

How to retrieve a vector of a data.frame's variable attributes?
Bacou, Melanie · Apr 17, 2011 · r-help

Hi, I have a data.frame with 100 variables and I have assigned a "label", "units" and "category" attribute to each variable. I would like to reorder the variables in the data.frame by the "category" attributes but can't...

How to resample a map using the statistical mode of class to fill the new pixel
Bacou, Melanie · Aug 26, 2016 · r-sig-geo

Isaque, check this thread on StackExchange: http://gis.stackexchange.com/questions/177423/r-aggregate-raster-with-mode-function-how-does-it-work --Mel. On 8/26/2016 10:07 PM, Isaque Daniel wrote: > Hi dear all, > > > I need to resample...

mapview 1.2.0
Bacou, Melanie · Sep 20, 2016 · r-sig-geo

Tim, Both `leaflet` and `tmap` currently offer quick interactive visualization of geospatial data in R. Does `mapview` provide different functionality at this point? https://rstudio.github.io/leaflet/ https://cran.r-project.org/web/packages/tmap/vignettes/tmap-nutshell.html...

Minimum bounding circle from cluster of points (Tina Cormier)
Bacou, Melanie · Jul 9, 2016 · r-sig-geo

Interesting problem, it seems the exact approach is given by Fischer, 2003 and is implemented in a C++ CGAL package (see http://stackoverflow.com/questions/9063453/how-to-compute-the-smallest-bounding-sphere-enclosing-other-bounding-spheres). I haven't...

Problems with rbind(list(), makeUniqueIDs=T)
Bacou, Melanie · Jul 22, 2016 · r-sig-geo

Hi, I'm getting weird results trying to rbind a list of SpatialPolygonsDataFrames with R 3.2.1 and raster 2.5.8. I believe the code below used to merge all 3 country boundaries, but instead I now get...

How to calculate seasonal means in raster time series?
Bacou, Melanie · Aug 16, 2016 · r-sig-geo

Maybe create a function that takes a date as input and returns a meteorological season, and pass this function to `zapply(by=fun)`. --Mel. On 8/16/2016 8:38 PM, Thiago V. dos Santos via R-sig-Geo wrote...

Global potential natural vegetation at 1km?
Bacou, Melanie · Sep 30, 2016 · r-sig-geo

In addition, you could also take a look at IIASA global data: http://www.iiasa.ac.at/web/home/research/modelsData/models-tools-data.html --Mel. > > Hi, > About Vegetation can you use the Tree Cover map, develop by Hansen team...

[R-jobs] DC area: International Food Policy Research Institute looking for an Infographist/Technical Writer
Bacou, Melanie · Jun 9, 2011 · r-sig-jobs

POSTING DATE: JUNE 9, 2011 CLOSING DATE: JUNE 30, 2011, OR UNTIL FILLED The International Food Policy Research Institute (IFPRI) seeks to recruit a Technical Writer into its HarvestChoice team in the Environment and Production Technology Division. This is a...

putting scalebar and north arrow on google map
Bacou, Melanie · Jul 18, 2016 · r-sig-geo

No self promotion, but in case you're looking for code examples using leaflet plugins (scalebar and minimap) available through `tmap` : http://tools.harvestchoice.org/ar/ (code is linked at the bottom of the page). --Mel. On 7/18/2016...

Problems with rbind(list(), makeUniqueIDs=T)
Bacou, Melanie · Jul 23, 2016 · r-sig-geo

Edzer, Rolf, Many thanks for the clarification! Just to confirm that Rolf's `do.call()` example works for me using the latest GitHub commit. > m <- lapply(c("TZA", "ETH", "GHA"), function(x) getData("GADM", country=x, level=1)) # with sp...

split SLDF with attributes
Bacou, Melanie · Feb 23, 2017 · r-sig-geo

Marta, Option 1) using CreateSegments() seems to do what you want. Why don't you simply use rgeos::over() or rgeos::gTouches() between your old and new SLDFs to match the index positions of your old attributes to your new...

Extract() fails to return data for boundary admin units
Bacou, Melanie · Oct 18, 2016 · r-sig-geo

Chris, Thanks, using `weights=TRUE` to compute the means fixed the problem. Perfect, --Mel. On 10/18/2016 11:10 AM, chris english wrote: > > Mel, > > Looking at detail in cjg.png the northmost missing data island shows > approx 20-25...

Extract() fails to return data for boundary admin units
Bacou, Melanie · Oct 18, 2016 · r-sig-geo

Chris, Actually I take that back, using extract() with `weights=TRUE` returned `0` instead of NA values for these problematic coastal admin units. Think I might have to impute them manually. --Mel. On 10/18/2016 2:33 PM, Bacou...

How to resample a map using the statistical mode of class to fill the new pixel
Bacou, Melanie · Aug 27, 2016 · r-sig-geo

Isaque, If your LandScan raster is at 30m resolution, then best might be to `aggregate()` to as close as 250m (e.g. using `fact=8` or `fact=9` and `fun=modal`), and then use `projectRaster()`: projectRaster(from, to, method="bilinear...

Error in writeRaster for signature RasterPCA
Bacou, Melanie · Mar 8, 2017 · r-sig-geo

Vijay, `rasterPCA` returns an object of class `rasterPCA` (a list). The actual raster layers (components) can be accessed via its `map` element. See example below. --Mel. library(raster) library(RStoolbox) bio <- getData("worldclim", var="bio", res=10, path="~/WorldClim") # You...

Problems with rbind(list(), makeUniqueIDs=T)
Bacou, Melanie · Jul 24, 2016 · r-sig-geo

Robert, Great, thanks for pointing `raster::bind()` out as well. Guess I should re-read the vignette periodically! --Mel. On 7/23/2016 5:04 PM, Robert J. Hijmans wrote: > The raster way would be: > > library(raster) > m <- lapply(c...

projectRaster across the antimeridian
Bacou, Melanie · Jul 1, 2016 · r-sig-geo

Tony, I can confirm this seems like an issue with `projectRaster()`. Using `gdalwarp` instead on the same tile seems to work. # Download geoTIFF BS.terra <- curl::curl_download("https://lance.modaps.eosdis.nasa.gov/imagery/subsets/?subset=BeringSea.2016182.terra...

Can't find what you're looking for? Try searching with Google .