Questions about getting data, files, images etc. from various formats into a form that can be read, tranformed and manipulated by Mathematica
4
votes
0answers
54 views
Importing .zip file [duplicate]
Possible Duplicate:
Importing Zip files
I have a piece of code which imports a txt file and turns it automatically into a table form. I use the following:
...
4
votes
0answers
83 views
What is the best way (lossless) to import .skp files into Mathematica?
I am using the free version of Google Sketchup and I've got a few designs in hand, which I need to be able to import into Mathematica. I saw the similar question asked by @Sjoerd C. de Vries in Stack ...
4
votes
0answers
77 views
Getting EPS imports to respect the original fill rule
One major problem in my attempt to answer to the CountryData flags question is that the way Mathematica handles filled curves differs from the way SVG and EPS style editors do. The latter two have the ...
3
votes
2answers
264 views
Check Google PageRank for a given URL
Does anyone know how to write a Mathematica function that returns the Google PageRank of a given URL?
I found a tutorial for achieving this in a bash script here, but I have no idea how to port this ...
3
votes
2answers
804 views
Importing .txt or .csv financial data
I am trying to import some financial data exported from Excel. You can find the relevant file here : Text File or CSV File
This is what the data looks like in Excel :
Using the following code to ...
3
votes
4answers
181 views
How can I get rid of extra commas in Export/Import?
Consider the following example of trying to export the following table:
Export["test.dat", {{{1, 1}, {2, 2}}, {{3, 3}, {4, 4}}}, "Table"];
Now I import to see ...
3
votes
3answers
213 views
Support for Compressed Sparse Column sparse matrix representation
Is there native support for Compressed Sparse Column (CSC) format for sparse matrices, like importing and manipulating them?
3
votes
2answers
99 views
Import[] exception possibly caused by ToString[] behaviour which I cannot explain
Let me just start by pointing out I'm a new StackExchange user as well as a new Mathematica user (started today!) I mention this as a context to my ineptitude :)
I am attempting to read through a ...
3
votes
1answer
141 views
Exporting lists to files
I am trying to write a program which will generate a list of objects and then exports it in a separate file and clears its memory. As an example I tried the following
...
3
votes
2answers
118 views
Extracting a single layer from a SHP file
I have an ESRI ShapeFile (SHP) that I've loaded. It has a number of layers which I can see the names of by using:
Import["file.shp", "LayerNames"]
I get ...
3
votes
1answer
402 views
Stream CSV files
Ram limitations make import impractical for large CSV files. Is it possible to Stream CSV correctly?
...
3
votes
2answers
137 views
Since installing mathematica 9 I can't import certain tiffs
I have a notebook written in Mathematica 8 in which I imported Tiff images and everything worked fine. Since I installed Mathematica 9, I get the error:
...
3
votes
2answers
2k views
Importing from Excel
I'm trying to import a matrix from Excel to Mathematica. My code is:
Import["desktop/stproj.xls", "xls", data, 1]
The output is some weird stuff about population ...
3
votes
1answer
54 views
Reading RData files without RLink
I am using Mathematica 8. I would like to read some RData files which I have received. I do not currently have an installation of R on the machine with Mathematica.
3
votes
1answer
88 views
Mathematica - set end-of-line characters when importing
I have a plain text file of tab-separated values that was created on a Windows machine. I want to import it into Mathematica on a Mac.
...
3
votes
1answer
163 views
Importing file with UCS-2 Little Endian codification
I'm trying to import a text file with UCS-2 Little Endian codification but I can't read it correctly. There's any hidden option to read this files ??
I'd tried with ...
3
votes
3answers
296 views
How can I change the CDF which imports the data and uses it, without execution of code
I am making an application which first imports the data from the Excel file and then uses it in the deployment of a CDF. But is it possible to change the data of the Excel file and see its ...
3
votes
1answer
147 views
Running external pdflatex command and importing the generated PDF document
There have been a couple of questions about incorporating labels and equations that were typeset in $\LaTeX$ into a Mathematica notebook. Ideally, this requires running ...
3
votes
1answer
107 views
Exporting/Importing a Table of complex numbers
I'm generating a long table of list of the form:
PN={{1,2,1+i},{3.5,2.6,2}...},{...},...
Using:
Export["PN.dat", PN, "Table"]
...
3
votes
0answers
79 views
External file Sub Matrix Import
Is there a Built-In Mathematica Function to extract a
Sub matrix from a huge external file?
Functions getting pieces of internal nested Lists, (arrays) are in place.
Example:
...
2
votes
4answers
178 views
Plotting a large number of data points
I would like to know how to plot when I have a large number of points (arround 600) in a specific format:
...
2
votes
4answers
191 views
Importing or reading data in binary format 212
I have a binary data file in format 212, and I want to import the file into Mathematica. How do I read or import binary format 212? I almost have no direct experience of working with any binary ...
2
votes
2answers
151 views
3D scatter plot from a txt file
I have a txt file with space-delimited x, y, z coordinates of several points. The points are organized into groups of unequal size; the groups are delimited by skipping a line, like this:
...
2
votes
1answer
143 views
Having problems with importing data in .dat format
I have a .dat file from FORTRAN output and I am trying to plot the results. The dat file is a series of rows with the row number as the first column. Now, every other row is empty, that may be ...
2
votes
2answers
65 views
Importing LTSpice data into mathematica
I am working with LTSpice (Discret electrical circuit ( Spice) simulator). I would like to import LTSpice ouput data into mathematica for processing and plots.
An example of a file can be found here ...
2
votes
2answers
161 views
How can I import images from a Microsoft SQLServer database?
I have a table with binary data (images) in Microsoft SQlServer. I want to import that data and convert it into Image format. I wrote the following code, but it's ...
2
votes
1answer
198 views
How to solve issue with exporting / importing data to and from Excel
Background ( simplified ):
When I export data to Excel like
...
2
votes
2answers
102 views
Importing several huge files with headers & footers
having here several files in ASCII format
http://ge.tt/91rv0Jf/v/0
I want to import, while removing headers and footers and then join the several lists.
...
2
votes
1answer
145 views
Read and filter a text file without importing
I have a large text file of a million sections. Each section contains A lines of header and B lines of numeric data.
I want to read the first and last line of B from each section (to have a list of 2 ...
2
votes
1answer
89 views
Import a file only if it contains a certain pattern
Let's say I have three files containing:
File 1:
x y z
1 4 6
File 2:
x y z
2 5 9
File 3:
x y z
5 4 8
My goal is to import the data from a file only if in ...
2
votes
1answer
120 views
Efficiently importing XPM matrix data into Mathematica
The XPM file format is an image file format. Although it is primarily intended for icon pixmaps, it can also be used to store matrix data. For example, the GROMACS chemical simulation package uses ...
2
votes
2answers
341 views
Converting numbers to integers
I've read the available documentation but I still haven't found an NumberForm -> Integer function yet. No result in this site's search, either.
Does it exist?
...
2
votes
1answer
75 views
diff-able text-only notebooks?
I would like to save my Mathematica notebooks as plain-text documents, so that I can keep them under git version control.
I thought that ...
2
votes
1answer
127 views
Beginner question. How do I read a CSV file and remove comments from it
I have very recently started using Mathematica 9.0 Home Edition and am trying to understand it as best I can so please be tolerant ;). I have a file of data (sugar.csv) which contains blood sugar ...
2
votes
1answer
106 views
How to export/import function values [duplicate]
I have a function with two variables:
f[x_,y_]:=f[x,y] = ...
I calculated some values (they are fractions like 435345345/3424242424) and would like to store the ...
2
votes
1answer
303 views
Mathematica PDF import and fonts
I am trying to put nice LaTeX labels on my Mathematica plots. I can do this manually, or by introducing an extra GNUPlot step into my workflow, but it would streamline the process considerably if ...
2
votes
1answer
55 views
Using NetLink to Import Excel File
I can import an Excel file into Mathematica easily:
But when I try from .Net it fails:
These are the commands and errors I am getting:
...
2
votes
1answer
46 views
Avoiding re-evaluation of RegionPlot3D on a second computer
After running a RegionPlot3D named "testplot" on my desktop, I followed an earlier suggestion from the forum and saved it using:
...
2
votes
1answer
198 views
Importing data sets from plain-text files and performing operations on them
I am working with a lot of daily weather files in the txt format. I need to calculate a daily quantity from each of them, e.g., daily light intensity, which ...
2
votes
2answers
146 views
Import[] bug (video)?
I have the following code:
frames = Import["myvideo.avi",{"Frames",{50,60,70}}];
This imports frames 1,2, and 3 of the video, not 50,60 and 70. It imports the ...
2
votes
1answer
219 views
Mathematica Import functions fails for data download from website
I am trying to download some data from a website that uses "java enabling" to tell me that I cannot download the data. Using
Import[ "website...", "Data"]
I get
...
2
votes
1answer
74 views
ReadList importing negative times
This is probably an easy question to answer, but I need a fresh eye... I'm struggling with processing the following file (extract shown here) It's a list of dates, and positive/negative time durations ...
2
votes
5answers
110 views
Creating ordered triplets from an Excel sheet
I have an Excel sheet of the form:
" " a b c
1 R S T
2 U V W
3 X Y Z
Where every entry is a number (except the blank quotes, ...
2
votes
1answer
112 views
Implementing a For (?) or series or loop (?) for individual results for every x to n
I'm working on improving a modeling formula and have spreadsheets worth of data to use, but my work so far has been quite tedious. I'm essentially pulling 20 rows of data from each separate sheet of a ...
2
votes
0answers
72 views
Problem with DynamicModule in code to import data from several .txt files [closed]
The purpose of the code below is to import data from several .txt files and then plot it using ListPlot. The data files are .txt files with comma-separated data ...
2
votes
1answer
236 views
Reading in Huge Text Files
I would like to read in really large text files (about 2GB) into Mathematica. The structure of the file is such that the first row and the first column are text i.e strings. Rest is all numbers. Is it ...
2
votes
0answers
201 views
Can not Import PDF
I try to import PDF and extract text from it
Import["D:\\Vegetarian MS.pdf", {"PDF", "Plaintext"}]
but with some files I have a problem like this
...
1
vote
3answers
122 views
Importing multiple files using a for-loop
once again I am stuck solving a seemingly easy problem :(
I would like to make a List of tables by importing data from several txt-Files.
Importing the data into a table works so far and I am able to ...
1
vote
2answers
252 views
Can I improve the importing speed of Excel data?
I have data in an Excel spreadsheet that has 4 rows and 1,000 columns. I am using Import as follows:
...
1
vote
1answer
196 views
Interpolate specific columns of data
I have a txt file with 3 columns of data:
x y1 y2
How do I import the file then create 2 functions, one interpolated with {x,y1} values and the other interpolated with {x,y2} values?
This ...