Displaying 2 results from an estimated 2 matches for "tdstr".
Did you mean:
dtstr
2017 Aug 28
3
Extracting subset from netCDF file using lat/lon and converting into .csv in R
...quot;prAdjust","long_name")
dunits <- ncatt_get(ncin,"prAdjust","units")
fillvalue <- ncatt_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
...gt; dunits <- ncatt_get(ncin,"prAdjust","units")
>
> fillvalue <- ncatt_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!!*
>...