Hello,
I need to read in a csv of about 360.000 lines with date and numerical
values. Attached is a sample excerpt of that file.
So far I did:
CODE
// read in
tic
mydat = csvRead('dat04-2011.csv', ';', ',', 'double', [], [], [], 6);
toc (= 5,213 secs)
mydat = mydat(:,2:6);
tic
> None. After modifying the default parameters, only forthcoming figures
> take them into account. Already created figures stay as they are.
But except the empty clf() there are none of my figures at this point. All
my plot functions are following after this...
However putting the clf() below
Under Linux I have the problem that all Scilab application (console,
scinotes, help, figures) have the same icon in the taskmanager, which makes
it very cumbersome to navigate between them.
Is this just me?
Any way to change this?
Note that the windows them self (in the upper left corner) do
> Have you tried printsetupbox() (for the default parameters) or
> printfigure(i) for printing parameters only for a given figure?
Both of these involve the GUI and user interaction, which I BOTH want to
avoid...
Furthermore printsetupbox() doesn't seem to have an effect on the saved pdf
and
in
> Regarding presenting a link to the file in the console, you should at least
be able to print its
> full path (including file name) in the console.
> This can then be copied and pasted in Windows to conveniently open it.
Yes, this is what I'm doing already.
But ofc a link to click on is way more
Hi Samuel,
thanks for the hint, that works nicely.
Regarding xstring is there a way to place it relative in the graph?
I.e. not at a fixed axis position, but at e.g. lower and left 10% of the
graph?
--
View this message in context:
> I am afraid that you are making still worse the already very bad situation
about
> legends(), legend(), captions() and the leg= plotting options, that all
> basically
> do the same thing, but all with pitfalls: http://bugzilla.scilab.org/5371
Ah, I wasn't aware of this...
> a) to actually
Hey All,
I have this code to print some information in the graph:
// Save info as string
infobox(1) = msprintf('Min V %.2f V \n',min(log_data(:,3)));
infobox(2) = msprintf('Max V %.2f V \n',max(log_data(:,3)));
infobox(3) = msprintf('Capacity %.2f Ah\n',amphrs);
infobox(4) = msprintf('
Hi Samuel,
thanks I already figured it out with demo_gui and by searching the archive.
So for the record:
For my case I needed to create 3-axes:
1 for each extra y-axe and one "virtual" to get the x-axe in its own color
scheme.
This is the code I ended up with:
--
View this message in
Then I would go with just "US" (my opinion).
cheers
--
View this message in context:
http://mailinglists.scilab.org/Scilab-users-SEP-upgrading-weekday-tp4036719p4036804.html
Sent from the Scilab users - Mailing Lists Archives mailing list archive at
Nabble.com.
> OK. So, instead of an option, we could use a prefix, that will be even
> handier, like in "US7/24/2017". It could be specified just with
> "US"+myDate
> instead of myDate,"US", without having to think about the place of the
> "US" option wrt the"long"
> one.
> We could use "US " (with a space)
Hello,
I have this problem that when I start scilab from my startmenu, the console
doesn't accept any input and when I execute a script (from scinotes) scilab
crashes.
However when I start scilab from the terminal "scilab &" everything is fine.
Any clues, is this a known issue?
Scilab 6.0.0.
Thanks Jasper & Rafael, these solutions work great!
--
View this message in context:
http://mailinglists.scilab.org/Can-this-loop-be-avoided-tp4036792p4036801.html
Sent from the Scilab users - Mailing Lists Archives mailing list archive at
Nabble.com.
> Then, for a big subset of dates, there would not be any way to
> distinguish it from DD/MM/,
Yeah, thats the problem with this format (and not only in scilab).
> unless for instance using a distinct separator: MM\DD\. Not sure
> that this would be actually ok.
> Would it? IMO, a
Hello All,
I have this for loop:
for i=1:size(log_data,'r')-1
energy(i)=(log_data(i+1,1)-log_data(i,1))*log_data(i,2)*log_data(i,3);
end
The rows / loopsize are only a couple of thousands, so it is not that big of
deal, still I was wondering: It is possible to do this w/o a loop?
cheers
Hello Nikolay,
thanks for the prompt reply!
Under Plasma5 I can just check the "Run in terminal" option which also works
then.
However I also replied on the bug, hopefully it will be fixed soon...
cheers
--
View this message in context:
Hello All,
I want to save my figures automatically (from the script) as landscape DIN
A4.
xs2pdf(gcf(),'result','landscape');
Works fine so far, however I have problems defining the (paper) size. I
found only:
"figure_size:
This property controls the size in pixel of the screen's graphics
Before my printing commands I'm setting up some defaults like this:
// Visualization
clf();
// Set some defaults
defaxh = get("default_axes");
defaxh.font_size = 3;
defaxh.title.font_size = 4;
defaxh.title.font_style = 9;
defaxh.x_label.font_size = 4;
defaxh.y_label.font_size = 4;
I find it confusing that only "DD/MM/" doesn't require a leading zero,
while all others do...
Also there is no support at all for the us date format (MM/DD/). Not a
fan of it, but users from the USA might appreciate it.
cheers
richard
Samuel GOUGEON wrote
> Hello,
>
> The new
> Under Windows, the proper Scinotes icon on its top left is also the one
> shown in the task bar.
Scinotes has its proper icon in the window, but not in the taskmanager.
It would be interesting to hear from other linux users, if thats only me or
if others have the same problem.
> The console and
Hello All,
thank you all for the quick and numerous replies!
I went with Samuels version.
However while trying to understand the syntax and looking at the help:
https://help.scilab.org/docs/6.0.0/en_US/csvRead.html
I stumbled over:
regexpcomments
a string: a regexp to remove lines which
Hello fellow scilab-users,
I'm writing a script to read and process files, which are constructed as
follows:
PCB: 007
ASM: 000
LOT: 0
FW: 1477971088
CH1: AMPS 10A
CH2: VOLT 60V
SMPL: 0064 0125Hz
DESC: 12V CU LOG
UTC TIME SEC ,CH1 AMPS DC ,CH2 VOLT DC
1497812372.910, 8.609146E-03,
this topic.
In addition, it was already dealt with in some quite recent threads in
this mailing list. You may have a look to the archives.
Regards
Samuel
Le 27/06/2017 à 00:51, Richard llom a écrit :
> Hello fellow scilab-users,
> I'm having a hard time creating a plot with two y-axes. This is wha
Hello Clément,
I'm using Plasma5 and KWin, this is how it looks for me on the taskmanager
http://i.imgur.com/7ABrKlL.png
But while doing Alt+Tab I do indeed see the correct icons, so this might be
a problem of my taskmanager... hmm
Thanks for the reply
richard
> On Linux, depending on your
Hi Samuel,
I figured I had to customize the datatip text anyway, so the missing z-value
didn't really matter in this case...
--
Sent from:
http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html
___
users mailing list
Hey all,
@Denis
Very strange. For me it doesn't change if I strip the header of or not, I
get both times an error...
@Samuel
For me it unpacks a ~3 MB big file.
@Eric
yes, I'm unzipping them ...
--
Sent from:
http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html
Hello,
when trying to read in this file:
ftp://ftp-cdc.dwd.de/pub/CDC/grids_germany/monthly/radiation_direct/grids_germany_monthly_radiation_direct_201706.zip
with:
M = fscanfMat('grids_germany_monthly_radiation_direct_201706.asc')
I'm getting an error message. I suppose there is something wrong
Nvm, figured this one out. I will just plot a single point on the spot and
then use datatips on this one...
--
Sent from:
http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html
___
users mailing list
users@lists.scilab.org
In my map / grayplot (see other thread), I would like to insert a datatip.
However from what I read in the help, grayplot doesn't seem to be supported
at all ... :-(
https://help.scilab.org/docs/6.0.0/en_US/datatips.html
Any clues, is there an alternative way?
regards
richard
--
Sent from:
Thanks Rafael!
Never would have guessed this one (a.rotation_angles=[0 0];)!
--
Sent from:
http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html
___
users mailing list
users@lists.scilab.org
Ok, I corrected the syntax and it works now with regard to the nans:
[a,b] = find(asc_data==-999);
asc_data([a;b]) = %nan;
The black color btw, seems to be from the edge color, if I do
surf(asc_data,'edgecol','white');
it is all white.
How can I turn the egdecolor completely off? preferably via
Hey Rafael & Samuel,
thanks for the replies.
However I'm really having a hard time to process this data.
This is the raw data in question:
ftp://ftp-cdc.dwd.de/pub/CDC/grids_germany/monthly/radiation_diffuse/grids_germany_monthly_radiation_diffuse_201601.zip
My minimal script:
asc_list =
Actually, I still have a hard time to properly display germany.
a = 1:size(asc_data,1);
b = 1:size(asc_data,2);
grayplot(a,b,asc_data)
neither
grayplot(b,a,asc_data')
puts it in the right direction...?
Reference:
Ah, thank you, this looks good!
With my syntax:
[a,b] = find(asc_data==-999);
asc_data([a;b]) = %nan;
I was occasionally still seeing -999 values in the plot (although they
weren't in asc_data), I suspect some memory issues maybe...
However with
asc_data(asc_data==-999) = %nan
it is working on
On 29.11.17 9:44, JLan wrote:
> On 28.11.2017 18:58, Rafael Guerra wrote:
>>
>> In Win7 Scilab 6.0.0 it only worked with Jan's recommendation
>> (replacing -999 to -9), with or without header.
>>
>> The original file seems to have numeric data lines with total number
>> of characters varying
Still, kind of 'meh'. Because this way I cannot access the z-value...
Is there a way to align the text in the box (instead of centered)?
regards
richard
--
Sent from:
http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html
PabloF wrote:
> First of all, i cannot run scilab 6.0 in Ubuntu 17.10, gives
> GTKLookAndFeel error that was adressed in the past, but not resolved.
>
I cannot reproduce on my linux machine, but I'm also not using Ubuntu.
However the error is kinda strange, since Scilab doesn't use the Gimp
Hi Samuel,
I need the number in "kWh", but no digits after the comma.
Postprocessing with strcat(s," ") is a nice idea.
Is there a function to split the number to the power of 10 factors?
Eg. 2725977 becomes
[2 , 725 , 977]
Then it would be really easy. :-)
Thanks
richard
--
Sent from:
Hello,
I'm trying to read in a file with whitespace separated values, with
[log_data, comments] = csvRead(log_file,ascii(32),'.','double');
However I'm constantly getting this error:
Warning: Inconsistency found in the columns. At line 2, found 11 columns
while the previous had 5.
but with
Thank you all for the replies!
This is my solution now:
// Wrap around at June 1st
ix1 = find(log_date==datenum(log_data(1,3),06,01))
ix2 = [ix1+1:size(log_data,1),1:ix1];
dat2 = log_data(ix2,6);
(which is much easier to read :-)
--
Sent from:
Hi all,
thanks for the replies, fscanfMat() does work fine.
I suspected something like this with the changing spaces between the values,
but had hoped csvread would concentrate multiple separators - but then again
in an csv with several ',' one would indeed expect it to treat these as
indvidual
Hi all,
I have a big matrix, which I want to surf plot. However there are actually
only values for a non-rectangular shape and i want to blank out those other
values (which are -999 by default).
[a,b]=find(M==-999);
M(a,b) = %nan;
surf(M);
However this gives me a weird all-black surf plot, with
ot;,";";":",";";",",";"],[],[],2)
> tv=datenum(tt(:,3),tt(:,2),tt(:,1),tt(:,4),tt(:,5),0)
> td=datevec(tv)
>
> Jan
>
> On 07.11.2017 15:38, Richard llom wrote:
>>
>> Hello,
>> I have logfiles in the
Hello,
is there a function available to shift indices?
E.g. I have
aa = [1:10]
and want
bb = 6. 7. 8. 9. 10. 1. 2. 3. 4. 5.
This is what I come up with:
log_data2 = zeros(log_data);
log_data2 = log_data(4001:size(log_data,1),:);
Hello,
I have logfiles in the following form:
DESC: AAA 2017
Datum;Zeit;kWh
01.01.2017;06:00;419,942
01.01.2017;07:00;513,273
01.01.2017;08:00;478,268
01.01.2017;09:00;711,572
01.01.2017;10:00;606,592
01.01.2017;11:00;594,92
01.01.2017;12:00;594,92
01.01.2017;13:00;524,933
...
I can read these in
Hey,
is it possible to have this
msprintf('%.f kWh',2725977)
output something like "2.725.977 kWh" or even better "2 725 977 kWh" (with
thin spaces)?
Thanks
richard
--
Sent from:
http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html
On my Linux machine it is also working as expected.
System:Host: cray3 Kernel: 4.12.4-1-CHAKRA x86_64 bits: 64 Desktop: KDE
Plasma 5.10.5 Distro: Chakra
Machine: Device: desktop Mobo: ASUSTeK model: A88XM-PLUS v: Rev X.0x
serial: N/A
UEFI: American Megatrends v: 3003 date:
>> Can you provide a minimal code snippet to reproduce?
> t1 = 1225; t2 = 3245;
> tau = 3/2 * ( t2 - t1 )
> theta = t2 - tau
>
> s=poly(0,'s')
> G=syslin('c',1.72/(1+tau*s)*(2-s*theta)/(2+s*theta))
> bode(G)
>
This code snippet runs fine for me on linux and win10.
Judging from other linux
Hello fellow scilab-users,
I need a script to read and process log-files, which are constructed as follows:
23-05-10 10:00:45
SYS:*H
23-05-10 10:00:44 *H
Flow 0. l/h
UP:51.1,DN:00.0,Q=11
FLOW: 0 l/h
VEL: 0 m/s
NET: -68x1 m3
POS: +5222x1 m3
NEG: -5290x1 m3
EFR: 0 KW
ENET:
Hi David,
thanks a lot for your suggestions! I will try it out and come back to you.
With best regards
Richard
Am Mi., 10. Mai 2023 um 10:58 Uhr schrieb Richard Llom :
>
> Hello fellow scilab-users,
> I need a script to read and process log-files, which are constructed as
> follow
50 matches
Mail list logo