[R-sig-Geo] write to netcdf
Sarah Goslee
@@r@h@go@|ee @end|ng |rom gm@||@com
Fri Jan 17 19:32:51 CET 2020
Hi,
Have you tried, for example, the methods in the RNetCDF package described here?
https://boris.unibe.ch/47220/7/Michna_Woods.pdf
You are likely to get more useful (and faster) responses if you tell
us what you've tried, and what specifically didn't work.
Sarah
On Tue, Jan 14, 2020 at 9:23 AM Abdoulaye Sarr <abdoulayesar using gmail.com> wrote:
>
> 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
--
Sarah Goslee (she/her)
http://www.numberwright.com
More information about the R-sig-Geo
mailing list