Changes between Version 7 and Version 8 of udg/ecoms/RPackage/examples/drift


Ignore:
Timestamp:
Jan 30, 2015 7:00:49 PM (7 years ago)
Author:
juaco
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • udg/ecoms/RPackage/examples/drift

    v7 v8  
    5151# This step ensures regularity of the CFS grid, which is not perfectly regular:
    5252xy.coords <- coordinates(points2grid(points = SpatialPoints(xy), tolerance = .003))
     53# Trick to adequately adjust the coordinate ordering (thanks Kathryn!)
     54xy.coords[ ,2] <- rev(xy.coords[ ,2])
    5355# Now we create a data.frame with the coordinates X-Y in the first two columns and the mean anomalies in the next 6 columns:
    5456df <- cbind.data.frame(xy.coords, aux.mat)
     
    5759'data.frame':   55 obs. of  8 variables:
    5860 $ x          : num  -10.31 -9.38 -8.44 -7.5 -6.56 ...
    59  $ y          : num  40.2 40.2 40.2 40.2 40.2 ...
     61 $ y          : num  36.4 36.4 36.4 36.4 36.4 ...
    6062 $ LeadMonth_1: num  0.0596 0.1601 0.5955 0.9068 1.2601 ...
    6163 $ LeadMonth_2: num  -0.1215 0.0509 0.3622 0.5444 0.6977 ...
     
    8587}}}
    8688
    87 [[Image(image-20140903-180503.png)]]
     89[[Image(image-20150130-185813.png)]]
    8890
    8991