[R-sig-Geo] write to netcdf

Abdoulaye Sarr @bdou|@ye@@r @end|ng |rom gm@||@com
Tue Jan 14 15:24:04 CET 2020


I have a datasets with below profile I want to write/export to netcdf :

.@ dates      : Date[1:2], format: "2019-03-15" "2019-07-30"
  ..@ data       :List of 2
  .. ..$ 2019-03-15:'data.frame': 47005 obs. of  11 variables:
  .. .. ..$ MeanTemperature     : num [1:47005] NA NA NA NA NA NA NA NA NA
NA ...
  .. .. ..$ MinTemperature      : num [1:47005] NA NA NA NA NA NA NA NA NA
NA ...
  .. .. ..$ MaxTemperature      : num [1:47005] NA NA NA NA NA NA NA NA NA
NA ...
  .. .. ..$ Precipitation       : num [1:47005] 0 0 0 0 0 0 0 0 0 0 ...

  .. ..$ 2019-07-30:'data.frame': 47005 obs. of  11 variables:
  .. .. ..$ MeanTemperature     : num [1:47005] NA NA NA NA NA NA NA NA NA
NA ...
  .. .. ..$ MinTemperature      : num [1:47005] NA NA NA NA NA NA NA NA NA
NA ...
  .. .. ..$ MaxTemperature      : num [1:47005] NA NA NA NA NA NA NA NA NA
NA ...
  .. .. ..$ Precipitation       : num [1:47005] NA NA NA NA NA NA NA NA NA
NA ...

  ..@ grid       :Formal class 'GridTopology' [package "sp"] with 3 slots
  .. .. ..@ cellcentre.offset: Named num [1:2] 289868 1432838
  .. .. .. ..- attr(*, "names")= chr [1:2] "s1" "s2"
  .. .. ..@ cellsize         : num [1:2] 902 922
  .. .. ..@ cells.dim        : int [1:2] 395 119
  ..@ bbox       : num [1:2, 1:2] 289417 1432377 645707 1542095
  .. ..- attr(*, "dimnames")=List of 2
  .. .. ..$ : chr [1:2] "s1" "s2"
  .. .. ..$ : chr [1:2] "min" "max"
  ..@ proj4string:Formal class 'CRS' [package "sp"] with 1 slot
  .. .. ..@ projargs: chr "+init=epsg:32628 +proj=utm +zone=28 +datum=WGS84
+units=m +no_defs +ellps=WGS84 +towgs84=0,0,0"

Any hint on this much appreciated.

AS

	[[alternative HTML version deleted]]



More information about the R-sig-Geo mailing list