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
2
votes
1answer
35 views

Problem importing a pdf with a character with increasing opacity

I want to import a pdf in MMA(ver 12.0). The pdf is here. This pdf has a "$c^2$" in the middle of the white square that is completely transparent in the first page, then it become progressively more ...
0
votes
0answers
24 views

Importing Excel Files and Extracting Parts of the Dataset

I'm trying to import two Excel files that have multiple sheets to Mathematica using the following code: ...
1
vote
1answer
43 views

Create table A with entries of the form Ai_j

I would like to create an $m \times n$-table A with entries Ai_j, where $1 \leq i \leq m$ and $1 \leq j \leq n$. I have seen ...
1
vote
1answer
25 views

SemanticImport returning different data versus Import

I'm analyzing data for Covid-19 and found an interesting website: "https://covidtracking.com/api/states/daily.csv". My problem: using SemanticImport, it seems stuck on the data that I read yesterday ...
0
votes
1answer
40 views

Implement a function which import data from the same webpage root

I would like to implement a function to import several dataset from the same website source, where for each dataset it changes just one word on the website address. Here the website: ...
0
votes
0answers
15 views

Exporting a Mixed (text and numeric) List to a File and Reimporting it Without Unwanted Changes

I found a few similar posts, but not close enough to give me an idea what to do. My problem is that I have a mixed format (data and string) nested list which I want to output to a file. I then want to ...
3
votes
1answer
124 views

SemanticImport vs Import differ on same CSV file?

Using WL 12.1.0. Is SemanticImport caching data somewhere? I did this SemanticImport for the first time, yesterday. Worked fine. ...
4
votes
1answer
84 views

Correcting nonsense digits during data import

I import large amounts of data, and for whatever reason the data in cases add large numbers of either '0s' or '9s'. However, as the numbers have very different relevant digits, I cannot simply use ...
0
votes
1answer
26 views

Avoid an Error Message when Importing

Consider the following code Button["Import", file = SystemDialogInput["FileOpen"]; data = Import[file], Method -> "Queued"] which yields a button which, ...
2
votes
4answers
109 views

Mathematica switches file formats on import [closed]

...
0
votes
0answers
40 views

429 error when importing webpage

I am interested in checking which of my favorite groceries are on special at which supermarket before going to the shops (to know which items to buy from which supermarket) but every time I try to ...
0
votes
0answers
10 views

Trouble re-importing the output from an x3d export

I'm having some trouble re-importing the output of an x3d export of a 3D plot, and I'd like to understand why it's failing and how to fix it. The short version of what I want to do is to make a 3D ...
0
votes
0answers
29 views

Import a function from another notebook changing a parameter

I am trying to import a function obtained from another notebook into my current notebook. In addition to importing it, I must replace all x with (x + 40). Here goes na example: Notebook 1: ...
2
votes
2answers
101 views

How do I perform Bessel function computations for data imported from MS excel?

I am trying to perform Bessel function computations of the form Jn(b*x) where n is the order of the Bessel function. I have three columns representing x, b and n. I wish to import this data into ...
6
votes
0answers
71 views

Importing a 12 bit array

I have a binary file of 12 bits integers obtained from a camera software. It can produce FITS files from these but the processing time on the large data set I have is excessive. What I have is the ...
0
votes
1answer
49 views

import and compare values in csv files according to a condition

I have lots of csv files in a folder. Each file contains a column with date, year and time and the second column values for each time. I would like to import all these files and for each file take a ...
4
votes
1answer
86 views

Reduce quality of an imported MeshRegion

Importing STL files using Import results in a MeshRegion composed by the triangulation of the original file, and a similar ...
4
votes
1answer
35 views

Merging columns during SemanticImport

If one is trying to use SemanticImport to import geo data, how does one merge two separate columns (Lat and Lon) into one column that GeoCoordinates needs?
1
vote
3answers
90 views

Import data from different webpages of the same website

I imported and cleaned the following datasets for england soccer league in order to have home/away rank tables and next round matches: ...
0
votes
1answer
38 views

How to use module to assign functions to a set of imported text files?

I have a lot of text files in my folder (in this example I'm using only 8). I am trying to import all of them and then do calculation on each individual file; I want to use the same notebook without ...
0
votes
0answers
52 views

Is there a more efficient way to use StringReplace?

I have constructed a table that I want to save in such a way that it looks like a python input because of reasons. For that I save the table's output in a .txt file and then perform a StringReplace ...
8
votes
0answers
161 views

Guide to capturing the complete image of given urls?

I'm trying to use WebImage[] to capture the complete image of a website (yes, it might be very tall). I seem to be having some issues with it: How to attempt to capture a complete image of the ...
3
votes
0answers
54 views

Reading through file one line at a time, running out of RAM [closed]

I have a handful of files (some of which are very large), and I would like to loop through them one line at a time, run a calculation, and then write the result of the calculation to a new output file:...
13
votes
2answers
349 views

How to import SVG files?

In the document I found that SVG files can be exported, but there is no information of Import. How can I do that?
1
vote
0answers
75 views

Trouble reading FITS with Mathematica 12

I've been using Mathematica to process FITS for years, but it has changed in version 12. Import now yields an Association rather ...
1
vote
0answers
67 views

Importing a table of real numbers from a text file were data is represeted in Fortran form [closed]

I'm working on a project that is analyzing seismic displacement data in the above form. It's basically a text file but I could conceivably need to bring in hundreds of files each containing anywhere ...
0
votes
0answers
37 views

How to use Headers after imported them?

I read this post here, and played a bit with the Import function, so I now have my data imported from xlsx file, which say is a <...
3
votes
3answers
171 views

Trying to replace the text E with scientific notation

How to replace the E with scientific notation *^? ...
3
votes
1answer
71 views

Importing a List of Comments from Hacker News

Consider this link has a bunch of separated comments: Is there a clever way to import this into Wolfram Mathematica such we end up getting a list of comments (for, say, sentiment analysis ...
4
votes
2answers
77 views

Importing a Google Sheet including blank cells (default is ragged array)

I'm able to import data from Google Sheets using e.g. ...
2
votes
2answers
87 views

Running a notebook which imports and exports files repeatedly

I am trying to automate the process of running a Mathematica notebook that takes as an input a .txt file and exports another .txt file. This notebook was not written by me, and I don't fully ...
1
vote
0answers
39 views

How to recover plaintext from .MX files?

I need a function to deserialize the contents of an MX source file for reading. We can’t simply use Get because I don’t want to load or run the code, but rather to ...
3
votes
1answer
41 views

Importing graphs from geng incrementally

Is it possible to import graphs generated by geng (a tool from the nauty suite) one by one, rather than all at once. If one could also specify not only the order ...
2
votes
1answer
32 views

SDF Metadata Import fails when structure information is missing

Background Information: In Mathematica 12, SDF Import automatically triggers the generation of Molecule[] representations. SDF files contain both structural information as well as metadata, and a ...
2
votes
1answer
96 views

CSV import with delimiters not working for certain characters (curly quotation marks)

Here's an example CSV file (Example 1): "Text","”","False","False","False","False","0","1","24","0","9","450","450" and the code to import it (Code 1): ...
0
votes
1answer
50 views

Retrieving a list of tagged output cells and a list of variables from various Notebooks into a new Notebook

The table below provides the information needed to formulate my question: how can I gather a selected number of tagged output cells and variables in a new notebook? I have two notebooks ...
6
votes
1answer
214 views

Importing a Wikipedia Table as a Dataset?

I am trying to import this table from Wikipedia into Mathematica as a Dataset. The fields I'm interested are Name, ...
1
vote
1answer
32 views

Converting String in “Data” Format within Mathematica [closed]

Hi I have a simple question. Given a random string in the format accepted by the Import[fileWithString, "Data"] i.e the file contents being ...
0
votes
0answers
42 views

Importing text file to plot animation in 1D

I have .txt file with data that I want import into mathematica and then create a 1D animation/simulation of 3 curves. The format of the ...
0
votes
1answer
35 views

How to obtain integers from a txt file? [closed]

I have txt file with some comma-separated integers and i'd like to obtain a list of said integers to work with. My best result was: ...
9
votes
1answer
128 views

Importing Packages to .wls without shadow definitions and context specification

I am trying to import a package that works correctly when I use it in a notebook in a wolframscript .wls. I get a weird shadowing problem, however. Here is a minimal working example ...
9
votes
0answers
221 views

Is it possible to use better modern compression algorithm instead of zlib in Mathematica for efficient data saving and loading?

Some backgrouds of my problem: Recently, I had a heavy data analysis work to do. Each day I got thousands of csv Files(colums with different datatype) with total several Gigabytes. I have to ...
1
vote
1answer
48 views

Import and Export DateObject

I'm trying to import a spreadsheet with dates and export it again. But the cell reads ### in the exported file. It's shown in the screenshots. This is my code. ...
0
votes
2answers
114 views

SmoothHistogram doesn't appear to work

I have a data set with 500,000 elements. I am trying to use SmoothHistogram to plot the distribution, but it doesn't work and the kernel quits. I used R on the same ...
2
votes
1answer
53 views

Data manipulation in Mathematica

I have a very big data set that I have generated in Matlab. I am importing into Mathematica since doing some data manipulation is much easier. There is one caveat, which is the following: I have ...
12
votes
0answers
408 views

Why does Mathematica consume so much memory when reading binary data?

There are somewhat similar questions on here, but I didn't find a satisfying answer for this case: I import a 1.7 GB binary data file using the following command: ...
2
votes
0answers
109 views

Is there a way to make Mathematica work with Parquet?

Has anyone tried to make Mathematica work with Parquet? If so, what are the solution possibilities? And how can this be made possible? https://community.wolfram.com/groups/-/m/t/1595622
7
votes
1answer
176 views

How to import a ByteArray from GenerateHTTPResponse?

Without GenerateHTTPResponse the import works as expected. ba = ExportByteArray[Plot[x, {x, 0, 1}], "PNG"]; ImportByteArray[ba] ...
0
votes
0answers
33 views

Working with time series GDP data

I have two questions. First, how do I get a list of points from CountryData["UnitedStates", {{"GDP"}, {1960, 2018}}] as opposed to a graph. Second, if I have a ...
3
votes
2answers
43 views

Import expressions from a file without it getting evaluated?

How can I import a file without its expressions being evaluated ? E.g. assume that the file "test.m" contains just the list {a, a + b + b + c, d} If I use <...

1
2 3 4 5
26