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
1,581
questions
0
votes
0
answers
28
views
Coverting .nb file code content to string type using NotebookImport
For my work I need to import the notebook and get all the contents from the code cell. For this task I chose ...
2
votes
1
answer
89
views
How to read multiple files from a directory and the text files from those files?
I have the following files names in a directory:
...
3
votes
1
answer
87
views
How to Convert WLSymbolFactory to Python String?
I'm trying to simulate with python and Mathematica, Python need to generate and save some pictures to the directory of current mma notebook, I know the function that ...
3
votes
0
answers
41
views
How to import huggingface dataset files?
The .hf file from HuggingFace's datasets library is a very popular format: https://github.com/huggingface/datasets. Is there an easy way to import these from either files on disk or their webportal?
5
votes
0
answers
129
views
How to import PDF content with sub/superscripts?
Is there any way to import text containing superscripts in PDFs correctly to plaintext? For example,
...
0
votes
0
answers
45
views
Unable to import mp4 video file
I'm running Mathematica 14.0 on a 2021 MacBook Pro (Apple M1 Max chip with 64 GB memory). I'm attempting to import an mp4 video file using the Import command. The code runs and produces a video window ...
0
votes
0
answers
36
views
Mathematica Import and orphaned file
I am having trouble with the orphaned files in the cluster.
I am using Mathematica in the supercomputer cluster for some reason. I am producing orphaned files, which means that the files are deleted ...
0
votes
0
answers
41
views
Problem Formatting Imported URL Plaintext
I created a simple Wolfram Cloud API that Imports[] a URL and returns the Plaintext:
...
2
votes
2
answers
139
views
Failed to retrieve raw data from importing InterpolatingFunction derived from NDSolve
I tried numerically solving a set of time-dependent PDEs with variables {u, v, w} by NDSolve over 2 regions with 2D grids, ...
0
votes
1
answer
104
views
Removing empty values after importing CSV file
I am trying to import a CSV file with the following structure:
the 1st column has 15 values,
the 2nd column has 10 values,
and 3rd column has 15 values.
But when I import and try to access the 2nd ...
1
vote
0
answers
75
views
Importing equations with subscripts from LaTeX and solving them [closed]
Here is a simple system of equations, copied from LaTeX:
...
2
votes
0
answers
35
views
Weird behaviour of Image`ImportExportDump`ImageReadPNG
Here is the problematic code,
...
1
vote
0
answers
61
views
How to Parse Binary .STL File Created on Ancient 32-bit Architecture
Import[fileName,"STL"] returns $Failed
The file format is so simple that one can calculate the number of triangles in the file
by counting the number of BinaryReads to reach EndOfFile.
https:...
1
vote
0
answers
60
views
Speed limitations when importing files from .zip archive
I have .m files with a total size of ~500 MB. Their import is really fast, within less than 1 second. In contrast, I may pack them into a .zip archive. The importing then is much slower, ~20 s. ...
0
votes
1
answer
118
views
Generate the full mesh of the room model
I want to import a 3d model to create a complete mesh of an interior model.
...
1
vote
3
answers
153
views
Converting Wolfram Language Scripts (.wls) into PDFs
I have just discovered the free (as in free beer) Wolfram Engine, coming with a generous licence. After playing with Mathematica for a while, and missing the notebook feature, I would like to generate ...
2
votes
0
answers
68
views
Extracting tables from .pdf
Can we construct some automated method for extracting tables from pdfs?
I can get decently far by just copy and pasting its content and splitting at newlines but it would be great if it was possible ...
1
vote
2
answers
78
views
How to disable Entities in import of PGN Chess data?
Save the following as test.pgn
...
3
votes
3
answers
87
views
Convert a string with $N^2$ entries to a rank-$N$ matrix
Suppose we are given a set of numeral data like a string that consists of $N^2$ entries, say $N$ is very large (here $N=8$ for simplicity, but $N$ can be $10^8$...)
...
0
votes
0
answers
67
views
Download html file
I want to download the data found on the following page and I am unable to do so.
https://resultados.admision.uni.edu.pe/ep1.html
I have already tried all the options I find in Mathematica but I can't ...
1
vote
0
answers
85
views
How to faithfully import all the colour schemes of a Mathamatica SphericalPlot3D into SolidWorks?
Say that we have a list of tuples called "data", where
...
4
votes
1
answer
92
views
Chemdraw (CDX) import fails to yield complete molecules for implicit alkyl chains
Mathematica has supported Chemdraw file (CDX) import since 12.1. However, there appear to be an error when side chains are defined in an abbreviated fashion (as is common in organic chemistry):
...
1
vote
1
answer
119
views
Import in Mathematica does not work
I want to import STL files as boundary element mesh.
...
1
vote
0
answers
78
views
How to import and export on Wolfram Cloud?
I created a CDF document that imports images and exports output results.
...
0
votes
0
answers
74
views
Why does the string "\" prevent a graph6 string conversion to a graph?
I input the graph6 string ...
1
vote
0
answers
58
views
Importing SVG files
I would like to import a bunch of SVG files to my notebook.
In my attempt to do so, I have used
ResourceFunction["SVGImport"][svgfile];
where "...
1
vote
0
answers
94
views
Importing data from NASA CDF files using Mathematica
At the outset, I would like to emphasize that I do not have any expertise in loading CDF data files in Mathematica.
Usually, in MATLAB the CDF files can be viewed and loaded with the help of commands ...
0
votes
0
answers
107
views
Don't understand reason for "Incomplete expression; more input is needed" message
I am exporting expressions created in MathType to Mathematica, by copying from the MT screen and using the TraditionalForm[] command. I am getting the "Incomplete expression" error message ...
2
votes
2
answers
111
views
Automate Import of files
I have a Directory where I store a number of files of the same type (eg .txt). They contain tabled numeric values.
I would like to write a routine to import them automatically and store them in a ...
1
vote
2
answers
104
views
How to import many Images in Mathematica?
I have 150 images that I want to import into the Mathematica, and process. I use this code but I get errors. I ran the example for three images.
...
1
vote
0
answers
196
views
How to get a dataset from GitHub?
I want to use the dataset on https://quickdraw.withgoogle.com/data
And the dataset is published on GitHub at the following address.
https://github.com/googlecreativelab/quickdraw-dataset
I want to ...
1
vote
1
answer
82
views
Historical data of financial funds
I would like to obtain the historical data of some funds, of which I know the ISIN code. Is there any way to do this with mathematica?
For example, this fund here:
https://markets.ft.com/data/funds/...
0
votes
0
answers
52
views
Way to download all attachments from yahoo.com
For a long time now I want to download the attachments from my yahoo.con mail, only the files, no text, but in batches, so MMA gets into my mail and downloads every attached file it finds in a folder.
...
2
votes
2
answers
156
views
Reading the contents of a file into a list
I would like to read the contents of the file.txt into a list of the following form: {1,0,1,12,0,1,0.25,0.012,0,1,0.25,0.026,0,1,0.25,0.057,0,1,0.25,0.090}.
How could this be done?
In these variants, ...
5
votes
2
answers
70
views
Where is the new System`ConvertersDump`$extensionMappings?
I used to find the extensions mapping from System`ConvertersDump`$extensionMappings, which gives a mapping like "{"*.3ds" -> "3DS"...}&...
1
vote
2
answers
99
views
How to extract the following data from the file?
Consider the following file. It has the form
...
2
votes
1
answer
119
views
Import fails for Gaussian calculation output file
Mathematica seems to import Gaussian16 calculation output files usually without any troubles. However, with the recent 13.3.0 version, I noticed that some calculation output files are not imported, ...
0
votes
0
answers
38
views
Turn string with () as function brackets into expression
I have a text file with an equation where all the brackets are formatted as (). For example I read in the equation 2*(Re(a)+Im(b)) as a string. Now I am wondering if I can make this into an expression ...
3
votes
2
answers
205
views
Importing a text file of values and converting it to table
I just started using Mathematica. I got some output in a txt file from some computations in Pari/GP which looks like this:
$$ [1,2,3,4; 5,6,7,8]$$
Here I want to import the data into Mathematica and ...
1
vote
0
answers
47
views
Registering custom importer. ImportExport`RegisterImport is not recognized
I tried to follow the original example from Wolfram Docs to design my own Import-er for the custom format I have.
See the original example here
So here is the code
<...
1
vote
2
answers
58
views
How to distinguish these strings when extracting parameters?
Consider the following list:
...
1
vote
0
answers
38
views
Is it possible to `Import` into Mathematica models from databases like the Biomodels DataBase?
This is probably not a Mathematica question, but maybe I will get lucky.
The https adress "https://www.ebi.ac.uk/biomodels/BIOMD0000000872" contains many files, the most relevant probably ...
3
votes
4
answers
216
views
Build a region from an unsorted set of points (Imported from a .DXF file)
Please consider trying to download the following .dxf files :
DXF File - HEA
DXF File - UNP
DXF File - RRW
Context :
Every file contains a drawing of a particular type of steel profile used in civil ...
2
votes
2
answers
227
views
Import complex numbers from a CSV file created in MATLAB
I export a simple CSV file created in MATLAB with complex numbers, such as:
0.1+2.1i,0.9+0.13i,0.02+0.3i
I would like to import it into Mathematica with the "i" recognized as the imaginary ...
0
votes
1
answer
70
views
Having issues creating rules from a CSV import
I'm importing a CSV file with two columns. I've done this with other files, but this one is causing issues when trying to create rules to associate IDs with the titles. Here's a sample of the ...
2
votes
2
answers
251
views
How to import, read and convert a .bib to .csv format?
I have a document in .bib format, namelad by savedrecs1.bib, obtained from Web of Science.
The document have a set of reference, of the type:
...
0
votes
0
answers
12
views
TagLib error while Importing files?
I am using Mathematica to import some flac files.These files will be imported by a script multiple times.There is an TagLib error on one of the files on the second import of it.The first import though ...
1
vote
2
answers
107
views
Importing an unusually formatted text file and converting to CSV
I have some data that looks like:
...
1
vote
0
answers
69
views
Bug in Interpreter with DelimitedSequence and alternatives?
In the context of this question I tried setting up an interpreter that converts a string to a list of numbers, while converting "NA" to ...
0
votes
0
answers
20
views
How to import output from a dynamic Manipulate in NB1 to NB2?
I have the following Code which works fine:
...