Questions tagged [import]
Questions about getting data, files, images etc. from various formats into a form that can be read, tranformed and manipulated by Mathematica
1,601 questions
108
votes
3
answers
16k
views
Recovering data points from an image
Unfortunately, some data can only be obtained in picture form (Japanese publications anyone?). Since this cannot be worked with, it has to be converted to a dataset that can; I was wondering whether ...
76
votes
11
answers
18k
views
How do you convert a string containing a number in C scientific notation to a Mathematica number?
Suppose I have a string containing the C-representation of a floating point number; for example
s = "1.23e-5"
and I want to convert this to a Mathematica number. ...
59
votes
5
answers
13k
views
How can I extract data points from a black and white image?
Consider the following graph (source):
Is there any way to extract the data points from this image in a semi-automatic way? I have seen, and tried the methods suggested in this question, but they did ...
52
votes
2
answers
10k
views
How to build a bvh (a motion capture file format) player in Mathematica?
How to build a bvh player that can be used to visualize human motions in Mathematica? Any
idea or sample code would be appreciated.
...
47
votes
5
answers
5k
views
How to do http post in Mathematica?
The Import command lets you do a HTTP GET from a URL, like this
Import @ "http://merkosoncampus.com/wp-content/uploads/2011/05/higgs-boson.jpg"
This sends an ...
46
votes
6
answers
23k
views
How to import all files of a folder at once?
I know how to import one textfile by calling its name
filestring = Import["myfile.tex", "Text"];
Then "filestring" is a string with the myfile content.
How do ...
44
votes
4
answers
7k
views
Importing videos in Mathematica
Mathematica's Import command is purportedly able to import .AVI files. However, I find that many files that I want to import do only result in MMA showing a blank ...
42
votes
3
answers
4k
views
DumpSave for the forgetful
A few weeks ago I created a big matrix, and in order not to have to recreate it, I stored it using DumpSave["file.mx", variable]. Now I want to read it back in and ...
40
votes
2
answers
8k
views
Exchanging numpy arrays between Python and Mathematica?
I've been using np.savetxt(location, result, delimiter=',') in Python followed by Import[location,"CSV"] in Mathematica. Some of ...
39
votes
5
answers
11k
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 ...
38
votes
7
answers
9k
views
Importing a large Excel file
I'm trying to import a simple Excel file containing 94,000 rows and 52 columns of various types, mostly Reals. It's a 38-MB file. I get this super helpful error ...
37
votes
2
answers
10k
views
How to save all data in all variables so that loading it is fast?
I've got this CSV file I've imported that has tens of millions of lines in it. It takes around 20 minutes to import. I've been working with it for a while and have the processed data spread out in a ...
35
votes
3
answers
3k
views
How to place an image inside a notebook, with the minimum memory footprint?
When creating a notebook with images, like photos, the file tends to quickly get big, which makes it difficult to use the notebook format for training material containing a lot of images.
Are there ...
34
votes
3
answers
10k
views
Who is to blame: parsing UTF8 encoded JSON HTTPResponse fails
Bug introduced in 11.0 or earlier and persists through 12.0
(confirmed by WRI Support but read summary below)
Answers summary
I think we need a quick summary here to justify keeping bug.
Original ...
34
votes
3
answers
7k
views
How to read data file quickly?
I have a tab separated value file with 10 million rows each of which has three tab separated values. The first value is a string, the second an integer, and the third another string. How to read ...