File:Maya area july 2004 precipitation 1.svg

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

Original file(SVG file, nominally 630 × 630 pixels, file size: 624 KB)

Captions

Captions

Maya area July 2004 precipitation

Summary[edit]

Description
English: Maya area july 2004 precipitation. Chelsa bioclim+ dataset.
Date
Source Own work
Author Merikanto

This plot is based on Chelsa bioclim+ dataset

Karger, D.N., Conrad, O., Böhner, J., Kawohl, T., Kreft, H., Soria-Auza, R.W., Zimmermann, N.E., Linder, P., Kessler, M. (2017). Climatologies at high resolution for the Earth land surface areas. Scientific Data. 4 170122. https://doi.org/10.1038/sdata.2017.122

Karger D.N., Conrad, O., Böhner, J., Kawohl, T., Kreft, H., Soria-Auza, R.W., Zimmermann, N.E,, Linder, H.P., Kessler, M.. Data from: Climatologies at high resolution for the earth’s land surface areas. Dryad Digital Repository.http://dx.doi.org/doi:10.5061/dryad.kd1d4

https://chelsa-climate.org/bioclim/

"R" script


    1. chelsa data download and view
  1. "R" script


library(raster)

library(pals) library(RColorBrewer)

library(maps) library(mapdata)

library(svglite)


download_rasters1=1

    1. chelsa bioclim0 1980 ....

if(download_rasters1==1) {

url1<-"https://os.zhdk.cloud.switch.ch/envicloud/chelsa/chelsa_V2/GLOBAL/monthly/pr/CHELSA_pr_07_2004_V.2.1.tif"

  1. url2<-"https://os.zhdk.cloud.switch.ch/envicloud/chelsa/chelsa_V2/GLOBAL/monthly/pr/CHELSA_pr_07_1980_V.2.1.tif"

demurl1<-"https://os.zhdk.cloud.switch.ch/envicloud/chelsa/chelsa_V1/chelsa_trace/orog/CHELSA_TraCE21k_dem_0_V1.0.tif"


  1. url1<-"https://os.zhdk.cloud.switch.ch/envicloud/chelsa/chelsa_V1/chelsa_trace/pr/CHELSA_TraCE21k_pr_7_0_V1.0.tif"
  1. url2<-"https://os.zhdk.cloud.switch.ch/envicloud/chelsa/chelsa_V1/chelsa_trace/pr/CHELSA_TraCE21k_pr_7_-60_V1.0.tif"


  1. url1<-"https://os.zhdk.cloud.switch.ch/envicloud/chelsa/chelsa_V1/chelsa_trace/bio/CHELSA_TraCE21k_bio12_0_V1.0.tif"
  1. url2<-"https://os.zhdk.cloud.switch.ch/envicloud/chelsa/chelsa_V1/chelsa_trace/bio/CHELSA_TraCE21k_bio12_-60_V1.0.tif"


download.file(url = demurl1,destfile = 'dem1.tif')

download.file(url = url1,destfile = 'r1.tif')

    1. download.file(url = url2,destfile = 'r2.tif')

}

r1<-raster("r1.tif")

  1. r2<-raster("r2.tif")

dem1<-raster("dem1.tif")

  1. r1<-raster("CHELSA_TraCE21k_pr_7_0_V1.0.tif")
  2. r2<-raster("CHELSA_TraCE21k_pr_7_-10_V1.0.tif")
    1. lh-mh
  1. ro1<-r1-r2


ext1 <- extent(c(xmin = -96, xmax = -85,

               ymin = 13, ymax = 22))


rb1<-crop(r1, ext1) ## later

  1. rb2<-crop(r2, ext1) ## earlier
    1. lete-early
  1. ro1<-rb1-rb2

ro1<-rb1

dem2<-crop(dem1, ext1) mask1<-resample(dem2, ro1)

mask1[mask1<1]<-0 mask1[mask1>0]<-1

mask1[mask1==0]<-NA


ro2<-ro1*mask1


  1. svglite("maya_area_july_2004_precipitation_1.svg", width = 6, height = 6)


ro3=ro2/100


pal <- colorRampPalette(c("brown","yellow","green","blue", "violet"))

plot(ro3, #col=rev(parula(256)) col=pal(256), main="July 2004 precipitation mm", xlab="longitude",ylab="latitude")


contour(ro3,nlevels=10, lwd=1, col="black", alpha=0.5, add=T)


  1. quit(-1)


map(database = 'world',

   xlim = c(-96, -85),
   ylim = c(15, 22),
   fill = F,
   col = 'blue',
   resolution = 0,
   bg = 'white',
   add=T

)

box()

dev.off()

system("pdf2svg Rplots.pdf maya_area_july_2004_precipitation_1.svg")

quit("yes")


Licensing[edit]

I, the copyright holder of this work, hereby publish it under the following license:
w:en:Creative Commons
attribution share alike
This file is licensed under the Creative Commons Attribution-Share Alike 4.0 International license.
You are free:
  • to share – to copy, distribute and transmit the work
  • to remix – to adapt the work
Under the following conditions:
  • attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
  • share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible license as the original.

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeThumbnailDimensionsUserComment
current14:44, 9 January 2024Thumbnail for version as of 14:44, 9 January 2024630 × 630 (624 KB)Merikanto (talk | contribs)Correct blank screen
14:40, 9 January 2024Thumbnail for version as of 14:40, 9 January 2024540 × 540 (485 KB)Merikanto (talk | contribs)Uploaded own work with UploadWizard

There are no pages that use this file.

Metadata