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

Filter by
Sorted by
Tagged with
5 votes
2 answers
306 views

Direct Import Remote File via SSH without Copying in Windows

Is there any option to directly import to a Windows-driven Mathematica kernel a file from a remote server without copying it on hard drive? Right now I'm using ...
1 vote
1 answer
158 views

How to read .vtu files?

I see the Import function can import .vtk files. But how about .vtu files? Is there an ...
8 votes
3 answers
1k views

How can I import a table from a Wikipedia page?

I'm trying to import this table from a wikipedia page containing the list of lunar missions into a Mathematica as an Association. Here, I'm trying to use the new <...
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 ...
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, ...
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?
3 votes
3 answers
125 views

Change a value within a list from a string to number

I have a table with 10 columns. The last column contains a string; e.g., "center", "passageway 1", up to "passageway 8". I want to change the last column so that the ...
2 votes
3 answers
348 views

How to remove quotation marks in Table list

I have Import a .txt Data = Import["files.txt", "Table"]; But the Data ...
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 ...
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
1 answer
159 views

Trouble when attempting to import a dat resource

I am trying to import the "Patient Medical Data for Novel Coronavirus COVID-19" dataset from the Wolfram Data Repository, but when I import, it shows me just 427036 results instead of the ...
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
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 ...
6 votes
1 answer
894 views

How to Export to/Import from GeoGebra?

I'd like to convert geometric figures between Mathematica and GeoGebra. Does anyone know how to do that?
5 votes
1 answer
11k views

Importing a matrix from a text file

I have a $4 \times N$ matrix in a .txt file of the form: -17.071 137.567 16.554 0.65 -16.873 136.138 16.934 0.7 -15.397 135.738 16.894 0.7 -14.7 135.982 15.9 0.6 ...
0 votes
1 answer
199 views

Unable to operate on the table imported from .mx file

I saved a table by exporting it to .mx file. Now, when I import it back, it gives me the desired output. So, to work with elements of the table, I first define the imported table as (...
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/...
4 votes
5 answers
193 views

How to extract data depending on position of first zero?

I have a file (attached as an image) which I imported to Mathematica and only extracted the first and second column. My problem is that I want to extract the data beginning from the row where $A=0$. ...
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, ...
4 votes
1 answer
189 views

How to import actual data rather than formatted data from google sheets?

I have data in my google sheets which is extracted using: ...
8 votes
2 answers
3k views

How to import a Microsoft Word document into Mathematica?

I have a Microsoft Word document in DOCX format. I need to import it into Mathematica as a String preserving all formatting (font, size, bold/italic style, colors, ...
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$...) ...
14 votes
1 answer
645 views

How to use RunProcess to import external function?

I have a functions written in an external language called GO. How can I quickly load them into the kernel for use as Mathematica functions? The two ways I've tried are with MathLink and LibraryLink ...
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 ...
10 votes
2 answers
6k views

RawJSON vs JSON format

It has been very recently, since the release of version 10.3.0 I think, that Import/Export and ImportString/ExportString functions accept a format parameter with the value of "RawJSON". The ...
58 votes
5 answers
12k views

How can I extract data points from a black and white image?

Consider the following graph (source): Is there any way to extract the data points from this image in a semi-automatic way? I have seen, and tried the methods suggested in this question, but they did ...
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 ...
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. ...
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
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 ...
7 votes
2 answers
407 views

Can I read Chinese characters with ReadList correctly?

Just try this example: Export["a.txt", "这乱码问题该怎么解决呢\n***\n怎么解决嘛"] ReadList["a.txt", Record] ...
1 vote
2 answers
83 views

How to make lists all the same length by automatically removing every second element?

I have 20 files of matrices which all contain the same kind of data. I can import and take the single column I need out of every file into a list. I need to average each of the 20 file's lists ...

1
2 3 4 5
32