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
4 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: ...
2
votes
2answers
149 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 ...
0
votes
0answers
26 views

Access interactive web forms

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
70 views

Reading NIfTI-1 files

How can I read NIfTI-1 files (.nii extension) in Mathematica? Are there existing tools for this?
0
votes
1answer
54 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 ...
4
votes
4answers
192 views

Finding relevant parts in XML document

My question is about a XML document and finding parts of strings. test = Import["C:\\Users\\filename.xml", "XMLObject"] This gives the following output: ...
2
votes
3answers
77 views

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

I'm having difficulty with Importing urls embedded in a site (with and without pagination). This command: ...
4
votes
1answer
103 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: ...
10
votes
1answer
263 views

How can I read compressed .Z file automatically by Mathematica?

When I read .Z file by something like jpldatstring = Import["ftp://cddis.gsfc.nasa.gov/products/jpl/2003/jplg0040.04i.Z"] Unfortunately, it turned out that ...
4
votes
1answer
166 views

mathematica use too much memory to Import large dat file

Err... When I try to Import a .dat file by dat = Import["D:\\TIEGCM\\solar_input\\omni_m_all_years.dat", "Table"]; or ...
3
votes
1answer
84 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
47 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
61 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 ...
6
votes
1answer
164 views

How to make Import recognize a new file extension?

I've written an import converter for a custom file format, and it all seems to be working as expected, except for the fallback behavior with no arguments: ...
32
votes
1answer
2k views

Web Browsing Automation with Mathematica

I want to build a bot to automate web browsing, this mean something like: filling forms press "submit" buttons find certain text inside pages and so on... How can I do this with Mathematica? The ...
2
votes
0answers
27 views

Error importing MBOX file

I am trying to import the mbox file generated by gmail. Using the Import command. ...
1
vote
1answer
45 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 ...
1
vote
0answers
40 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 ...
7
votes
1answer
125 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
62 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
0answers
79 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
1answer
70 views

Performance of Extract-Transform operations

I'm doing simple data analysis, where I load some "date-time" data from a file. The data is a simple list, but there are 41,000 values in total. Here's a short sample: ...
3
votes
1answer
74 views

How to import several files at once?

I tried to import multiple files at once. Following this topic my code is ...
21
votes
3answers
1k views

Finding a function that fits the shape of an image

How can I find a function that fits the given shape of an image? Or instead extract a point set from the shape and then find an interpolating function fits the shape. An example image is attached.
1
vote
2answers
115 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 ...
1
vote
0answers
63 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 ...
7
votes
2answers
81 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 ...
12
votes
4answers
370 views

Unencoding encoded URLs in a function

Is there a built-in function for decoding encoded URLs in Mathematica? I would like to convert an encoded URL, for example ...
2
votes
0answers
56 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
0answers
55 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 ...
3
votes
1answer
89 views

Antialiased text in manipulate constantly re-evaluated, ignores TrackedSymbols

I am trying to display antialiased text (using the ImportString[ExportString[]] method shown here) but inside a manipulate so that the text can be changed interactively. I have found a way to do this, ...
9
votes
1answer
459 views

Mathematica 10 doesn't support path containing Chinese characters

Bug introduced in 10.0 and fixed in 10.0.2 I tried to import file in Mathematica 10 ( windows 7 system), the path contains some chinese characters. After holding ctrl+shift, and drag the file into ...
3
votes
0answers
55 views

Importing sobj sage objects?

I am working with a sage-math object. With some older versions of Mathematica it was possible to send data directly but the function doesn't work with Mathematica 9. What are my options to import a ...
1
vote
1answer
51 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
97 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
100 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
59 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 ...
10
votes
2answers
4k views

How to get Matlab data imported with the same dimensions?

I have some Matlab image data with the following dimensions (output is from Matlab): >> size(im) ans = 86 86 3 45 The data imports just fine ...
7
votes
1answer
347 views

ReadList can't read correctly

Bug introduced in 9.0 and fixed in 9.0.1 I'm trying to load some data into Mathematica from some files generated by fortran. But ReadList seems can't get the number correct. Here is a simplified ...
1
vote
0answers
33 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 ...
21
votes
2answers
2k 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. ...
1
vote
0answers
30 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 ...
1
vote
0answers
35 views

Use of MuPad code into mathematica [duplicate]

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. Thank you for your help
-3
votes
1answer
63 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 ...
12
votes
3answers
1k views

How can I transfer mathematical expressions between Mathematica and Maple?

Is there a simple way to copy mathematical expressions between Mathematica and Maple (or at least in one direction)? I mean only expressions built from numbers and predefined mathematical functions, ...
0
votes
2answers
93 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 ...
3
votes
1answer
82 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. ...
4
votes
1answer
119 views

Is there a way to embed a data set in a notebook?

I have a data set (currently a table in a .csv file). I would like to share this notebook with colleagues either as a notebook, or (even better) as a CDF document. Is there a way to embed the data ...
25
votes
3answers
2k views

Extracting values from nested rules in JSON data

I have been using Mathematica to analyse some data from the StackExchange API. It is conveniently available in JSON form, which Mathematica interprets as replacement rules. However, some of the rules ...
2
votes
3answers
125 views

Import Data using selection criteria

I imported a file (text and numbers) and made constructed this. e[[1,All,{1,2,3,4,6}]] Column 1 is the name of the state. How can I get a subset of this where, say Column 1 is not equal to "New ...