Displaying 20 results from an estimated 6000 matches similar to: "How to calculate the spatial correlation of several files?"
2012 May 24
6
R does not recognise columns and rows as they are supposed to be
Dear All,
The code given bellow is to extract values of one region and write that to
a text file(there are 365 binary files in the directory).
The problem which I am facing is that all my files are binary with size of
360 rows and 720 columns.
I specified that in this line: file2<-matrix(data=file,ncol=720,nrow=360)
but I got an error : Error in mean(file2[X, Y], na.rm = TRUE) : subscript
2012 May 28
1
Why R order files as 1 10 100 not 1 2 3 ?
The code given below worked well. However, the problem is that when I typed
dir1 to see the results I found that R order the files as:
[1] "data1.flt" "data10.flt" "data100.flt" "data101.flt"
[5] "data102.flt" "data103.flt" "data104.flt" "data105.flt"
[9] "data106.flt" "data107.flt"
2007 Jul 16
2
Source inside source
Is there a way to know where is the source, so as to make a source call
inside another source smarter?
As an example:
file1.R is in directory /files/dir1/
file2.R is in directory /files/dir1/dir2/
In file1.R, there is this line:
source("dir2/file2.R")
So, if I setwd to /files/dir1/, and then I call source("file1.R"),
it will run correctly. However, if I setwd to /files,
2010 Jul 16
4
--compare-dest weirdness
Hi All,
I am writing a backup program for my computer. brief outline is as follows.
Running ubuntu 10.04
2 main partitions, / and /home, both ext3. 1 external usb hdd, ext3,
mounted to /backups/main.
once every couple of days, rsync backs up, using following command,
everything worth backing up in / and /home partitions to a folder
/backups/main/Full. command: "rsync -vrhRupElog
2007 Apr 30
3
Incremental backup and empty dirs
Hi,
I use rsync with such options:
OPTIONS="-a -u -z -v -S --delete-during --ignore-errors \
-b --backup-dir=${PATH_BACKUP}/${DATE_YESTERDAY} \
--exclude-from=$IGNORE"
rsync $OPTIONS ${PATH_SRC} \
${PATH_BACKUP}/current
Everything works as it should be, deleted files are transfered everyday
to a new catalog, determinated by a variable ${DATE_YESTERDAY}.
But
2012 Apr 27
6
Min , Max
Hellow everyone,
This code bellow will calculate average daily wind speed(measurements are
taken every three hours).Any ideas how to take the Min and Max instead of
average.
library(Matrix)
setwd("C:\\Users\\aalyaari\\Desktop\\img")
listfile<-dir()
long <- file("C:\\Users\\aalyaari\\Desktop\\New folder (5)\\inra.bin", "rb")
A=readBin(long, integer(),
2013 Feb 22
2
How to merge two functions into one?
I am using the code below to calculate the correlation map between two
datasets. This code worked fine.
dir1 <- list.files("D:thly", "*.bin", full.names = TRUE)
dir2 <- list.files("D:002", "*.envi", full.names = TRUE)
file_tot <- array(dim = c(1440, 720, 11, 2))
for(i in 1:length(dir1)) {
file_tot[, , i, 1] <-
2014 Jun 17
2
rsync specified directory(ies)
Hello,
i try to copy a specified directory and the according folders and files below to a remote host.
cd /dir
/usr/bin/rsync -ravz -e ssh --include='*/' --include='*/00/*/*' --exclude='*' . remote_host:/tmp
i want to copy in these example the directory "00" and the according folders and files below.
the structure of the directory is defined by a software and
2008 Sep 09
3
directories not correctly recognized rsync-3.0.4
Hi,
I'm running rsync-3.0.4 on my UNIX system. I've just updated from rsync-2.6.9.
I'm facing a general problem with the execution of files during a transfer process.
The situation: 2 Directories (dir1 and dir2) on one machine with a some files in dir1 which shall be translated to dir2.
rsync does not correctly recognize dir1 and dir2 as directories. It tries to transfer dir1 as a
2007 Nov 19
1
rsync-ing from two locations with same filenames (at different versions)
Hello,
I would like to have a full repository, say, holding files
full/a.txt (version 1)
full/b.txt (version 1)
full/c.txt (version 1)
and a repository of updates, for example
new/b.txt (version 2 - newer)
Then, I would like to call
rsync [flags] new/ full/ destination
to get
destination/a.txt (v.1)
destination/b.txt (v.2)
destination/c.txt (v.1)
This simple case works
2018 Aug 21
2
[Bug 13587] New: Add a --dry-run way to show destination for each item
https://bugzilla.samba.org/show_bug.cgi?id=13587
Bug ID: 13587
Summary: Add a --dry-run way to show destination for each item
Product: rsync
Version: 3.1.2
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P5
Component: core
Assignee: wayned at samba.org
2007 Dec 28
1
Odd behavior with --detect-renamed
Hello,
I'm totally new to this list, so I hope I don't break all the rules. :)
I've looked through the archives (and google), and I really can't find the
answer to my question.
I'm trying out the 'detect-renamed'-patch, and I've encountered some odd
behavior. I've applied the patch to both rsync-2.6.9 and rsync-3.0.0pre7,
and it's the same behavior.
2005 Jan 19
4
How to replace slashes with back slashes
Dear R-helpers
I am running R2.0.0 under Windows 2000. I am compiling a number of file paths into a simple text file that will be read by some other software we use. Unfortunately, it can only handle file paths with back slashes (MS Windows convention), and from R, I get file paths with forward slashes. The following didn't work.
> gsub('/', '\\',
2007 Dec 09
3
OT: Rsync question
Hello All,
I have an off topic question about rsync and was
wondering if i can get some kind person help with it.
I have two servers with each server have three same
directories on them /dir1/ /dir2/ /dir3/ . How would i
achieve this by using rsync?
I have tried rsync -avrt --delete server_ip:/dir1/
/dir2/ /dir3/ /dir1/ /dir2/ /dir3/
this does not do anything except give errors.
Someone on IRC
2004 Feb 06
3
Please help : Strange 'file has vanished' behaviour with rsync on windows.
Please help : Strange 'file has vanished' behaviour with rsync on windows.
I need to run rsync on windows and sync shares thru UNC names.
When I try :
rsync -e ssh -av //mypc1/myshare1/dir1/* //mypc1/myshare1/dir2/.
rsync does a copy but says "file has vanished" for every file.
Then when I run:
rsync -e ssh -av --dry-run //mypc1/myshare1/dir1/* //mypc1/myshare1/dir2/.
it shows
2013 Dec 02
2
symlink in -R src_dirlist and real dirs on target
Hi folks,
I have a bunch of directories to mirror via rsync. I have lots of
hardlinked files spread about these directories. Therfore I use -R
(--relative) and -H.
so far ok but:
I create symlinks to the source-directories via script because src-dirs
have changing names (date and time of backup) and I want to have constant
directory names on target. How can I achieve that?
I thought -k
2018 May 15
2
New 3.12.7 possible split-brain on replica 3
Thank you Ravi for your fast answer. As requested you will find below the "stat" and "getfattr" of one of the files and its parent directory from all three nodes of my cluster.
NODE 1:
File: ?/data/myvolume-private/brick/dir1/dir2/dir3/dir4/dir5/dir6/dir7/dir8/dir9/dir10/OC_DEFAULT_MODULE/filename.shareKey?
Size: 0 Blocks: 38 IO Block: 131072 regular
2000 Mar 18
3
Samba 2.0.7pre2 snapshot released.
Hi all,
I just released Samba 2.0.7pre2, available from :
ftp://samba.org/pub/samba/alpha/samba-2.0.7pre2.tar.gz
This is the second snapshot of the code that should become
the official Samba 2.0.7 and is feature complete (ie. I'm
only going to accept bug fixes, not more features).
This is *not* production code, but should work well as a
file and print server, and contains fixes for all
2007 Dec 06
1
Delete files using no recursion
Hi all,
I'm running rsync (2.6.2) this way (which do not remove files from the
destination side which were removed from the sending side):
rsync -vbu --backup-dir=/bkp --stats /dir1/*.fle /dir2
I want to sync all .fle files from dir1 to the dir2 and also remove
files from the destination which were removed from the sending side,
using no recursion. Already tried this:
2018 May 17
0
New 3.12.7 possible split-brain on replica 3
Hi mabi,
Some questions:
-Did you by any chance change the cluster.quorum-type option from the
default values?
-Is filename.shareKey supposed to be any empty file? Looks like the file
was fallocated with the keep-size option but never written to. (On the 2
data bricks, stat output shows Size =0, but non zero Blocks and yet a
'regular empty file').
-Do you have some sort of a