search for: tyear

Displaying 2 results from an estimated 2 matches for "tyear".

Did you mean: tear
2017 Aug 28
3
Extracting subset from netCDF file using lat/lon and converting into .csv in R
...att_get(ncin,"prAdjust","_FillValue") dim(preci.array) # split the time units string into fields tustr <- strsplit(tunits$value, " ") tdstr <- strsplit(unlist(tustr)[3], "-") tmonth = as.integer(unlist(tdstr)[2]) tday = as.integer(unlist(tdstr)[3]) tyear = as.integer(unlist(tdstr)[1]) chron(time, origin = c(tmonth, tday, tyear)) *Any help would be appreciated!!* [[alternative HTML version deleted]]
2017 Aug 28
0
Extracting subset from netCDF file using lat/lon and converting into .csv in R
...t; > dim(preci.array) > # split the time units string into fields > tustr <- strsplit(tunits$value, " ") > > tdstr <- strsplit(unlist(tustr)[3], "-") > > tmonth = as.integer(unlist(tdstr)[2]) > > tday = as.integer(unlist(tdstr)[3]) > > tyear = as.integer(unlist(tdstr)[1]) > > chron(time, origin = c(tmonth, tday, tyear)) > > *Any help would be appreciated!!* > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at r-project.org mailing list -- To UNSUBSCRIBE...