Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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

8
votes
2answers
195 views

What's the fastest way to read a simple numerical list?

I have a large .txt file for which I need to do some data analysis. I've been working on it for a while, and the analysis part has got faster and faster so that most of the evaluation time is now ...
1
vote
0answers
63 views

Truncated tweets texts

I use the Twitter command twitter = ServiceConnect["Twitter", "New"] listTws = twitter["TweetSearch", "Query" -> "Trump", MaxItems -> 10]; For example, the ...
2
votes
1answer
75 views

Import data file stored on Wolfram Mathematica Online into Mathematica Desktop

Is it possible to read a data file stored in a folder on Wolfram Mathematica Online into the desktop version of Mathematica? If so, how is the location/url specified?
0
votes
0answers
39 views

Export a big matrix with variables and functions

I googled a lot but didn't find a solution that works for me. The thing is, I have a very big matrix, est. $8000 \times 8000 $ in size and bigger. The calculation of the matrix takes a lot of time, ...
1
vote
1answer
45 views

How can I determine how an Import/Export format works?

Questions abound on the MSE about how to get a certain import / export feature to work as desired. For instance, here's one that popped up recently: How can I standardize the coordinate origin for ...
8
votes
3answers
216 views

How can I standardize the coordinate origin for exported/imported outlines?

There is a widely known trick of converting letters to curves: ...
0
votes
1answer
60 views

Import XML link from ECB and extract time series

I would like to extract the time series from a XML link provided by the ECB. Unfortunately, I am not able to extract the data time series. May someone be able to help me please? I start to import the ...
0
votes
0answers
53 views

Problems importing data file

I'm having trouble importing a CSV file. The CSV file doesn't have simple dimensions, some rows may have many more columns than others. From my imported file I cannot access the ...
0
votes
0answers
39 views

Load tiles from folders for neural network

I would like to initialize a net with some images/tiles classified like this: ...
3
votes
0answers
56 views

Find Import/Export format data

Often Import related questions come up, for which I'm always wanting to inspect the proper import function used to see what ...
2
votes
1answer
255 views

Empty field “\”\“” In CSV Import Problem

I have a huge CSV data, with the format like this: "5";"8";"2803"; "";"6";"2793"; I import the data with this code: ...
5
votes
0answers
59 views

Problem to import numbers longer that 19-digit with “JSON” and “RawJSON”

MMA 11.0.1.0 (Windows 10, 64-bit) I see that "JSON" import can be buggy (154245), so my question is simple: can the following behaviour be repeated and, if so, is it a bug? (excuses if I've missed ...
3
votes
2answers
158 views

Import text outlines from PDF format properly

Bug introduced in 10.0 and persisting through 11.3 I am attempting to implement this: How can I wrap text around a circle? But I need Unicode support. Unfortunately, in my case, this gives a broken ...
1
vote
2answers
69 views

Importing data from a single line

So I have a textfile looking like this: 0.15 0.2 10 0 0 0 0.2 0.5 0.1 0.01 100000 1000000 100000 Now I want to Import the third entry of the line. I have tried ...
9
votes
4answers
1k views

How to convert a string having nested parentheses into an expression?

I am a Wolfram Language/Mathematica beginner and trying to convert STEP ISO10303 commands into geometrical regions. A simple command looks like ...
5
votes
1answer
88 views

Import expression for function definition inside a Module of a Package

I've been struggling on this problem for quite a while, but I still don't understand why Mathematica is unable to recognize a function definition where the rhs is an ...
0
votes
2answers
45 views

Reading a tabulation of data with brackets and commas: OpenRead

While I can read a data file containing the one/multiple line(s) of 1.314 -4.32 6.44 342.3 using ...
0
votes
0answers
41 views

GeoTiff data import problem, bug?

I imported land cover classes from a GeoTiff file created in QGIS, where the classes are coded by discrete values (NLCD nomenclature). But it seemed the import function mirrors the values (maybe a bug)...
1
vote
2answers
192 views

Importing data from a text document

I'm trying to import data from the output of an old nuclear physics code. The data is tally results of particles crossing particular geometric cells. The output is generated with a great deal of ...
0
votes
1answer
70 views

duty of contourplot for lists and import data containing $\pi$

We have two lists with plot: ( Because they are not very short we uploaded list1 and list2,here and here) In some regions the ...
2
votes
1answer
81 views

Extract information from webpage

If you browse this page for instance, you'll notice at the bottom in gray, a line with Contributor: Name < email > Certainly for security reasons, the email does not appear in the source code. ...
0
votes
0answers
18 views

Importing all .dpt files in a folder, combine the second columns and save as .xlsx [duplicate]

I have a folder of 457 .dpt files, which I would like to import in to Mathematica, extract the second column, and combine all 457 into one array, to then save as a .xlsx file. I just can't get the ...
0
votes
0answers
90 views

Batch processing of data files

I have a large set of data files containing x-y coordinates. I have written a notebook to extract angles and other relevant lengths from a single data file before exporting the results into a new ...
1
vote
0answers
24 views

How to enter solutions in LHS of an equation using loop to check RHS [duplicate]

Suppose I get 1 million values of a, b after solving the equation ax+by^2 =0. Then how to again put the values of a and b in the LHS of the given equation using a loop in order to check if the RHS of ...
3
votes
1answer
39 views

Specifying that LocalObject should use MX

.mx is blazingly fast relative to .wl(.m) Unfortunately, it is not terribly portable. Word-on-the-street is that it's cross-system compatible, but not necessarily cross-version or even cross-point-...
4
votes
1answer
92 views

Import from url question — “Cannot import data as Graph6 format”

When I import url, there will show the folling message: "Cannot import data as Graph6 format" The codes as following: ...
2
votes
1answer
83 views

How to paste in Wolfram Cloud app on Android?

I am using the Wolfram Cloud app on Android and have copied the url of an image that I would like to import. However, I am unable to find a paste menu item or load the paste menu from a long press as ...
6
votes
0answers
137 views

How to create TAR archive without top-level folder?

Mathematica has the handy CreateArchive function, which allows you to efficiently create a TAR archive from a directory. However, I see no way of specifying not to ...
5
votes
0answers
180 views

How to import an HEIC image?

As of iOS 11, iPhones save images with a new compression format HEIC. Now all my photos are all in this format and I'd like to import them to Mathematica but this is not a supported image filetype. ...
2
votes
2answers
48 views

Getting line number based on regexp match or Importing data with variable header size

I have a text file with structure: ...
3
votes
1answer
309 views

How can I work with larger-than-memory hdf5 files

I am using Mathematica 11.0 and am trying to work with large .h5 files. Does anyone know if it's possible to work with files that are larger than the amount of available memory? I'm hoping that ...
2
votes
3answers
487 views

Export, Import and extra curly brackets?

list= {{}, {200, 200, 200}, {}, {201, 201}}; Export["list.csv", {list}, "csv"] data = Import["lnumber.csv", "csv"]; The result of this export and import is an ...
1
vote
0answers
26 views

Import form web address, and save it for next time use [closed]

I can get some information by data=Import["http://xxxx/xxx/xxxx", "XMLObject"]; Then I can get some informatin by Case function, just like th following: ...
0
votes
1answer
497 views

Importing multiple files [closed]

I am looking to import multiple .txt files. So far I have been importing them individually like this: file1 = Import["C:\\file1.txt", "Table"]; I'd like to be ...
5
votes
1answer
142 views

Reading Google Docs using the Google API

I've followed Google's instructions for generating a local client_secret.json file for programmatic access to my Google Docs, but it's not clear to me how to use ...
1
vote
1answer
62 views

read data from file having different format numbers

I'm trying to process my bank's data, which is always formed by lines with 5 fields separated by semicolons. Until recently, it used to write the numbers in the "1234,56" format, and I processed them ...
2
votes
1answer
49 views
0
votes
1answer
89 views

Loading and Plotting data

I have a three column data. First and second columns are the position of particles in a 2D plane and the third one is the angle of each particle respect to the x-axis. I want to load and plot all ...
1
vote
3answers
179 views

3D Plot of text file lines

I have a text file where each line is a data point in the form: ...
1
vote
0answers
192 views

What could be wrong when using Import for an XLSX?

I am using MMA 11.2.0.0 on Win7X64. Import["combined_analysis.xlsx", {"sheet1"}] Import::noelem: The Import element "sheet1" is not present when importing as ...
1
vote
0answers
39 views

How can I import a GIS dataset in arcGRID format?

A dataset on global aridity is published here http://www.cgiar-csi.org/data/global-aridity-and-pet-database. It's a global raster on a 10 arcsecond, so fine grained, finer than I need. Mathematica's ...
1
vote
0answers
65 views

.wlnet file is not available now?

After I run this code in Mathematica 11.2 net = NetModel["LeNet Trained on MNIST Data"]; Export["digital.wlnet", net] Then I try to import it with this code As ...
0
votes
0answers
51 views

Is it possible to create an instrumental version of an mp3 file in Mathematica?

I'm aware that it's possible to use a program like Audacity to do this and that it's most likely easier, but I'd like to know how to make instrumental versions of songs in the mp3 format using ...
1
vote
1answer
181 views

Error: Cannot import data as JSON format, Khan Academy API

Problem context I'm updating my working Mathematica Khan Academy reporting application. Since updating to 11.2 I'm having some errors importing via the Khan Academy API as JSON. Update: This ...
2
votes
1answer
90 views

Importing from txt

I have the below txt file and I want to import it in mathematica, to kick the headers and keep a neat 2 column table or matrix for ploting. Since I am new in mathematica I have trouble with finding ...
1
vote
1answer
146 views

How to make a Table from Imported data?

I have imported into Mathematica notebook data from TXT file. I would like to make it as a Table afterwards, so I can do some calculations. I wrote: I wrote: <...
0
votes
1answer
70 views

Failure in importing a list of lists

I am importing data which are formatted as a list containing lists. And I would like to keep these data in this format. ...
0
votes
1answer
57 views

Histogram3D with imported data [closed]

It's been a while since I used Mathematica. Today I tried to visualize some data that I have in a text file. There are two columns, the first with integer values between 10 and 50 and the 2nd with ...
1
vote
1answer
103 views

Problems with ReadList recognising anything other than word

I have been trying to use the ReadList function to read in a large list of words, characters and numbers. I have a file (student-mat.txt) that contains a line of words, characters and numbers all ...
1
vote
0answers
138 views

How to Export to/Import from Geogebra?

I'd like convert geometric figures between Mathematica and GeoGebra. Does anyone know how to do that?