- using R Under development (unstable) (2012-02-23 r58468)
- using platform: i686-pc-linux-gnu (32-bit)
- using session charset: UTF-8
- checking for file ‘RNCEP/DESCRIPTION’ ... OK
- checking extension type ... Package
- this is package ‘RNCEP’ version ‘1.0.3’
- checking package dependencies ... OK
- checking if this is a source package ... OK
- checking if there is a namespace ... NOTE
As from R 2.14.0 all packages need a namespace.
One will be generated on installation, but it is better to handcraft a
NAMESPACE file: R CMD build will produce a suitable starting point.
- checking for executable files ... OK
- checking whether package ‘RNCEP’ can be installed ... OK
- checking installed package size ... OK
- checking package directory ... OK
- checking for portable file names ... OK
- checking for sufficient/correct file permissions ... OK
- checking DESCRIPTION meta-information ... OK
- checking top-level files ... OK
- checking index information ... OK
- checking package subdirectories ... OK
- checking R files for non-ASCII characters ... OK
- checking R files for syntax errors ... OK
- checking whether the package can be loaded ... OK
- checking whether the package can be loaded with stated dependencies ... OK
- checking whether the package can be unloaded cleanly ... OK
- checking for unstated dependencies in R code ... OK
- checking S3 generic/method consistency ... OK
- checking replacement functions ... OK
- checking foreign function calls ... OK
- checking R code for possible problems ... OK
- checking Rd files ... OK
- checking Rd metadata ... OK
- checking Rd cross-references ... OK
- checking for missing documentation entries ... OK
- checking for code/documentation mismatches ... OK
- checking Rd \usage sections ... OK
- checking Rd contents ... OK
- checking for unstated dependencies in examples ... OK
- checking contents of ‘data’ directory ... OK
- checking data for non-ASCII characters ... OK
- checking data for ASCII and uncompressed saves ... OK
- checking examples ... ERROR
Running examples in ‘RNCEP-Ex.R’ failed
The error most likely occurred in:
> ### Name: NCEP.gather
> ### Title: Queries Weather Data
> ### Aliases: NCEP.gather gather NCEP.gather.gaussian NCEP.gather.pressure
> ### NCEP.gather.surface
>
> ### ** Examples
>
> library(RNCEP)
> ## Query the temperature from a particular pressure level ##
> wx.extent1 <- NCEP.gather(variable='air', level=850,
+ months.minmax=c(9,10), years.minmax=c(1996,1997),
+ lat.southnorth=c(50,55), lon.westeast=c(5,10),
+ reanalysis2 = FALSE, return.units = TRUE)
trying URL 'http://www.esrl.noaa.gov/psd/thredds/dodsC/Datasets/ncep.reanalysis/pressure/air.1996.nc.das'
Content type 'text/plain; charset=UTF-8' length unknown
opened URL
..
downloaded 2140 bytes
trying URL 'http://www.esrl.noaa.gov/psd/thredds/dodsC/Datasets/ncep.reanalysis/pressure/air.1996.nc.ascii?air[976:1219][2][14:16][2:4]'
Content type 'text/plain; charset=UTF-8' length unknown
opened URL
.......... .......... ........
downloaded 28 Kb
trying URL 'http://www.esrl.noaa.gov/psd/thredds/dodsC/Datasets/ncep.reanalysis/pressure/air.1997.nc.ascii?air[972:1215][2][14:16][2:4]'
Content type 'text/plain; charset=UTF-8' length unknown
opened URL
.......... .......... ........
downloaded 28 Kb
[1] Units of variable 'air' are degK
>
> ## Query the temperature at 2 meters altitude with reference to
> ## the surface
> wx.extent2 <- NCEP.gather(variable='air.sig995', level='surface',
+ months.minmax=c(2,3), years.minmax=c(2000,2001),
+ lat.southnorth=c(50,55), lon.westeast=c(0,5),
+ reanalysis2 = FALSE, return.units = TRUE)
trying URL 'http://www.esrl.noaa.gov/psd/thredds/dodsC/Datasets/ncep.reanalysis/surface/air.sig995.2000.nc.das'
Content type 'text/plain; charset=UTF-8' length unknown
opened URL
.
downloaded 1862 bytes
trying URL 'http://www.esrl.noaa.gov/psd/thredds/dodsC/Datasets/ncep.reanalysis/surface/air.sig995.2000.nc.ascii?air[124:363][14:16][0:2]'
Content type 'text/plain; charset=UTF-8' length unknown
opened URL
.......... .......... ......
downloaded 26 Kb
trying URL 'http://www.esrl.noaa.gov/psd/thredds/dodsC/Datasets/ncep.reanalysis/surface/air.sig995.2001.nc.ascii?air[124:359][14:16][0:2]'
Content type 'text/plain; charset=UTF-8' length unknown
opened URL
.......... .......... .....
downloaded 25 Kb
[1] Units of variable 'air.sig995' are degK
>
> ## Query the temperature at 2 meters altitude with reference to
> ## a T62 Gaussian grid
> wx.extent3 <- NCEP.gather(variable='air.2m', level='gaussian',
+ months.minmax=c(4,5), years.minmax=c(2006,2007),
+ lat.southnorth=c(32,35), lon.westeast=c(-35,-32),
+ reanalysis2 = FALSE, return.units = TRUE)
trying URL 'http://www.esrl.noaa.gov/psd/thredds/dodsC/Datasets/ncep.reanalysis/surface_gauss/air.2m.gauss.2006.nc.das'
Content type 'text/plain; charset=UTF-8' length unknown
opened URL
.
downloaded 1946 bytes
trying URL 'http://www.esrl.noaa.gov/psd/thredds/dodsC/Datasets/ncep.reanalysis/surface_gauss/air.2m.gauss.2006.nc.ascii?air[360:603][28:30][173:175]'
Content type 'text/plain; charset=UTF-8' length unknown
opened URL
.......... .......... ......
downloaded 26 Kb
trying URL 'http://www.esrl.noaa.gov/psd/thredds/dodsC/Datasets/ncep.reanalysis/surface_gauss/air.2m.gauss.2007.nc.ascii?air[360:603][28:30][173:175]'
Content type 'text/plain; charset=UTF-8' length unknown
opened URL
.......... .......... ......
downloaded 26 Kb
[1] Units of variable 'air.2m' are degK
>
> ## Note that the dimnames of the data array indicate the
> ## latitudes, longitudes, and datetimes of the data. ##
> dimnames(wx.extent1)
[[1]]
[1] "55" "52.5" "50"
[[2]]
[1] "5" "7.5" "10"
[[3]]
[1] "1996_09_01_00" "1996_09_01_06" "1996_09_01_12" "1996_09_01_18"
[5] "1996_09_02_00" "1996_09_02_06" "1996_09_02_12" "1996_09_02_18"
[9] "1996_09_03_00" "1996_09_03_06" "1996_09_03_12" "1996_09_03_18"
[13] "1996_09_04_00" "1996_09_04_06" "1996_09_04_12" "1996_09_04_18"
[17] "1996_09_05_00" "1996_09_05_06" "1996_09_05_12" "1996_09_05_18"
[21] "1996_09_06_00" "1996_09_06_06" "1996_09_06_12" "1996_09_06_18"
[25] "1996_09_07_00" "1996_09_07_06" "1996_09_07_12" "1996_09_07_18"
[29] "1996_09_08_00" "1996_09_08_06" "1996_09_08_12" "1996_09_08_18"
[33] "1996_09_09_00" "1996_09_09_06" "1996_09_09_12" "1996_09_09_18"
[37] "1996_09_10_00" "1996_09_10_06" "1996_09_10_12" "1996_09_10_18"
[41] "1996_09_11_00" "1996_09_11_06" "1996_09_11_12" "1996_09_11_18"
[45] "1996_09_12_00" "1996_09_12_06" "1996_09_12_12" "1996_09_12_18"
[49] "1996_09_13_00" "1996_09_13_06" "1996_09_13_12" "1996_09_13_18"
[53] "1996_09_14_00" "1996_09_14_06" "1996_09_14_12" "1996_09_14_18"
[57] "1996_09_15_00" "1996_09_15_06" "1996_09_15_12" "1996_09_15_18"
[61] "1996_09_16_00" "1996_09_16_06" "1996_09_16_12" "1996_09_16_18"
[65] "1996_09_17_00" "1996_09_17_06" "1996_09_17_12" "1996_09_17_18"
[69] "1996_09_18_00" "1996_09_18_06" "1996_09_18_12" "1996_09_18_18"
[73] "1996_09_19_00" "1996_09_19_06" "1996_09_19_12" "1996_09_19_18"
[77] "1996_09_20_00" "1996_09_20_06" "1996_09_20_12" "1996_09_20_18"
[81] "1996_09_21_00" "1996_09_21_06" "1996_09_21_12" "1996_09_21_18"
[85] "1996_09_22_00" "1996_09_22_06" "1996_09_22_12" "1996_09_22_18"
[89] "1996_09_23_00" "1996_09_23_06" "1996_09_23_12" "1996_09_23_18"
[93] "1996_09_24_00" "1996_09_24_06" "1996_09_24_12" "1996_09_24_18"
[97] "1996_09_25_00" "1996_09_25_06" "1996_09_25_12" "1996_09_25_18"
[101] "1996_09_26_00" "1996_09_26_06" "1996_09_26_12" "1996_09_26_18"
[105] "1996_09_27_00" "1996_09_27_06" "1996_09_27_12" "1996_09_27_18"
[109] "1996_09_28_00" "1996_09_28_06" "1996_09_28_12" "1996_09_28_18"
[113] "1996_09_29_00" "1996_09_29_06" "1996_09_29_12" "1996_09_29_18"
[117] "1996_09_30_00" "1996_09_30_06" "1996_09_30_12" "1996_09_30_18"
[121] "1996_10_01_00" "1996_10_01_06" "1996_10_01_12" "1996_10_01_18"
[125] "1996_10_02_00" "1996_10_02_06" "1996_10_02_12" "1996_10_02_18"
[129] "1996_10_03_00" "1996_10_03_06" "1996_10_03_12" "1996_10_03_18"
[133] "1996_10_04_00" "1996_10_04_06" "1996_10_04_12" "1996_10_04_18"
[137] "1996_10_05_00" "1996_10_05_06" "1996_10_05_12" "1996_10_05_18"
[141] "1996_10_06_00" "1996_10_06_06" "1996_10_06_12" "1996_10_06_18"
[145] "1996_10_07_00" "1996_10_07_06" "1996_10_07_12" "1996_10_07_18"
[149] "1996_10_08_00" "1996_10_08_06" "1996_10_08_12" "1996_10_08_18"
[153] "1996_10_09_00" "1996_10_09_06" "1996_10_09_12" "1996_10_09_18"
[157] "1996_10_10_00" "1996_10_10_06" "1996_10_10_12" "1996_10_10_18"
[161] "1996_10_11_00" "1996_10_11_06" "1996_10_11_12" "1996_10_11_18"
[165] "1996_10_12_00" "1996_10_12_06" "1996_10_12_12" "1996_10_12_18"
[169] "1996_10_13_00" "1996_10_13_06" "1996_10_13_12" "1996_10_13_18"
[173] "1996_10_14_00" "1996_10_14_06" "1996_10_14_12" "1996_10_14_18"
[177] "1996_10_15_00" "1996_10_15_06" "1996_10_15_12" "1996_10_15_18"
[181] "1996_10_16_00" "1996_10_16_06" "1996_10_16_12" "1996_10_16_18"
[185] "1996_10_17_00" "1996_10_17_06" "1996_10_17_12" "1996_10_17_18"
[189] "1996_10_18_00" "1996_10_18_06" "1996_10_18_12" "1996_10_18_18"
[193] "1996_10_19_00" "1996_10_19_06" "1996_10_19_12" "1996_10_19_18"
[197] "1996_10_20_00" "1996_10_20_06" "1996_10_20_12" "1996_10_20_18"
[201] "1996_10_21_00" "1996_10_21_06" "1996_10_21_12" "1996_10_21_18"
[205] "1996_10_22_00" "1996_10_22_06" "1996_10_22_12" "1996_10_22_18"
[209] "1996_10_23_00" "1996_10_23_06" "1996_10_23_12" "1996_10_23_18"
[213] "1996_10_24_00" "1996_10_24_06" "1996_10_24_12" "1996_10_24_18"
[217] "1996_10_25_00" "1996_10_25_06" "1996_10_25_12" "1996_10_25_18"
[221] "1996_10_26_00" "1996_10_26_06" "1996_10_26_12" "1996_10_26_18"
[225] "1996_10_27_00" "1996_10_27_06" "1996_10_27_12" "1996_10_27_18"
[229] "1996_10_28_00" "1996_10_28_06" "1996_10_28_12" "1996_10_28_18"
[233] "1996_10_29_00" "1996_10_29_06" "1996_10_29_12" "1996_10_29_18"
[237] "1996_10_30_00" "1996_10_30_06" "1996_10_30_12" "1996_10_30_18"
[241] "1996_10_31_00" "1996_10_31_06" "1996_10_31_12" "1996_10_31_18"
[245] "1997_09_01_00" "1997_09_01_06" "1997_09_01_12" "1997_09_01_18"
[249] "1997_09_02_00" "1997_09_02_06" "1997_09_02_12" "1997_09_02_18"
[253] "1997_09_03_00" "1997_09_03_06" "1997_09_03_12" "1997_09_03_18"
[257] "1997_09_04_00" "1997_09_04_06" "1997_09_04_12" "1997_09_04_18"
[261] "1997_09_05_00" "1997_09_05_06" "1997_09_05_12" "1997_09_05_18"
[265] "1997_09_06_00" "1997_09_06_06" "1997_09_06_12" "1997_09_06_18"
[269] "1997_09_07_00" "1997_09_07_06" "1997_09_07_12" "1997_09_07_18"
[273] "1997_09_08_00" "1997_09_08_06" "1997_09_08_12" "1997_09_08_18"
[277] "1997_09_09_00" "1997_09_09_06" "1997_09_09_12" "1997_09_09_18"
[281] "1997_09_10_00" "1997_09_10_06" "1997_09_10_12" "1997_09_10_18"
[285] "1997_09_11_00" "1997_09_11_06" "1997_09_11_12" "1997_09_11_18"
[289] "1997_09_12_00" "1997_09_12_06" "1997_09_12_12" "1997_09_12_18"
[293] "1997_09_13_00" "1997_09_13_06" "1997_09_13_12" "1997_09_13_18"
[297] "1997_09_14_00" "1997_09_14_06" "1997_09_14_12" "1997_09_14_18"
[301] "1997_09_15_00" "1997_09_15_06" "1997_09_15_12" "1997_09_15_18"
[305] "1997_09_16_00" "1997_09_16_06" "1997_09_16_12" "1997_09_16_18"
[309] "1997_09_17_00" "1997_09_17_06" "1997_09_17_12" "1997_09_17_18"
[313] "1997_09_18_00" "1997_09_18_06" "1997_09_18_12" "1997_09_18_18"
[317] "1997_09_19_00" "1997_09_19_06" "1997_09_19_12" "1997_09_19_18"
[321] "1997_09_20_00" "1997_09_20_06" "1997_09_20_12" "1997_09_20_18"
[325] "1997_09_21_00" "1997_09_21_06" "1997_09_21_12" "1997_09_21_18"
[329] "1997_09_22_00" "1997_09_22_06" "1997_09_22_12" "1997_09_22_18"
[333] "1997_09_23_00" "1997_09_23_06" "1997_09_23_12" "1997_09_23_18"
[337] "1997_09_24_00" "1997_09_24_06" "1997_09_24_12" "1997_09_24_18"
[341] "1997_09_25_00" "1997_09_25_06" "1997_09_25_12" "1997_09_25_18"
[345] "1997_09_26_00" "1997_09_26_06" "1997_09_26_12" "1997_09_26_18"
[349] "1997_09_27_00" "1997_09_27_06" "1997_09_27_12" "1997_09_27_18"
[353] "1997_09_28_00" "1997_09_28_06" "1997_09_28_12" "1997_09_28_18"
[357] "1997_09_29_00" "1997_09_29_06" "1997_09_29_12" "1997_09_29_18"
[361] "1997_09_30_00" "1997_09_30_06" "1997_09_30_12" "1997_09_30_18"
[365] "1997_10_01_00" "1997_10_01_06" "1997_10_01_12" "1997_10_01_18"
[369] "1997_10_02_00" "1997_10_02_06" "1997_10_02_12" "1997_10_02_18"
[373] "1997_10_03_00" "1997_10_03_06" "1997_10_03_12" "1997_10_03_18"
[377] "1997_10_04_00" "1997_10_04_06" "1997_10_04_12" "1997_10_04_18"
[381] "1997_10_05_00" "1997_10_05_06" "1997_10_05_12" "1997_10_05_18"
[385] "1997_10_06_00" "1997_10_06_06" "1997_10_06_12" "1997_10_06_18"
[389] "1997_10_07_00" "1997_10_07_06" "1997_10_07_12" "1997_10_07_18"
[393] "1997_10_08_00" "1997_10_08_06" "1997_10_08_12" "1997_10_08_18"
[397] "1997_10_09_00" "1997_10_09_06" "1997_10_09_12" "1997_10_09_18"
[401] "1997_10_10_00" "1997_10_10_06" "1997_10_10_12" "1997_10_10_18"
[405] "1997_10_11_00" "1997_10_11_06" "1997_10_11_12" "1997_10_11_18"
[409] "1997_10_12_00" "1997_10_12_06" "1997_10_12_12" "1997_10_12_18"
[413] "1997_10_13_00" "1997_10_13_06" "1997_10_13_12" "1997_10_13_18"
[417] "1997_10_14_00" "1997_10_14_06" "1997_10_14_12" "1997_10_14_18"
[421] "1997_10_15_00" "1997_10_15_06" "1997_10_15_12" "1997_10_15_18"
[425] "1997_10_16_00" "1997_10_16_06" "1997_10_16_12" "1997_10_16_18"
[429] "1997_10_17_00" "1997_10_17_06" "1997_10_17_12" "1997_10_17_18"
[433] "1997_10_18_00" "1997_10_18_06" "1997_10_18_12" "1997_10_18_18"
[437] "1997_10_19_00" "1997_10_19_06" "1997_10_19_12" "1997_10_19_18"
[441] "1997_10_20_00" "1997_10_20_06" "1997_10_20_12" "1997_10_20_18"
[445] "1997_10_21_00" "1997_10_21_06" "1997_10_21_12" "1997_10_21_18"
[449] "1997_10_22_00" "1997_10_22_06" "1997_10_22_12" "1997_10_22_18"
[453] "1997_10_23_00" "1997_10_23_06" "1997_10_23_12" "1997_10_23_18"
[457] "1997_10_24_00" "1997_10_24_06" "1997_10_24_12" "1997_10_24_18"
[461] "1997_10_25_00" "1997_10_25_06" "1997_10_25_12" "1997_10_25_18"
[465] "1997_10_26_00" "1997_10_26_06" "1997_10_26_12" "1997_10_26_18"
[469] "1997_10_27_00" "1997_10_27_06" "1997_10_27_12" "1997_10_27_18"
[473] "1997_10_28_00" "1997_10_28_06" "1997_10_28_12" "1997_10_28_18"
[477] "1997_10_29_00" "1997_10_29_06" "1997_10_29_12" "1997_10_29_18"
[481] "1997_10_30_00" "1997_10_30_06" "1997_10_30_12" "1997_10_30_18"
[485] "1997_10_31_00" "1997_10_31_06" "1997_10_31_12" "1997_10_31_18"
> ## Therefore, the latitudes, longitudes, and datetimes
> ## can be called. ##
> dimnames(wx.extent1)[[1]] ## latitudes
[1] "55" "52.5" "50"
> dimnames(wx.extent1)[[2]] ## longitudes
[1] "5" "7.5" "10"
> dimnames(wx.extent1)[[3]] ## datetimes
[1] "1996_09_01_00" "1996_09_01_06" "1996_09_01_12" "1996_09_01_18"
[5] "1996_09_02_00" "1996_09_02_06" "1996_09_02_12" "1996_09_02_18"
[9] "1996_09_03_00" "1996_09_03_06" "1996_09_03_12" "1996_09_03_18"
[13] "1996_09_04_00" "1996_09_04_06" "1996_09_04_12" "1996_09_04_18"
[17] "1996_09_05_00" "1996_09_05_06" "1996_09_05_12" "1996_09_05_18"
[21] "1996_09_06_00" "1996_09_06_06" "1996_09_06_12" "1996_09_06_18"
[25] "1996_09_07_00" "1996_09_07_06" "1996_09_07_12" "1996_09_07_18"
[29] "1996_09_08_00" "1996_09_08_06" "1996_09_08_12" "1996_09_08_18"
[33] "1996_09_09_00" "1996_09_09_06" "1996_09_09_12" "1996_09_09_18"
[37] "1996_09_10_00" "1996_09_10_06" "1996_09_10_12" "1996_09_10_18"
[41] "1996_09_11_00" "1996_09_11_06" "1996_09_11_12" "1996_09_11_18"
[45] "1996_09_12_00" "1996_09_12_06" "1996_09_12_12" "1996_09_12_18"
[49] "1996_09_13_00" "1996_09_13_06" "1996_09_13_12" "1996_09_13_18"
[53] "1996_09_14_00" "1996_09_14_06" "1996_09_14_12" "1996_09_14_18"
[57] "1996_09_15_00" "1996_09_15_06" "1996_09_15_12" "1996_09_15_18"
[61] "1996_09_16_00" "1996_09_16_06" "1996_09_16_12" "1996_09_16_18"
[65] "1996_09_17_00" "1996_09_17_06" "1996_09_17_12" "1996_09_17_18"
[69] "1996_09_18_00" "1996_09_18_06" "1996_09_18_12" "1996_09_18_18"
[73] "1996_09_19_00" "1996_09_19_06" "1996_09_19_12" "1996_09_19_18"
[77] "1996_09_20_00" "1996_09_20_06" "1996_09_20_12" "1996_09_20_18"
[81] "1996_09_21_00" "1996_09_21_06" "1996_09_21_12" "1996_09_21_18"
[85] "1996_09_22_00" "1996_09_22_06" "1996_09_22_12" "1996_09_22_18"
[89] "1996_09_23_00" "1996_09_23_06" "1996_09_23_12" "1996_09_23_18"
[93] "1996_09_24_00" "1996_09_24_06" "1996_09_24_12" "1996_09_24_18"
[97] "1996_09_25_00" "1996_09_25_06" "1996_09_25_12" "1996_09_25_18"
[101] "1996_09_26_00" "1996_09_26_06" "1996_09_26_12" "1996_09_26_18"
[105] "1996_09_27_00" "1996_09_27_06" "1996_09_27_12" "1996_09_27_18"
[109] "1996_09_28_00" "1996_09_28_06" "1996_09_28_12" "1996_09_28_18"
[113] "1996_09_29_00" "1996_09_29_06" "1996_09_29_12" "1996_09_29_18"
[117] "1996_09_30_00" "1996_09_30_06" "1996_09_30_12" "1996_09_30_18"
[121] "1996_10_01_00" "1996_10_01_06" "1996_10_01_12" "1996_10_01_18"
[125] "1996_10_02_00" "1996_10_02_06" "1996_10_02_12" "1996_10_02_18"
[129] "1996_10_03_00" "1996_10_03_06" "1996_10_03_12" "1996_10_03_18"
[133] "1996_10_04_00" "1996_10_04_06" "1996_10_04_12" "1996_10_04_18"
[137] "1996_10_05_00" "1996_10_05_06" "1996_10_05_12" "1996_10_05_18"
[141] "1996_10_06_00" "1996_10_06_06" "1996_10_06_12" "1996_10_06_18"
[145] "1996_10_07_00" "1996_10_07_06" "1996_10_07_12" "1996_10_07_18"
[149] "1996_10_08_00" "1996_10_08_06" "1996_10_08_12" "1996_10_08_18"
[153] "1996_10_09_00" "1996_10_09_06" "1996_10_09_12" "1996_10_09_18"
[157] "1996_10_10_00" "1996_10_10_06" "1996_10_10_12" "1996_10_10_18"
[161] "1996_10_11_00" "1996_10_11_06" "1996_10_11_12" "1996_10_11_18"
[165] "1996_10_12_00" "1996_10_12_06" "1996_10_12_12" "1996_10_12_18"
[169] "1996_10_13_00" "1996_10_13_06" "1996_10_13_12" "1996_10_13_18"
[173] "1996_10_14_00" "1996_10_14_06" "1996_10_14_12" "1996_10_14_18"
[177] "1996_10_15_00" "1996_10_15_06" "1996_10_15_12" "1996_10_15_18"
[181] "1996_10_16_00" "1996_10_16_06" "1996_10_16_12" "1996_10_16_18"
[185] "1996_10_17_00" "1996_10_17_06" "1996_10_17_12" "1996_10_17_18"
[189] "1996_10_18_00" "1996_10_18_06" "1996_10_18_12" "1996_10_18_18"
[193] "1996_10_19_00" "1996_10_19_06" "1996_10_19_12" "1996_10_19_18"
[197] "1996_10_20_00" "1996_10_20_06" "1996_10_20_12" "1996_10_20_18"
[201] "1996_10_21_00" "1996_10_21_06" "1996_10_21_12" "1996_10_21_18"
[205] "1996_10_22_00" "1996_10_22_06" "1996_10_22_12" "1996_10_22_18"
[209] "1996_10_23_00" "1996_10_23_06" "1996_10_23_12" "1996_10_23_18"
[213] "1996_10_24_00" "1996_10_24_06" "1996_10_24_12" "1996_10_24_18"
[217] "1996_10_25_00" "1996_10_25_06" "1996_10_25_12" "1996_10_25_18"
[221] "1996_10_26_00" "1996_10_26_06" "1996_10_26_12" "1996_10_26_18"
[225] "1996_10_27_00" "1996_10_27_06" "1996_10_27_12" "1996_10_27_18"
[229] "1996_10_28_00" "1996_10_28_06" "1996_10_28_12" "1996_10_28_18"
[233] "1996_10_29_00" "1996_10_29_06" "1996_10_29_12" "1996_10_29_18"
[237] "1996_10_30_00" "1996_10_30_06" "1996_10_30_12" "1996_10_30_18"
[241] "1996_10_31_00" "1996_10_31_06" "1996_10_31_12" "1996_10_31_18"
[245] "1997_09_01_00" "1997_09_01_06" "1997_09_01_12" "1997_09_01_18"
[249] "1997_09_02_00" "1997_09_02_06" "1997_09_02_12" "1997_09_02_18"
[253] "1997_09_03_00" "1997_09_03_06" "1997_09_03_12" "1997_09_03_18"
[257] "1997_09_04_00" "1997_09_04_06" "1997_09_04_12" "1997_09_04_18"
[261] "1997_09_05_00" "1997_09_05_06" "1997_09_05_12" "1997_09_05_18"
[265] "1997_09_06_00" "1997_09_06_06" "1997_09_06_12" "1997_09_06_18"
[269] "1997_09_07_00" "1997_09_07_06" "1997_09_07_12" "1997_09_07_18"
[273] "1997_09_08_00" "1997_09_08_06" "1997_09_08_12" "1997_09_08_18"
[277] "1997_09_09_00" "1997_09_09_06" "1997_09_09_12" "1997_09_09_18"
[281] "1997_09_10_00" "1997_09_10_06" "1997_09_10_12" "1997_09_10_18"
[285] "1997_09_11_00" "1997_09_11_06" "1997_09_11_12" "1997_09_11_18"
[289] "1997_09_12_00" "1997_09_12_06" "1997_09_12_12" "1997_09_12_18"
[293] "1997_09_13_00" "1997_09_13_06" "1997_09_13_12" "1997_09_13_18"
[297] "1997_09_14_00" "1997_09_14_06" "1997_09_14_12" "1997_09_14_18"
[301] "1997_09_15_00" "1997_09_15_06" "1997_09_15_12" "1997_09_15_18"
[305] "1997_09_16_00" "1997_09_16_06" "1997_09_16_12" "1997_09_16_18"
[309] "1997_09_17_00" "1997_09_17_06" "1997_09_17_12" "1997_09_17_18"
[313] "1997_09_18_00" "1997_09_18_06" "1997_09_18_12" "1997_09_18_18"
[317] "1997_09_19_00" "1997_09_19_06" "1997_09_19_12" "1997_09_19_18"
[321] "1997_09_20_00" "1997_09_20_06" "1997_09_20_12" "1997_09_20_18"
[325] "1997_09_21_00" "1997_09_21_06" "1997_09_21_12" "1997_09_21_18"
[329] "1997_09_22_00" "1997_09_22_06" "1997_09_22_12" "1997_09_22_18"
[333] "1997_09_23_00" "1997_09_23_06" "1997_09_23_12" "1997_09_23_18"
[337] "1997_09_24_00" "1997_09_24_06" "1997_09_24_12" "1997_09_24_18"
[341] "1997_09_25_00" "1997_09_25_06" "1997_09_25_12" "1997_09_25_18"
[345] "1997_09_26_00" "1997_09_26_06" "1997_09_26_12" "1997_09_26_18"
[349] "1997_09_27_00" "1997_09_27_06" "1997_09_27_12" "1997_09_27_18"
[353] "1997_09_28_00" "1997_09_28_06" "1997_09_28_12" "1997_09_28_18"
[357] "1997_09_29_00" "1997_09_29_06" "1997_09_29_12" "1997_09_29_18"
[361] "1997_09_30_00" "1997_09_30_06" "1997_09_30_12" "1997_09_30_18"
[365] "1997_10_01_00" "1997_10_01_06" "1997_10_01_12" "1997_10_01_18"
[369] "1997_10_02_00" "1997_10_02_06" "1997_10_02_12" "1997_10_02_18"
[373] "1997_10_03_00" "1997_10_03_06" "1997_10_03_12" "1997_10_03_18"
[377] "1997_10_04_00" "1997_10_04_06" "1997_10_04_12" "1997_10_04_18"
[381] "1997_10_05_00" "1997_10_05_06" "1997_10_05_12" "1997_10_05_18"
[385] "1997_10_06_00" "1997_10_06_06" "1997_10_06_12" "1997_10_06_18"
[389] "1997_10_07_00" "1997_10_07_06" "1997_10_07_12" "1997_10_07_18"
[393] "1997_10_08_00" "1997_10_08_06" "1997_10_08_12" "1997_10_08_18"
[397] "1997_10_09_00" "1997_10_09_06" "1997_10_09_12" "1997_10_09_18"
[401] "1997_10_10_00" "1997_10_10_06" "1997_10_10_12" "1997_10_10_18"
[405] "1997_10_11_00" "1997_10_11_06" "1997_10_11_12" "1997_10_11_18"
[409] "1997_10_12_00" "1997_10_12_06" "1997_10_12_12" "1997_10_12_18"
[413] "1997_10_13_00" "1997_10_13_06" "1997_10_13_12" "1997_10_13_18"
[417] "1997_10_14_00" "1997_10_14_06" "1997_10_14_12" "1997_10_14_18"
[421] "1997_10_15_00" "1997_10_15_06" "1997_10_15_12" "1997_10_15_18"
[425] "1997_10_16_00" "1997_10_16_06" "1997_10_16_12" "1997_10_16_18"
[429] "1997_10_17_00" "1997_10_17_06" "1997_10_17_12" "1997_10_17_18"
[433] "1997_10_18_00" "1997_10_18_06" "1997_10_18_12" "1997_10_18_18"
[437] "1997_10_19_00" "1997_10_19_06" "1997_10_19_12" "1997_10_19_18"
[441] "1997_10_20_00" "1997_10_20_06" "1997_10_20_12" "1997_10_20_18"
[445] "1997_10_21_00" "1997_10_21_06" "1997_10_21_12" "1997_10_21_18"
[449] "1997_10_22_00" "1997_10_22_06" "1997_10_22_12" "1997_10_22_18"
[453] "1997_10_23_00" "1997_10_23_06" "1997_10_23_12" "1997_10_23_18"
[457] "1997_10_24_00" "1997_10_24_06" "1997_10_24_12" "1997_10_24_18"
[461] "1997_10_25_00" "1997_10_25_06" "1997_10_25_12" "1997_10_25_18"
[465] "1997_10_26_00" "1997_10_26_06" "1997_10_26_12" "1997_10_26_18"
[469] "1997_10_27_00" "1997_10_27_06" "1997_10_27_12" "1997_10_27_18"
[473] "1997_10_28_00" "1997_10_28_06" "1997_10_28_12" "1997_10_28_18"
[477] "1997_10_29_00" "1997_10_29_06" "1997_10_29_12" "1997_10_29_18"
[481] "1997_10_30_00" "1997_10_30_06" "1997_10_30_12" "1997_10_30_18"
[485] "1997_10_31_00" "1997_10_31_06" "1997_10_31_12" "1997_10_31_18"
>
> #################################################################
> #################################################################
> #################################################################
> ## THERE ARE MANY OPTIONS FOR CREATING DIFFERENT R OBJECTS
> ## AND/OR FOR EXPORTING THESE WEATHER DATA.
> ## HERE ARE A FEW EXAMPLES
>
> #########################################################
> #########################################################
> ## The data array may be saved directly as an R object ##
> ## Not run: save(wx.extent, file='wx_extent.Rdata')
> ## And then later recalled ##
> ## Not run: load(file='wx_extent.Rdata')
>
>
> ################################################################
> ################################################################
> ## Another option is to create a raster object from the array ##
> ## For more info, see package raster
> library(raster)
raster version 1.9-67 (6-February-2012)
>
> ## Using the data from a query above ##
> ## First create a stacked raster object using the first
> ## layer (i.e. datetime) of the weather data array ##
> ## Notice the offset of 1.25 degrees (1/2 the spatial resolution)
> ## to describe the limits of the bounding box not the points
> ras <- stack(raster(wx.extent1[,,1], crs="+proj=longlat +datum=WGS84",
+ xmn=min(as.numeric(dimnames(wx.extent1)[[2]])) - 1.25,
+ xmx=max(as.numeric(dimnames(wx.extent1)[[2]])) + 1.25,
+ ymn=min(as.numeric(dimnames(wx.extent1)[[1]])) - 1.25,
+ ymx=max(as.numeric(dimnames(wx.extent1)[[1]])) + 1.25))
>
> ## Then add each subsequent layer to the raster stack ##
> for(i in 2:length(dimnames(wx.extent1)[[3]])){
+ ras <- addLayer(ras, raster(wx.extent1[,,i],
+ crs="+proj=longlat +datum=WGS84",
+ xmn=min(as.numeric(dimnames(wx.extent1)[[2]])) - 1.25,
+ xmx=max(as.numeric(dimnames(wx.extent1)[[2]])) + 1.25,
+ ymn=min(as.numeric(dimnames(wx.extent1)[[1]])) - 1.25,
+ ymx=max(as.numeric(dimnames(wx.extent1)[[1]])) + 1.25))
+ }
Killed