PlotEquiMap fails in Nord3
Hi @aho,
As reported by @lpalma, there is a problem using PlotEquiMap in Nord3.
I have just faced the problem again. It reports this error:
X11 connection rejected because of wrong authentication.
Error in .External2(C_X11, paste0("png::", filename), g$width, g$height, :
unable to start device PNG
By defining the type of device the problem can be solved:
png('/esarchive/scratch/nperez/git/Flor/WildFires/HR950/Plot1_test.png',
type = 'cairo')
PlotEquiMap(h950[1,1,2,15, , ,1], lon = lon, lat = lat)
dev.off()
However, it is much more user-friendly to add the parameter to PlotEquiMap()
PlotEquiMap(h950[1,1,2,15, , ,1], lon = lon, lat = lat,
filled.continents = FALSE,
fileout = '/esarchive/scratch/nperez/git/Flor/WildFires/HR950/Plot1_test.png',
dev_type = 'cairo')
You can find the fix proposed in the branch 'develop-PlotEquiMapNord3'.
This parameter doesn't work for all types of outputs just for png, bmp, tiff and jpeg. So, if you like the fix, you can consider adding a warning or skip it for now.
Cheers,
Núria