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

1
vote
0answers
55 views

How can I use Mathematica to get the translated result from the Google Translate webpage? [duplicate]

I would like to use Mathematica to automatically translate some input texts, from one language to the other one, then apply some manipulation of a string on the text. I know how to realize the ...
1
vote
2answers
70 views

How to read rows and headers separately into a dataset?

Suppose that the information for constructing a dataset is split over two separate files: one file contains the numeric data, and a second file contains the names of the columns. Is there a simple ...
1
vote
3answers
92 views

How to Import and Export as a multidimensional array

I have 10000 matrices and each matrix is 3x3. So Dimensions[data] gives me {10000,3,3}. I saved this into a file with Export["mydata.dat",data,"Table"] Then when I imported it using Import["mydata.dat"...
10
votes
1answer
4k views

How to extract sample values from an imported WAV file?

Suppose I read a file with B = Import["something.wav"] Now how can I obtain a list of sample values?
6
votes
1answer
81 views

SemanticImport and zip files

I have looked through the documentation and don't see this addressed, but since some of you seem to have knowledge of undocumented features, I thought I'd ask. There is a zip file at http://www....
0
votes
1answer
60 views

Importing data from a MATLAB file to MATHEMATICA [closed]

I have been trying to import some matrices from MATLAB to MATHEMATICA. The matrices are the output after I run the MATLAB file. I had saved that file in .MAT format and trying to import it in ...
2
votes
2answers
121 views

How to copy Coordinates of “Get Coordinates” in Figure?

I am trying to reproduce the answer here about Recovering data points from an image. I click the figure and press "Get Coordinates". I would like to copy the four coordinates by CTRL-C and then paste ...
0
votes
0answers
35 views

Why here does Import[file] produce an error LinkOpen::linke:? [duplicate]

In the folder $BaseDirectory\\Kernel I have a file init.m, who calls a customized initialization package ...
4
votes
1answer
79 views

Export and Import with special unicode characters

I exported a list of characters say: ClearAll[t, r, \[Theta], \[Phi]]; Export["hello.txt", {t, r, \[Theta], \[Phi]}, "List"]; the file has the correct symbols ...
1
vote
1answer
76 views

Getting raw data using DcRaw

I'm using dcraw program to import raw image data to Mathematica. When I use Run["dcraw -4 -D -T "image.nef"] (which converts it to an unprocessed linear TIFF file) ...
3
votes
3answers
702 views

Why does a certain CSV file import properly into LibreOffice but not into Mathematica 10.0?

I'm working on a project involving data manipulation and it involves working with CSV files. I know that the files are properly formatted as when I import them into LibreOffice, all of the columns ...
-1
votes
1answer
65 views

How to run code and do data analysis in mathematica [closed]

I am a beginner in Mathematica. I'd like to do something like the following: write code- ouput- write code- output... But when I created my own notebook and copy the code above, I don't know how to ...
-1
votes
1answer
62 views

How to import vector matrix from file? [closed]

how can I import matrix of 3 dimentional vector from a txt file? I know how to import simple matrix of number, but I dont know how to import matrix of vectors and what type of data should be in my ...
3
votes
2answers
140 views

How to Import This XYZ format file

Here is the .XYZ format file NP3D.XYZ Somehow i cannot import this file.It return an error box :- "Cannot Import Data As XYZ Format." it contains 1000 snapshot of 10 Carbon particles coordinate ...
5
votes
1answer
156 views

Efficiently importing data into Mathematica

I have a graph data file infile.txt. 3 2 0 1 1 2 3 2 0 1 2 1 3 2 1 0 1 2 3 3 0 1 1 0 1 2 3 3 0 1 1 0 2 1 3 4 0 1 1 0 1 2 2 1 ...
1
vote
0answers
34 views

embeding an image in a cdf deployment

I would like to embed an image into CDF. Import function just import the function from a pathway but I would like the image to be present in the CDF or nb file as a part of it not importing. ...
1
vote
0answers
43 views

Importing replacement rules from files [closed]

I have some replacement rules written in different files. I am giving an example with two such files. cat input1.m a1 -> b1 cat input2.m a2 -> b2 Now I ...
5
votes
0answers
32 views

Is there a way to use iframes in a notebook?

For me, mathematica online is totally unusable, but the EmbeddedServices would be great to use. I wish that these functions worked in Mathematica, is there any hack anyone can think of to get these ...
3
votes
1answer
75 views

How to Import a password protected Excel (XLSX) file?

I have a password protected Excel (XLSX) file that I would like to Import into Mathematica. Is there a hidden option in Import ...
6
votes
1answer
75 views

Reading data from Google Docs

I am working on a personal project involving a CloudDeploy[ ] that reads data off a Google Doc and then works with it. Ideally, the Google Doc is either a text document or a spreadsheet which contains ...
30
votes
5answers
4k 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 ...
2
votes
1answer
61 views

How to validate an XML file against xsd in Wolfram language?

I am planning to write a package to read data which is saved in XML format that should follow some XML schema. As part of the reading I would like to do error checking, namely schema validation. So is ...
4
votes
2answers
72 views

Excluding Specific Rows Using Import[…]

As the question states, I'm trying to import a .csv file but I would like to exclude certain rows (points which I know are bad data). This is easy when the points ...
1
vote
1answer
51 views

Non-ASCII characters in txt file can't be import correctly by Mathematica10

I'm using Mathematica v10.0.2 on Win7. I have a text file in which there are some Chinese characters and I would Import the file into Mathematica as a string by: ...
2
votes
1answer
151 views

Classifying images in mass with URLs and CSV file

I'm looking to train a image classifier with a large number of examples and categories (30,000 & 100). I would then import a file of image URLs that need to be classified, and export the results. ...
0
votes
1answer
67 views

Importing .AVI to mathematica and frame extraction

I'm trying to import frames from a video with the extension .avi, using this piece of Mathematica code: Import["video.AVI", {"Frames", {5, 6}}] But I get this ...
6
votes
1answer
167 views

Import another Notebook as if it were a Package

Is it possible to import the contents of another (existing) notebook into the current namespace in the same way that I can with a package? I know that it would be best to use a ...
25
votes
2answers
6k 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 ...
2
votes
3answers
147 views

Importing a VCF file with quoted-printable encoding

The documentation has an example importing a VCF address book file which works fine: Import[ "ExampleData/wolfram.vcf" ] {{FormattedName->Wolfram Research, ...
9
votes
2answers
497 views

Convert quoted printable aka PrintableASCII characters to UTF-8

I have several .eml email files to import. Some of them were saved as quoted-printable 7-bit encoded. I skipped through the Mathematica documentation and found ...
0
votes
0answers
34 views

What does copying Output cell using Copy As > Plain Text actually does? [duplicate]

So, an input cell after evaluation gives an In[X] := str1 = ... Out[X]:= .... If I right click on the right edge of the Out[X]'s cell, and select Copy As > Plain ...
0
votes
0answers
37 views

load NOAA ENC s-57 chart?

Is it possible to load a NOAA ENC s-57 formatted nautical chart into MMA 9.x? Particularly in MMA9.x within the MAC OS? -There does not appear to be any discussion of importing nautical charts ...
1
vote
2answers
140 views

How to cut imported audio?

How to cut an audio clip imported by the Import function? E.g. I'm interested in the content starting from the 100th sample up to the 200th. I'd like to avoid ...
1
vote
1answer
113 views

Import graphml file in mathematica

I am trying import a graphml file I created with NodeXL in mathematica in order to create a network. However when i try to import it I get the error message: "Cannot import data as GraphML format". ...
4
votes
2answers
73 views

importing a 150 MB .wav crashes Mathematica

rawdata = Import["rawdata_10min.wav"] crashes Mathematica when the file is 150 MB, but does not crash Mathematica when the file is 20 MB.
2
votes
2answers
588 views

How to Flatten and stack Efficiently 50000 Images

I have 50000 grayscale images with 56*56 pixels each one. I need to flatten images and stakck it in the same array with dimensions 50000*3136 after that export the file as .CSV. I am doing this code ...
0
votes
1answer
82 views

Importing $\LaTeX$

I have a LaTex file, and import it this way: tex=Import["texfile.tex"]; Now according to Help, this returns a notebook expression: ...
3
votes
1answer
35 views

Skipping commented in a stream from OpenRead

Is there a solution to skip comments in text files that are imported with OpenRead? I know there are solutions for Importand <...
1
vote
1answer
66 views

How to interpret and extract the information from the JSON (JavaScript Object Notation)? [closed]

How to interpret and extract the information from the JSON (JavaScript Object Notation)? I would extract the information and plot the information graphically. Please advise and comment. Thank you. <...
0
votes
1answer
45 views

How to analyze a large wav file?

I have a large wav file (100 Mb). Any operation on it is time consuming. For example, to Import it takes about 1-2 minutes. The next step seems to be to figure out how it is encoded, since WAV files ...
0
votes
2answers
90 views

How to make a graph form imported spreadsheet data [closed]

I've three csv files: v.csv for vertex data, like this: 1 2 3 ... e.csv for edges: 1,2 2,4 2,24 3,1 ... and vcoor.csv for vertex coordinates: 23.4, 35.2 23.4, 40.3 ... I know how to construct a ...
7
votes
2answers
247 views

Extracting and displaying data from GW150914 hdf5 files

Has anyone looked at the LIGO data using Mathematica or know how to do this? I'm not familiar with the hdf5 format but I've been able to import the data, consisting primarily of 131,072 floating ...
1
vote
1answer
94 views

Cannot import PDF with JPXDecode or JBIG2Decode Filters?

I am trying to what I think should be a very basic thing, which is to import a large PDF from my files into Mathematica. The long term goal is to extract images from the PDF. The original command was ...
1
vote
2answers
537 views

Importing base-64 encoded Canvas element into Mathematica

The aim of this code is to transfer a web image into webMathematica for image manipulation. Since the question here failed to resolve direct URL loading, I tried a different method of extraction ...
5
votes
0answers
81 views

why does ReadString[“fname”,term] open a persistent stream, and how to close it?

Bug introduced in 10.0 and fixed in 10.3.0 Create a file temp.txt with the following content: test1 ;;; test2 ;;; test3 ;;; ...
25
votes
1answer
332 views

Getting Mathematica.SE reputation data

I'm asking the following on behalf of Mr.Wizard. On StackOverflow I used the old v1.0 SO API and Mathematica to obtain user reputation data. Now we are no longer a tag on StackOverflow and the v2.1 ...
0
votes
1answer
59 views

Combining first 5 columns from CSV file into AbsoluteTime date

Thanks in advance for all your help. I need to import data from a CSV file that looks like : (easier to read in excel) I would like to convert the data into timestamps by creating a Table with 2 ...
0
votes
1answer
51 views

Improving performance Importing Table

I am currently working on mathematica script on a Raspberry Pi, which will periodically (10 secs) be launched by a bash script. However the runtime of my script really isn't the best. It's actually ...