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
1
vote
0answers
33 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
32 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
24 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
66 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
38 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
186 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
30 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
36 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
29 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
111 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
124 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
41 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
101 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
50 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
232 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
99 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
166 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
25 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 ...
0
votes
1answer
50 views

Importing data from from Mathematica file

I have a array of Mathematica files which I am running one after another using NotebookOpen/SelectionMove/SelectionEvaluate functions successfully. In this evaluation, the o/p of each file is a ...
1
vote
1answer
44 views

Importing TIFF stack metadata

the data files I am working with are TIFF stacks, we generate them with a self-written microscope program (in matlab). Among other information, an ASCII value is saved for each image in the TIFF stack ...
1
vote
1answer
30 views

Export a multidimensional array which contains numerics and symbols?

Lets say I have an array defined as: Array1 = ConstantArray[0, {1, 3, 3}]; Array1[[1, 1, 2]] = 5; Array1[[1, 1, 3]] = t; How could I export this array since it ...
0
votes
1answer
39 views

Importing a 3 dimensional list

I have a code that is generating some numerical data in the form of a list of trajectories. Each trajectory itself is a list of 2D coordinates. Each coord. is a list of 2 numbers.(see example data ...
2
votes
1answer
46 views

Importing a csv file yields weird first character

Whenever I import a CSV file, I get this weird character at the beginning of the file ,I am not sure why. How can I avoid this?
0
votes
0answers
19 views

SemanticImport adds garbage characters to key name

I want to import a csv to a dataset. This exact dataset successfully imported on a PC, but on a Mac one of the columns has garbage characters added to the key (see below example). I don't believe ...
0
votes
0answers
29 views

Mmma connectivity . parquet. python

Is there any way to exchange data in binary format with python ? Example. a) I have data in Mmma and want to export them to make use in python ... b) Want to use Parquet format
5
votes
1answer
124 views

Decode Image from Base64

From a web API, I have a bunch of realllyyy long strings that look like this: data:image/jpeg;base64,(...) Sites like this will decode these strings no problem, ...
0
votes
1answer
29 views

importing a list of lists

I have a list of lists, a list of file paths for some number of directories. I want to import that files as lists of lists, where instead of getting one massive 1D list, the distinct directories are ...
0
votes
2answers
45 views

Specify column data type when importing

I'm running into an annoying issue when importing a table of tab-separated-data. Several columns are numeric, while several are strings. Using Import[url,"TSV"] ...
1
vote
2answers
48 views

How can I convert a matrix of 3d experimental data into a 3d list which can be interpolated in a f(x,y) function

I have a 3d experimental *.txt data with the form: y1 y2 y3 x1 f(x1,y1) f(x1,y2) f(x1,y3) x2 f(x2,y1) f(x2,y2) f(x2,y3) x3 f(x3,y1) f(x3,y2) f(x3,y3) I need to ...
-1
votes
1answer
26 views

Exporting and then importing .dat file elsewhere, then plotting the data

I'm trying to perform a simple task: export data into a '.dat' file, then importing that file onto Mathematica on another terminal, and then plotting the list. But I keep getting the same blank plot! ...
1
vote
0answers
48 views

Webscraping when links do not change

I would like to webscrape college sports data. Specifically, I would like to get match by match data from baseball. Manually, this is tiresome but possibly. I go to http://web1.ncaa.org/stats/...
0
votes
3answers
53 views

How do I import only the number and separate between 'n' and 'p'?

I have a file like this: ...
2
votes
1answer
78 views

How to plot .txt data, which are not comma-delimitered?

I have got a $1000\times 4$ matrix of data in .txt form. Rows are seperated with blank spaces and not with commas. I want to plot the second column against the first one (they correspond to y(x) and x ...
0
votes
0answers
41 views

How to import a mathematica notebook into another mathematica notebook?

I have a number of notebooks -295 precisely- in a folder. Each notebook contains one or more large matrices. What is the proper way of importing each one of these notebooks in a new notebook for ...
2
votes
2answers
155 views

How to use NDSolve with limited RAM?

How can I use NDSolve when running out of RAM? The code I am implementing: ...
0
votes
1answer
82 views

How to remove brackets from a data file

I would like to know how I can transform a file (.dat) that contains {x1,x2, x3, x4, x5, x6, x7, x8} {y1,y2, y3, y4, y5, y6, y7, y8} in another file (.dat) ...
1
vote
1answer
89 views

Problem with “MediaTools`” in Mathematica 12

I asked here for a solution how single video images can be extracted very fast from avi files. Piotr Wendykier gave a solution for Mathematica 11.3. Now I'm using Mathematica 12 and his solution ...
1
vote
2answers
60 views

Importing a data file with names

I have the following data file which contains four columns of data However when I import it as data = Import["Exo_data.txt", "Table"]; I get the following list ...
3
votes
3answers
112 views

How can I import a CSV file into Mathematica? [closed]

I have a data.csv file in the Downloads folder in my Macbook. I am trying to import the data into a Mathematica notebook using ...
5
votes
2answers
146 views

Convert String to Integer from a huge string database in a very fast way?

I have a huge string database with the form such as {{position},{1,2,3,4,5,..}}, and I want to convert such database to Interger data in a very quick way. In the following example, I created a ...
1
vote
1answer
60 views

Import .wav and Export .csv - where is the bottleneck?

I have a number of .wav files in a folder. I want to: Import each file as data, cut each list into a certain number of small lists, export each list as .csv. The .wav files have a length of approx. ...
7
votes
1answer
754 views

web scraping images

I am trying to load player profile pictures from the following page: https://www.transfermarkt.com/manchester-united/startseite/verein/985/saison_id/2006# I use the following code: ...
0
votes
1answer
35 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 (res2 = Import["...
1
vote
1answer
57 views

Interpolating data from Excel

Sorry for the probably mainstream question, but I have not found the answer I was looking for yet. I have this Excel file: https://drive.google.com/file/d/1UhkYdoaqXQIsf6opOx-EBgG7xPxxHga3/view and I ...
5
votes
1answer
69 views

How do I reliably read from stdin using wolframscript?

I am trying to direct a stream of data to a wls script in a command line environment. Wolframscript provides the ...
0
votes
1answer
91 views

Using Semantic Import to do an Excel-like VLookUp using Mathematica

I'm following an example provided in the following Stack Exchange Link but, using a different approach. My data is contained in an Excel workbook called "Input Workbook.xlsx" as shown here: I ...
0
votes
0answers
22 views

Why is the number of sample points of an audio changed after being export?

I have an audio audio001 and I need to export/import it so that I can do auto-correlation. Below I used ...
1
vote
1answer
59 views

Unable to use the Import[] function to get the clickable hyperlinks of a page

I can get the hyperlinks of the Google search result of "Wolfram" by using the following code: Import["https://www.google.nl/search?q=Wolfram", "Hyperlinks"] Now ...
2
votes
1answer
37 views

Do not skip empty table entries while importing data from HTML string?

Consider importing the following table from an HTML string: ...
2
votes
0answers
59 views

Mathematica (v12.0) fails to Import NASACDF (Common Data Format)

I was doing research about Mars using data from MAVEN spacecraft. The data used could be downloaded from https://lasp.colorado.edu/maven/sdc/public/data/sci/swe/l2/2017/06/. When run ...