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
2answers
31 views

Read timeseries data from CSV

I am new to Mathematica and have v10. I would like to you use the new TimeSeriesAggregate[tsdata, "Quarter", Total] feature to return aggregated descriptive stats. I import a number of columns of ...
1
vote
1answer
50 views

Fastest way to import a large undirected graph from .ncol format

Problem: I have a large undirected graph in the .ncol format, and want to get it in to Mathematica. I understand that Mathematica doesn't natively support the ...
2
votes
1answer
40 views

How to read import VRML (.wrl) into Mathematica

I wonder if there is a way to Import VRML objects, e.g. here. The Export of These formats is provided but I did not found a way to Import it. Can anyone help here? (The Goal is to build a model of ...
3
votes
1answer
71 views

How to import Byte values of 8bit gray scale image

I have the following image (8bit, gray scale, 1600*1200 pixels): What confuses me: 1. Dimensions[Import[imageFileName, "Byte"]] gives ...
1
vote
1answer
58 views

How to have a file Import Button in Mathematica

so I've been having trouble getting a dynamic import button to work inside of a manipulate. I have code that takes in a data set (in this case an excel sheet), and I got everything to work fine in the ...
2
votes
3answers
148 views

Remove pieces of a text file

I have imported a text file as a Table with testpbkg = Import["unweighted_events.lhe", "Table"] The file looks like this. I want just to select the text ...
1
vote
0answers
29 views

How to restrict Import & Export functions to a specified path?

We're providing Mathematica computing service to our customers. Now we're decided introducing Import and Export functions, but ...
0
votes
2answers
66 views

Obtaining arc from a DXF file

I have a DXF file that contains an arc. I did the procedure to import a DXF file and generate a Graphics3D as below: ...
6
votes
0answers
52 views

Extracting, Formatting, and Exporting Mathematica AstronomicalData - Is There an Easier Way?

If any of you have tried to use Mathematica AstronomicalData and its newest replacements like StarData, you may already be familiar with the large data issues, and the almost impossible download times....
0
votes
1answer
49 views

Importing and manipulating DXF files

Assuming I have a DXF file containing circles, lines, rectangles, ... It is possible to convert this file dxf automatically in graphics as circles, lines, points,...? Link to DXF file: DXF file I ...
2
votes
0answers
29 views

How do I import an entire column from an Excel Sheet [duplicate]

The Wolfram Documentation gives information on how to import an entire sheet, and an entire row, but not an entire column. Currently, the code I have been trying to contort into a working form is: <...
1
vote
1answer
111 views

How to transfer a notebook with imported data to another computer?

I've been working on a notebook at home with imported data from some Excel files and plan on working on it on another computer. I have the .nb file and the .xls files, and my imported data is a ...
2
votes
1answer
91 views

How to import data about mountain and then plot it?

There is a code for the Mount Everest ...
0
votes
1answer
34 views

Import create evil invisible characters when import txt including ellipsis:“…”

I'm using Mathematica10.0.2 on Win7 suppose I have a txt file named test_Import_characters.txt(http://pan.baidu.com/s/1hsvy6xQ) which contains two lines of string example(copied from http://...
4
votes
1answer
40 views

Loss of scale factor when reading/recording/rereading data in a WAV file [duplicate]

I use recorded data from an acquisition system in a wav file containing 6 channels, all data are encoded with 2 bytes in Integer 16. I can Import the *.wav data file and get all data in a Sound object ...
2
votes
1answer
56 views

StringSplit on comma but ignore commas in quotes [closed]

I'm importing CSV files and some of the fields include quoted text with commas as part of the field, rather than as a field separator. What is the syntax (or alternative method entirely) to import ...
1
vote
0answers
31 views

Import[] .obj data with per-vertex colors?

There's a somewhat standard way of including per-vetex color with obj files: Geometric Vertex[edit] A vertex can be specified in a line starting with the letter "v". That is followed by (x,y,z[,...
0
votes
1answer
89 views

Importing Data to interpolation

I have an external file in extension XLS with looks as follows: This file can be obtained by the link below: Velocidade Angular With certainty this file is generating a list inappropriate for the ...
0
votes
0answers
29 views

How to import specified current statistic to the Mathematica

There is amazing site about statistic of everything, www.worldometers.info. I want to import specified current statistic to the Mathematica for instance how to import dynamic "current world ...
1
vote
0answers
32 views

Arrange of several files

I am struggling to import my data. There are 400 files in CSV format with names organised by date like: Table1_20111003_YYYY_MM_DD_0000.dat. In each file over 20 colums and 86400 rows (seconds of ...
5
votes
1answer
88 views

How can I generate a graph from a NetworkX JSON

I have done some network generation and analysis in Python NetworkX. I do most of my visualizations with D3, but for publications I would like to generate some graph plots with Mathematica as well as ...
1
vote
2answers
68 views

Reading simple data csv file containing “e” and “i”

I can't find a way to properly read a csv file containing complex numbers in the following form: ...
7
votes
2answers
512 views

How to speed up interpreting numbers from strings?

In processing a large text file I have batches from ReadList of 100,000 Records of the form. ...
1
vote
0answers
44 views

How to Import file from subdirectory of ZIP file?

I have a "ZIP" file that contains directories. Import["arch.zip", "FileNames"] (* {"subdir\\test.txt"} *) However, ...
3
votes
0answers
58 views

Parsing a caffe prototxt file?

Caffe has its own visualization tools, for instance you and draw all the layers in a network easily like so: But I wanted to analyze a network structure myself in mathematica, so I started to write ...
1
vote
0answers
74 views

decimal point changes in mathematica after importing data from excel

I am trying to import data from excel into mathematica. It works fine except that the values of all the variables after the import into mathematica change at 6th decimal point. For example, variable ...
1
vote
3answers
100 views

Importing data from notepad to mathematica

I have a set of numbers in notepad that I want to import into Mathematica as a list. I could do this manually, but it will take forever, and my hands are getting tired. My issue is that I'm trying to ...
1
vote
1answer
99 views

How to read a part of huge matrix saved in a TXT file as single expression?

I saved a huge matrix of numbers with dimensions {400, 4001, 2} using Put and got a TXT file formatted in the following way: <...
0
votes
1answer
32 views

Graphics, Import and Inset combined

I need to write a word on a figure, which I have saved as fig.pdf. 1) I import the pdf file to mathematica: a = Import["fig.pdf"][[1]]; 2) Following the ...
0
votes
1answer
72 views

Extracting the data of each frame from an AVI file

What's the most straightforward way to "Import" the data of an AVI video? For instance, if I record a 30 frame per second video, then after 10 seconds I would have 300 frames. How can I import the ...
0
votes
1answer
55 views

Manipulation of imported Datafile

Since I am solving a differential equation in a for loop with NDSolve ...
1
vote
0answers
60 views

Convert Java code to Mathematica [closed]

This is in reference to this question from Math SE: here. Is there a way to import Java code into Mathematica? I'm looking for either: A conversion utility A method of manually converting A way for ...
0
votes
1answer
50 views
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
91 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"...
3
votes
1answer
118 views

reading FIT files in Mathematica

Has anybody been able to parse FIT files in Mathematica? The format was developed by Garmin and is used to store data from GPS devices and workout equipment. Details can be found at https://www....
0
votes
2answers
52 views

How do I add the nth element for every line in a text file?

Suppose I have a text file, in this format: ...
5
votes
3answers
261 views

How to measure Sample Rate?

How do I measure the sample rate of an imported file in Mathematica? I imported the WAV file: solo = Import["solo.wav"] When I wrote: ...
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
59 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
119 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 ...
1
vote
1answer
52 views

Importing an .eps file failed in the latest version of mathematica

It was quite straight forward to import an .eps file (also pdf and other formats) into a script, with the version 10.0. that I had before; but, since I upgraded my Mathematica to the latest version 10....
1
vote
2answers
114 views

Specify the color of each residue in a protein (PDB)?

I'm importing a *.pdb file containing a single protein. Mathematica automatically produces a plot of the protein. I want to specify the color of each residue independently, in this plot. Is this ...
-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
137 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 ...