dc896148 wrote:
>
> Then I pass the parameters according to the order they are specified in
> the filter:
> array <- data.matrix(read.table("time702.txt",header=F))
> array1 <- array
> nx <- 60
> ny <- 120
> halfintx <- 3
> halfinty <- 3
> mask <- matrix(array(rep(1.0,25)),5,5)
> subarray <- mat
Another issue with this is how 'mask' is declared within the filter2d
subroutine as well as 'subarray' and 'subarray1'
integer ijx,ijy,ix,iy,jx,jy,icx,icy
integer nx,ny,halfintx,halfinty
real count
logical missing
real array(nx,ny),array1(nx,ny),miss
real
s
Maybe this is my problem. Perhaps passing an array of just 1's would work?
--
View this message in context:
http://n4.nabble.com/Help-running-a-Fortran-subroutine-from-R-tp1595641p1595795.html
Sent from the R help mailing list archive at Nabble.com.
__
On Wed, 17 Mar 2010, dc896148 wrote:
> The output will be an array of the same dimension as 'array', the first
> argument passed to the subroutine. The output array is the second
> argument, 'array1', which will be populated with the smoothed values
> according to the subroutine.
> I can run the s
The output will be an array of the same dimension as 'array', the first
argument passed to the subroutine. The output array is the second argument,
'array1', which will be populated with the smoothed values according to the
subroutine.
I can run the subroutine in R without receiving an error, i
dc896148 wrote:
>
> useR's,
> I need help getting a Fortran DLL successfully returning the correct
> output. The attached fortran source code (filter2d.f) and DLL
> (filter2d.dll) are attached. Also, I attached a text file for which I
> want to apply the filter to (time702.txt).
>
> Here is w
6 matches
Mail list logo