Is there a way to create a BasicRasterLayer and hold it in memory to be used as an intermediate in a raster calculation?
The code below is slightly modified from:
https://github.com/Esri/arcgis-pro-sdk/wiki/ProSnippets-MapAuthoring#create-a-raster-layer
The container needs to be "memory" instead of MapView.Active.Map
BasicRasterLayer rasterLayer = null;
await QueuedTask.Run(() =>
{
rasterLayer = LayerFactory.Instance.CreateLayer<BasicRasterLayer>(rasterLayerCreationParams, MapView.Active.Map);
});