Displaying 19 results from an estimated 19 matches for "wfile".
Did you mean:
file
2010 Sep 23
1
NetCDF file: adding a variable
I am trying to create a NetCDF file with bathymetry (a matrix) and then to
add a grid type (an integer) as variables.
This is the relevant part of the code:
library(ncdf)
wfile="my_file.nc"
msv=-10
grdtp=2
# Dimensions
d1=dim.def.ncdf("lon","degrees",as.double(lon))
d2=dim.def.ncdf("lat","degrees",as.double(lat))
# Variables
bathymetry=var.def.ncdf("bathymetry","m",list(d1,d2),msv,longname="Bathy...
2010 Apr 25
4
Image into Excel file from R
Hi useRs,
I would like to know what R users are employing to get their
images/plots created in R, into Excel sheets.
I am aware of the various packages (xlsReadWrite, RODBC) to get data
frames into R, but I would like to copy images too.
Thank you for any help in solving this problem.
Regards,
Harsh Singhal
2012 Dec 25
2
[LLVMdev] [DragonEgg] Strange call to @"\01__isoc99_fscanf"
...rgc, char* argv[])
{
if (argc != 2)
{
printf("Test KernelGen support for File I/O\n");
printf("Usage: %s <szarray>\n", argv[0]);
return 0;
}
size_t szarray = (size_t)strtoumax(argv[1], NULL, 0);
// Write data to file.
FILE* wfile = fopen(filename, "w");
if (!wfile)
{
fprintf(stderr, "Cannot open output file %s\n", filename);
return 1;
}
for (int i = 0; i < szarray; i++)
fprintf(wfile, "%d ", i);
fclose(wfile);
// Read data from file.
FILE*...
2010 Jun 16
1
Help asked for automated generation of ncdf variables
...class(river)="var.ncdf"
for ( iriv in 1:nriv) {
nam=paste('r',iriv, collapse=NULL,sep="")
riv= var.def.ncdf(nam,"m**3/s",d1,msvf,longname=names[iriv],prec="single")
#class(river[iriv]) ="var.ncdf"
river[iriv] = riv
}
ncw=create.ncdf(wfile,list(river))
###This is failing by warning first (which I do not understand):
1: In river[iriv] = riv :
number of items to replace is not a multiple of replacement length
2: In river[iriv] = riv :
number of items to replace is not a multiple of replacement length
...
###And finally with fol...
2002 Feb 11
0
read.table in TCL/TK interface
...**************************************
### Command executed via Tk ###
t.test(Ozone[Month == 5], Ozone[Month == 8], alternative = "two.sided",
var.equal = FALSE)
### -----
...what is happen here ?
Thanks for advance and suggestions
regards Christian Schulz
tktree <- function() {
wfile <- ""
tt <- tktoplevel()
tktitle(tt) <- "Tcl/TK Decision Tree Window "
yvar <- "EKV"
y.entry <- tkentry(tt,textvariable=yvar)
submit.but <- tkbutton(tt,
text="submit",command=function()tclvalue(done)<-1)
done <- tclVar(0)
tkpack(y.ent...
2018 Oct 15
3
Re: [PATCH v2 3/3] v2v: -o rhv-upload: Add a test.
...t;
> > + self.send_response(200)
> > > + self.send_header("Content-type", "application/json;
> > > charset=UTF-8")
> > > + self.end_headers()
> > > + # Advertize only zero support.
> > > + self.wfile.write(b'''{ "features": [ "zero" ] }''')
> > > +
> > > + # eg. zero request. Just ignore it.
> > > + def do_PATCH(self):
> > >
> >
> > This must read content-length bytes from self.rfile.
> >
&g...
2018 Oct 09
2
Re: [PATCH v2 3/3] v2v: -o rhv-upload: Add a test.
...sion = "HTTP/1.1"
> + def do_OPTIONS(self):
+ self.send_response(200)
> + self.send_header("Content-type", "application/json;
> charset=UTF-8")
> + self.end_headers()
> + # Advertize only zero support.
> + self.wfile.write(b'''{ "features": [ "zero" ] }''')
> +
> + # eg. zero request. Just ignore it.
> + def do_PATCH(self):
>
This must read content-length bytes from self.rfile.
> + self.send_response(200)
> + self.end_headers(...
2018 Nov 20
2
Re: [PATCH v2 3/3] v2v: -o rhv-upload: Add a test.
...do_OPTIONS(self):
> - self.send_response(200)
> - self.send_header("Content-type", "application/json; charset=UTF-8")
> - self.end_headers()
> + self.discard_request()
> +
> # Advertize only zero support.
> - self.wfile.write(b'''{ "features": [ "zero" ] }''')
> + content = b'''{ "features": [ "zero" ] }'''
> + length = len(content)
> +
> + self.send_response(200)
> + self.send_header(...
2018 Oct 15
0
Re: [PATCH v2 3/3] v2v: -o rhv-upload: Add a test.
...+ def do_OPTIONS(self):
>
> + self.send_response(200)
> > + self.send_header("Content-type", "application/json;
> > charset=UTF-8")
> > + self.end_headers()
> > + # Advertize only zero support.
> > + self.wfile.write(b'''{ "features": [ "zero" ] }''')
> > +
> > + # eg. zero request. Just ignore it.
> > + def do_PATCH(self):
> >
>
> This must read content-length bytes from self.rfile.
>
>
> > + self.send_...
2004 Jul 08
1
openssh 3.8.1p1 problem on SCO 5.0.7
...and one in /etc/wtmpx. I'm guessing updwtmpx() then
synchronizes wtmpx with wtmp, since a second entry ends up in wtmpx as
well. I think this behaviour of updwtmpx() is also true of other OSs.
Here's the relevant section of the getutx(S) man page:
updwtmpx(S) checks the existence of wfilex and its parallel file
wfile, whose name is obtained by removing the final ``x'' from
wfilex. If only one of them exists, the other is created and
initialized to reflect the state of the existing file. utmpx is
written to wfilex, and the corresponding utmp structure is
writte...
2005 Aug 03
2
regexpr and portability issue
Dear all--
I am still forging my first arms with R and I am fighting with regexpr() as
well as portability between unix and windoz. I need to extract barcodes from
filenames (which are located between a double and single underscore) as well
as the directory where the filename is residing. Here is the solution I came
to:
aFileName <-
2008 Jun 23
5
Need ideas on how to show spikes in my data and how to code it in R
Hi
I have recently been analyzing birthweight data from a clinic. The
data has obvious defects in that there is digit preference on certain
weights making them overrepresented. This shows as spikes in the
histogram on certain well rounded weights like 2, 2.5, 3, etc. I
would like to show this to government officials but can't figure out
how I should present the finding in an easy to
2009 Nov 06
0
High ping time from domU , normal time when tcpdump is running
...64 time=0.403 ms
64 bytes from 10.12.6.1: icmp_seq=19 ttl=64 time=0.413 ms
64 bytes from 10.12.6.1: icmp_seq=20 ttl=64 time=0.404 ms
--- 10.12.6.1 ping statistics ---
20 packets transmitted, 20 received, 0% packet loss, time 19000ms
rtt min/avg/max/mdev = 0.388/0.414/0.461/0.024 ms
With tcpdump -wfile icmp in one terminal and ping in another:
# ping -n -c20 10.12.6.1
PING 10.12.6.1 (10.12.6.1) 56(84) bytes of data.
64 bytes from 10.12.6.1: icmp_seq=1 ttl=64 time=2.35 ms
64 bytes from 10.12.6.1: icmp_seq=2 ttl=64 time=4.11 ms
64 bytes from 10.12.6.1: icmp_seq=3 ttl=64 time=4.12 ms
64 bytes from 1...
2018 Sep 20
0
[PATCH v2 3/3] v2v: -o rhv-upload: Add a test.
...0000,60000)
+
+class RequestHandler(BaseHTTPRequestHandler):
+ def do_OPTIONS(self):
+ self.send_response(200)
+ self.send_header("Content-type", "application/json; charset=UTF-8")
+ self.end_headers()
+ # Advertize only zero support.
+ self.wfile.write(b'''{ "features": [ "zero" ] }''')
+
+ # eg. zero request. Just ignore it.
+ def do_PATCH(self):
+ self.send_response(200)
+ self.end_headers()
+
+ # Flush request. Ignore it.
+ def do_PUT(self):
+ self.send_respon...
2018 Sep 20
7
[PATCH v2 0/3] v2v: -o rhv-upload: Add a test.
v1 was here:
https://www.redhat.com/archives/libguestfs/2018-September/msg00121.html
v2:
- Rewrote patch 2 from scratch so it incorporates Nir's suggestions.
- Add fake module to EXTRA_DIST.
- Retested.
Unfortunately I am no longer able to test the ordinary conversion path
because ovirtsdk4 is incompatible with Fedora 29 / Python 3.7:
2006 Dec 02
3
Bug#401249: xen-utils-common: xenbr0 not being created
...andle_one_request()
File "BaseHTTPServer.py", line 310, in handle_one_request
method()
File "/usr/lib/xen-3.0.3-1/lib/python/xen/util/xmlrpclib2.py", line 66, in do_POST
self.send_response(200)
File "BaseHTTPServer.py", line 367, in send_response
self.wfile.write("%s %d %s\r\n" %
File "socket.py", line 248, in write
self.flush()
File "socket.py", line 235, in flush
self._sock.sendall(buffer)
error: (32, 'Broken pipe')
/var/log/xen/xend.log:
[2006-12-02 02:26:50 xend 2941] INFO (__init__:1072) Xend D...
2018 Sep 19
4
[PATCH 0/3] v2v: -o rhv-upload: Add a test.
This adds a test of -o rhv-upload.
Obviously for an upstream test we cannot require a working oVirt
server. This test works by faking the ovirtsdk4 Python module,
setting PYTHONPATH so that the fake module is picked up instead of the
real module (if installed).
However it's more complex than that because the nbdkit plugin also
expects to talk to a working imageio HTTPS server. Therefore
2016 May 04
9
[PATCH 0/8] python: PEP 8 fixes
Hi,
this series cleans up the Python sources, either static or generated,
including also tests, to make them PEP 8 compliant; see
https://www.python.org/dev/peps/pep-0008/ and tools like pep8.
Almost all the issues reported by pep8 are fixed, reducing the issues
from 3818 to 7.
The changes should have no effect on the actual code, while it will
help Python users with consistency with other
2007 Mar 28
2
[PATCH 2/3] User-space grant table device - main driver
A character device for accessing (in user-space) pages that have been
granted by other domains.
Signed-off-by: Derek Murray <Derek.Murray@cl.cam.ac.uk>
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel