Displaying 20 results from an estimated 4000 matches similar to: "Image treatement"
2010 Jun 09
1
minor tick marks
Hi !
I need a plot for data extending over several orders of magnitude on the y axis.
The following command generates a nice looking semi-log plot for my data:
plot(x,y,log="y",type="l",lty=3, ylim=c(0.01,2),yaxp=c(0.01,1,1),las=1)
I would appreciate having also minor tick marks in-between the 3 major ticks obtained with the above command. The "minor.tick" function
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(),
2004 Mar 02
2
Import range of cells from Excel
Dear all,
I would like to import a range of cells (e.g. F10:K234) from an Excel
worksheet to R. I have looked for documentation on RODBC and RDCOMClient but
I was not able to find enough information to solve my problem and all the
examples I have seen were dealing with an entire worksheet, not a range of
cells.
Thanks,
Jean-Noel
Jean-Noel Candau
INRA - Unit? de Recherches Foresti?res
2005 Jan 19
2
Moving fileserver
I'm having a problem here I'm not sure how to solve, so I
hope someone else have done the same (and succeeded :)
I have an old smb server ('tux') which is ancient (both
in software and hardware) and can't handle the load.
This machine is running version 2.2.3a-14.1 (Debian
GNU/Linux woody) with 'character set = ISO8859-1'.
The new smb server ('bella') runs
2012 Apr 26
2
write to M, using row and columns taken from A and B, with values from C
I want to write to M, using row and columns taken from A and B, with values
from C. C is a lot longer than A and B, so only the first 67420 elements of
C are used in my loop.So how can I improve it to take then the next 67420
and write it to new file and so on till the 248th 67420. Many thanks
library(Matrix)
M <- Matrix(-9999, 360, 720) ## creat matrix with 720 columns and 360 ro
ws
2004 Feb 09
2
Recursive partitioning with multicollinear variables
Dear all,
I would like to perform a regression tree analysis on a dataset with
multicollinear variables (as climate variables often are). The questions
that I am asking are:
1- Is there any particular statistical problem in using multicollinear
variables in a regression tree?
2- Multicollinear variables should appear as alternate splits. Would it be
more accurate to present these alternate
2012 Oct 29
3
How can I map numbers to colours with raster?
This code will read binary file and display it as a map. may problem is that
this code is using a continuous colour scheme, even though I have discrete
data (which is a classification scheme). How can I map numbers to colours
with raster? Please
require(raster)
conne <- file("C:\\lai.bin", "rb")
sd<- readBin(conne, integer(), size=1, n=360*720, signed=F)
2013 Mar 04
1
How to loop several binary files from two directories?
I have two binary files(rasters) with the same dimensions. The first file is
called `over` and the second is `corr`. I want to replace values in `over`
by `NA` whenever `corr` is greater than 0.5.
to read the two files we can use:
conne <- file("C:corr.bin","rb")
over <- readBin(conne, numeric(), size=4, n=1440*720, signed=TRUE)
frf <-
2011 Mar 14
3
FTP accounts
Hello,
I have setup a centos server running 5.5 and I have a problem with the FTP
settings.
Currently I have two FTP accounts based on that server, they lead to:
/home/bella
/home/carmen
Currently the FPT accounts starts in the home directory when they are logged
in. But they are able to see all directories on the server. What can I do to
make sure they cant come out of there home directory?
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
2011 May 30
4
OpenSUSE 11.4 (2.6.39-30.1), Xen 4.0.2 - Device 0 (vif) Could not be connected
All,
This is a fresh, un-f#$ked-with OpenSUSE install after adding the Tumbleweed
repository and doing a dup. I installed the Hypervisor with Tools for which
it prompted me for Xen or QEMU and I chose Xen. No bridge was made.
When I go to create a fully virtualised machine, it nao has the error:
Error: Device 0 (vif) could not be connected. Could not find the bridge,
and none was specified.
2012 Apr 06
2
read multiaple files within one folder
Suppose we have files in one folder file1.bin, file2.bin, ... , and
1460slice(file) with dim of 720 * 360 in directory C:\\PHD\\Climate
Data\\Wind\\ and we want to read them and make a loop to go from 1 to 4
and take the average, then from 4 to 8 and so on till 1460. in the end we
will get 365 files . I need those 365 files to be in one new folder for
later use in my model
I tried using this
2013 Jan 17
2
How to calculate monthly average from daily files in R?
I have 365 binary files:
https://echange-fichiers.inra.fr/get?k=oy3CN1yV1Um7ouRWm2U ,I want to
calculate the monthly average. So from the 365 files, I will get 12 files.I
would like also to tell R not to take into account the no-data value
(-32765).for example, for the first month, there are 31 records: 3 of these
records has the value -32765,I want R to take the average of the rest
records(28
2009 May 18
2
readBin on binary non-blocking connections (Windows & Unix differences/bugs)
R-devel:
I am encountering a consistency issue using socketConnection and
readBin with *non-blocking* connections on Unix and Windows XP (no
Vista to test).
I am a bit confused by the behavior of *non-blocking* connections
under Windows specifically. When calling readBin on a non-blocking
connection when there is no data to read on the socket, the connection
under Unix will return a vector of
2007 Aug 14
2
pakages
Good Morning
i am in doctorate.
i want to ask for the packages of R,
i tried to install it, but it appears " not found". each time i have to
delete and install again the programme R.
Are there another method for installing the package?
thank you
2007 Sep 07
1
negative value for AIC and BIC
Hi all,
I obtained negative values for AIC and BIC criteria for a particular
model that I have
developped...
I don't remember to have negative values for these crietria for others
applications, so I am a
little suprised... Could anyone tell me if something is wrong or his
conclusion concerning my model?
Best regards,
Olivier.
2012 Aug 19
1
radarchart axis scaling
Hello
I created a radar chart using the function of ?radarchart? from the
?fmsb? package in R software.
The matrix I am using is as follows:
x<-c(c(rep(4.5,7),c(rep(0,7)), 3.34, 3.28, 1.37, 1.12, 3.52, 4.07, 3.66));
a<-matrix(x,nrow=3, ncol=7,byrow=T)
I would like to show the range of c(0,5) on the axis instead of
c(0,100) or c(0,1).
I really appreciate it if any body can guide me.
2006 Jun 28
2
read file with readBin (the file was saved with a C-routine)
Hello!
I have problems with using of "readBin" to read files, which was written in C with "fwrite". In the C-File there is the following Code:
fwrite(MyitINI,sizeof(itINItype),1,outfile);
where MyitINI is a structure of the following form
typedef struct{
int KernelFileSave; /* Determined, if Systemmatrix saved or not.*/
char KernelFileName[200]; /* A-Matrix name
2003 Nov 04
3
interfacing C into R and R packages
Hi,
I would like to interface a C code into R. Is it possible to use in the C code, functions from a R package (for instance, to use pmvnorm within loops in the C code and to call the result in a R function)?
Nathalie
2011 Nov 15
3
Sweave and accented letters
I often use Lyx/Sweave and I typically write in english.
Today I had to write a document in Italian and, as many of you know,
many italian popular words use ?, ?, ?. ?, etc.
I discovered that if I type in Italian (that is there is at least one
letter with accent) with the Sweave module selected lye is not able
to correctly compile the document.
I tried to change the input encoding, but it