Questions about getting data, files, images etc. from various formats into a form that can be read, tranformed and manipulated by Mathematica

learn more… | top users | synonyms

0
votes
0answers
70 views

How to prevent space trimming when importing HTML with ImportString?

I am importing a HTML-formatted string with ImportString[string, "HTML"] to properly parse all HTML-escaped characters like ...
2
votes
3answers
116 views

Importing and saving .csv files as variables with the original filebasenames

I have a modest number of .csv files that I want to import into mathematica. I would like to save their contents as their filebasename for use throughout my notebook, but I am running into errors as ...
3
votes
1answer
287 views

Import a table from a text file or string

XYScan produces results in the following form (as *.txt): ...
0
votes
0answers
29 views

Save lists to re-open with Mathematica [duplicate]

I want to save a result of a computation in a file to re-open then in Mathematica in a new session. What is the most efficient and simple way to do this? To be specific, I am using ...
2
votes
1answer
123 views

Fourier of List

I have such a problem. I try to evaluate and plot the spectrum of large list, and this is what I get: ...
3
votes
2answers
122 views

Troubles importing date and time from CSV file

I'm trying to import CSV file with the following format: 20150803 00:00:01.649,1.09675,1.09678 using this code: ...
29
votes
4answers
2k views

How can I import a huge CSV file quickly?

I have two CSV files, each one is around 1 GB of data. When I use Import["file.csv"], it takes a very, very, long time to import the data. So how can I accelerate ...
0
votes
1answer
197 views

Network/Graph Visualization read edgelist

I have what it seems to be a very trivial question, but after searching for hours I was not able to find an answer, so I am asking here. I have an edgelist for a graph, a 2 column csv file with id1,...
2
votes
1answer
44 views

Import variable assignments from external files into different contexts

(I use Mathematica 9.0.1 on OS X 10.10.5.) I have two text files. One is named file1.txt with the contents a = 4 b = 15 c = 23 ...
1
vote
1answer
238 views

Import camera parameters and data from *.sif image files? [closed]

By default, Andor's line of scientific cameras saves data in an apparently undocumented *.sif format. Are there any Mathematica packages or code that can help import these data? I've inherited an ...
1
vote
2answers
70 views

How do I import a non-directed graph in graphml format?

I have created a graph with undirected edges, and I'm trying to import it into Mathematica. However, when I import it, I get directed edges. ...
1
vote
0answers
86 views

Import a column of data, make a sum on them [closed]

I import a data file, then do calculation on it and after that I want to sum on my output data. Here is my sample code: ...
0
votes
1answer
37 views

Import n'th data from a file and do calculation on it [closed]

I want to import a n'th data from a data file and then do some calculation on it. Here is may sample code: ss = Import["myfile.data", {"Words", 3}] gg = ss + 1 ...
0
votes
0answers
60 views

Using Import during initialization, i.e., in an init.m file

I am trying to import a list of directories from a file during initialization. I wrote a package that defines a function to import the file. When I test the function in a notebook or execute the <...
0
votes
0answers
66 views

Automatic import of Maple expressions into Mathematica using MathML

I'm would like to automate a process so as to convert Maple expression into Mathematica expression. For the moment, thanks to the function ...
2
votes
1answer
64 views

Import tabular text data

I have a text file created with a bash script I wanted to read the data avoiding the first line. I have written few dirty codes, but I wondered if anybody can do it in fewest possible nice one ...
2
votes
0answers
148 views

import of a opj file (Origin)

Is there a way to import a file of opj-type? Or do you know a package to convert the data? The Import[] function seems not to know this format.
3
votes
0answers
54 views

Importing binary structured C++ data file

I am trying to import a binary data file. It seems that BinaryReadList would be appropriate? However the data file is composed of c++ structures like this: ...
0
votes
0answers
34 views

Access interactive web forms [duplicate]

I would like to communicate with interactive web forms, e.g., get the same HTML response as if I had clicked a "select" button and then clicked a "submit" button on a web page. This is for automated ...
7
votes
1answer
138 views

Reading NIfTI-1 files

How can I read NIfTI-1 files (.nii extension) in Mathematica? Are there existing tools for this?
3
votes
3answers
107 views

Why does Import[#, “ImageLinks”]& fail?

I'm having difficulty with Importing urls embedded in a site (with and without pagination). This command: ...
2
votes
2answers
221 views

Can not generate graph using smooth kernel distribution

I am a newbie to Mathematica so this question might looks silly. I want to generate a smooth kernel distribution graph for this set of data. The data I uploaded has two columns, the first column is ...
5
votes
1answer
125 views

How to analyze all the data in a directory

I am trying to import, analyze, and save all the .txt files in a specific directory. I can do this with a single .txt file using the following code: ...
4
votes
1answer
204 views

Problem exporting and re-importing STL file

I wrote all code and there're no errors in code. Result of code is like first picture(left). But I can't Import that structure. The result of import stl file is second one(right one). How can I import ...
1
vote
0answers
66 views

Create set of data from vector curve [closed]

I need exactly what is written in the title. Suppose we have some curve plotted: p = Plot[Sin[x],{x,0,2pi}] now we save that as vector graphics: ...
0
votes
1answer
72 views

Constructing a grid of individual plots for data imported from a list of files [closed]

I have to plot 6 data plots (ListPlot) in a GraphicsGrid from 6 different files (each data file has four columns of which the ...
2
votes
0answers
53 views

Error importing MBOX file

I am trying to import the mbox file generated by gmail. Using the Import command. ...
1
vote
0answers
71 views

Why is BinaryReadList faster than BinaryRead? [closed]

I work on a package for Mathematica which reads some binary data from a file. I use BinaryRead to read data from the file, but it looks like ...
1
vote
1answer
152 views

Strange behavior: Cannot import data as MP3 format anymore

I am having the strangest problem since a day: Mathematica is no longer (after a reinstall) able to import MP3 files. I think these details should not be relevant, but they are all there are: It ...
8
votes
1answer
184 views

Reading a HDF file im Mathematica

Bug introduced in 8.0 or earlier and persisting though 10.2 On OS X, the problem is present in 9.0 but not in 10.0, 10.1 or 10.2. I am trying to read a HDF file in Mathematica 9 on OS X and get ...
0
votes
0answers
63 views

Getting Boston Marathon Data [duplicate]

I am trying to use Mathematica to analyze the data given by the Boston Marathon concerning running time, etc. The website http://registration.baa.org/2015/cf/Public/iframe_ResultsSearch.cfm gives a ...
3
votes
1answer
109 views

How to import several files at once?

I tried to import multiple files at once. Following this topic my code is files = FileNames["*.phz", NotebookDirectory[]] neki = Import[#, "Table"] & /@ files ...
3
votes
0answers
125 views

Importing large number of frames form Video - improved method?

I am trying to work with large numbers of frames from a video (30000+). I see there are a number of answers out there, but I find none of them satisfying - see below for details. I understand from ...
1
vote
2answers
140 views

Doing same operation on multiple files

Is there a way in mathematica to do same operation on multiple files at once? And preferably have the output in a table or list form? I want to do the following operation preferably in few non-labor ...
2
votes
0answers
85 views

Is there a way to specify which kernel is used to import files (SOLVED)?

Following up on a previous question in which I encountered a memory leak in the JSON importer I have created a SandBox script that will run the Import and analysis on a separate kernel, which be ...
1
vote
1answer
90 views

Importing SQL view vs table

I am trying to import a SQL view not a table in Mathematica. The command: SQLSelect[conn, "DataByYear"] This will correctly bring in the table. However using the ...
2
votes
0answers
67 views

I can SystemOpen but I can't Import an online file (Internet and Intranet)

Thank you MarcoB and Pickett. I am currently using the Mathematica trial version on my laptop since my company's enterprise version will take 2 more weeks to setup because there are a lot of hoops to ...
1
vote
1answer
59 views

Using Get function to return a specific expression

I am trying to use Getto import data saved as a .nb document. The problem is Getevaluates all expressions but only returns the ...
4
votes
2answers
140 views

Reading from a file: complex number with small imaginary part

I'm trying to read a matrix from the next file: 1+1e-18i 24 42 23.43e-23i using u=Import["file.dat","Table"]; and then find, ...
6
votes
2answers
145 views

Possible memory leak when importing JSON

Bug introduced in 10.0 and persisting though 10.2.0 This problem that I would like to resolve is how to free memory used Import a file when the file is no longer in use. I have a project in which ...
2
votes
2answers
253 views

Import a column of data, make a matrix from it and export it WITHOUT curly braces

I'm new here and with Mathematica, too. I want Mathematica to import data from a txt file (it has one column of data). These entries are z-values. From this I want to make a matrix - 508 entries make ...
2
votes
2answers
159 views

Applying transformations to data coming from an STL file

I am very new with the use of 3D graphics in Mathematica, so my question might be very naive. I need to Import an STL file, apply transformations to it (rotation and translation), and export it back ...
1
vote
0answers
40 views

How to avoid import evaluation until if wil return true

My goal is to import a data from url that depends of 1 parameter, this initialy value is null or undifined en yo have to selec some popup and then the variable has value, what is the method to do that?...
1
vote
0answers
40 views

Imported variables (.mx) are emptied occassionally (Linux, v10.0.2)

I have a severe problem with variables being "emptied" occassionally. I am not able to reproduce the behavior but this is basically what happens: 1) store list list...
7
votes
2answers
120 views

Why doesn't Import work with XOWA offline Wikipedia database?

I'm having trouble with importing HTML from XOWA offline wikipedia database. I set up a local server for datamining, but I can't access it with Mathematica. I can request a HTML page with ...
3
votes
0answers
104 views

Use of MuPad code into mathematica

Does somebody have experiences so as to transform a MuPad code into a notebook into Mathematica? I would like to export equations written in MuPad to Mathematica.
-3
votes
1answer
100 views

Loading CSV file is slow

I'm trying to import a CSV file that contains the latitude and longitude of some USA routes, but the import process is very slow and Mathematica spent about 10 min importing it. A link to the file ...
3
votes
1answer
201 views

How is Precision of Imported Data managed?

I am working on a financial/banking type application and part of the work is to import numeric data of 15 to 20 digits of precision. I am having trouble determining the best way this should be done. ...
0
votes
2answers
122 views

String quotes elimination

I'm trying to import a .csv file that contains some points which are geo-positions, but the import gives me the points wrapped in quotes. Is there any method to get them as pairs of real numbers? I'm ...
2
votes
1answer
65 views

BinaryWrite negative numbers [closed]

testList = {1, 2, 3, 4}; file = "test1"; BinaryWrite[file, testList]; BinaryReadList[file] Close[file]; Gives {1, 2, 3, 4} ...