Displaying 2 results from an estimated 2 matches for "wind_wfd_200201".
2012 Apr 26
2
write to M, using row and columns taken from A and B, with values from C
...file("C:\\New folder (5)\\inra.bin", "rb")
A = readBin(long, integer(), size = 2, n = 1*67420, signed = TRUE)
lot <- file("C:\\New folder (5)\\lat.img", "rb")
B = readBin(lot, integer(), size = 2, n = 1*67420, signed = TRUE)
wind <- file("C:\\Wind_WFD_200201.bin", "rb")
C= readBin(wind, integer(), size = 2, n = 248*67420, signed = TRUE) ##it
has 67420 columns and 248 rows
for (i in seq_along(C)){
for (i in (1:67420)) {
M(A(i), B(i)) = C(i)
}}
for (i in seq_along(M)){
fileName <- sprintf("C:/New folder/glo_%d.f...
2012 Apr 25
0
locate values to their positions based on their pixel and line in other files
...New folder (5)\\inra.bin", "rb")
A=readBin(long, integer(), size=2,n=1*67420, signed=TRUE)
lot <- file("C:\\New folder (5)\\lat.img", "rb")
B=readBin(lot, integer(), size=2,n=1*67420, signed=TRUE)
for (i in c(1:67420)) {
wind <- file("C:\\Wind_WFD_200201.bin", "rb")
C=readBin(wind, integer(), size=2,n=248*67420, signed=TRUE)##it has 67420
columns and 248 rows
M(A(i),B(i))= C(i)}
I wrote the above code but didn't work.I am so sorry for this long
description and thanks in advance
--
View this message in context: http://r.78969...