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
1answer
25 views

Import of csv-data don't read columns

I couldn't catch the point: when I try to read an easy csv-dataset with ";" as delimiter, I get only "strings" instead of a set of columns. Here are two lines of the csv-File: k_id;...
2
votes
1answer
65 views

Formatting Imported Complex Arrays from Python (csv. files)

Just a short question, I am trying to import a complex array (matrix) from Python to Mathematica by first writing to a csv. file. When I Import the csv. array to Mathematica it is in a form (matrix ...
0
votes
1answer
30 views

Import multiple sheets from one excel file to one datasheet

This is probably quite a simple question for you guys but I've just started M and I've been mulling this problem for a few days and I think I am well and truly stuck. So any help would be greatly ...
1
vote
1answer
43 views

How to distinguish NumberPoint and FieldSeparators with comma

Hello, I have a problem with importing .txt file which uses "," as decimal as well as field operator. I need to convert numbers with decimal comma to decimal point and create field operator ...
1
vote
1answer
39 views

Import a file that is located in one of three directories?

Import a file that could be in one of three directories I want to import a file called image.png. I know it is either in dir1, <...
3
votes
1answer
62 views

Plot Excel data From Different Sheets

I have sheets 100A-100G in Excel with data I want to plot in columns E and H of every sheet. Is there a way I can take the data from each sheet and plot into a separate graph in a simple way through ...
1
vote
1answer
51 views

Incomplete data transfer: large CSV data Import, computation outputs exported as MX, then import the MX data [closed]

I have a very large CSV data file, which I imported it to my active Notebook: ...
0
votes
1answer
77 views

How to import the MS Word document content and typesetting?

I have a vocabulary with phonetics here(the extracted password is: 1234). I import these contents by saving the docx file as an <...
1
vote
0answers
50 views

How to let Mathematica evaluate a large amount of data

I have the following code in mathematica which runs perfectly for a small matrix of 21 x 12 matrix. But I really want to test it for a large system. My data is 35844 x 21000 elements, totaling 1.5 GB. ...
1
vote
2answers
59 views

Import all files in folder, perform operation, re-export with appended file name

I'm trying to write a short program that does the following over and over again. Import all files in a folder Automatically generate names for the imported files based on source file name. Perform a ...
0
votes
1answer
71 views

Import CSV data from internet to mathematica [closed]

This Link has data in CSV format for 2015 and other years. I would like to get the data for 2015 (by clicking on 2015) but the CSV data format has more rows than Excel can handle and therefore the ...
2
votes
1answer
104 views

Is it possible to convert a matrix in $\LaTeX$ format to Mathematica input? [duplicate]

Is it possible to do this already in version 11.3? For example, I want to draw a graph ...
1
vote
1answer
45 views

Import 4 data columns and drop one of them [closed]

I would like to import 4 columns of data from a Dat-file(Fortran) and then drop the fourth one to use ListPlot3D and repeat this to drop the third one. When I used ...
5
votes
1answer
140 views

Import ZIP file options broken in Mathematica 12.2.0

I am trying to read a zipped table, which has its entries separated by colons. In Mathematica 12.1.1 (and earlier) this worked well with the following command: ...
0
votes
2answers
50 views

Convert GiNaC harmonic polylogarithms to HPL packages' notation in Mathematica

A general output from GiNaC (https://www.ginac.de/) of harmonic polylogarithms is H(a,b,c...,x). We want to convert it to Mathematica format (https://www.physik....
3
votes
1answer
71 views

Remove errors from sublists after Excel import

I have a very long list such as: https://pastebin.com/9vYDLsVp At the end of each sublist for some reason I have {,-6}. How can I remove that from each sublist of ...
3
votes
3answers
236 views

Plotting datapoints found in data given in a .txt file

Well, my question is the following: I have a .txt file that consists of the following data: ...
4
votes
3answers
180 views

How to run a whole mathematica notebook within a for loop?

I have some data sets labelled data1.dat, data2.dat, and so on, and I have written a notebook which will import a single ...
2
votes
3answers
87 views

ListPlot3D from Data Fortran file

My .dat file (Fortran) consists of data (x y u) as three columns and I would like to plot the variable "u" against the variables "x" and "y&...
1
vote
1answer
38 views

Correcting delimiter definitions in .csv files

I have a number of .csv files that have a semicolon (;) delimiter rather than comma, and I'm wondering if there is a simple way to change the text in them all. Lets say I have a test file "a.csv&...
3
votes
2answers
112 views

Creating Maps from Shape Files for “Mixed” Labeled Data

Following suggestions from an extremely useful and informative solution to a previous question regarding shape files (Extracting a single layer from a SHP file) by ssch, I have been able to create two ...
0
votes
2answers
52 views

Finding the number of unique solutions in a .txt file

Well, my question is the following: I have a .txt file that consists of the following data: ...
1
vote
0answers
64 views

A glitch with importing a list of lists of polynomials [closed]

Would anybody know how to import a list of lists of polynomials which I exported earlier? ...
6
votes
1answer
197 views

Create a voxelized mesh from an STL mesh file

I would like to create a cubic or 3d grid mesh with a constant size for a surface mesh that represents a hollow torus saved in an STL file. mesh I am import the vertex using: ...
1
vote
0answers
43 views

Export and Import trained neural net

I have trained a neural network and would like to save it to disk. I am using Wolfram version 12.1.1.0 on Windows (64-bit). I have entered the following commands: ...
0
votes
1answer
79 views

Issue Installing Knot Theory

I have been trying to install the Knot Theory package from the knot atlas, but have been unsuccessful. Firstly I tried the command << KnotTheory` but ...
0
votes
0answers
59 views

Import FTP file from ftp server with FTP over TLS (Explicit)

I would like to be able to import/read a file into Mathematica from an ftp server that requires explicit TSL security with anonymous connection. ...
1
vote
2answers
62 views

How to import a (large) .CSV file maintaining its shape (defined by curly brackets)

I'm working on large tables generated with Mathematica, evaluated on different computers. I plan on join the tables on my computer and proceed with the interpolation of the data there contained. The ...
1
vote
0answers
71 views

Parsing raw pixel data as a Wolfram Image

Context. I have a C++ function which receives pixel data (along with width, height, ...
0
votes
1answer
80 views

Strange behavior of Show with picture + points

I have a square image of 1000 x 1000 pixels, and I want to generate a collection of points inside the image. Knowing that the image is a square, I thought of simply generating points in the domain {0,...
0
votes
1answer
42 views

Import and create a hexdump view of file

How would I go about creating a hexdump type of view of an imported binary file? for example, (format is ...
0
votes
0answers
26 views

Why the image is decomposed in three images when exporting to FITS fromat?

I have a large data set which when plotted gives: image = MatrixPlot[data, Frame -> False, PlotLegends -> Automatic] Now I want to export this image in the ...
3
votes
1answer
53 views

Parse a JSON file, but failed

My Problem Some people gave me a JSON file, which is exported from a camera. He asked me to parse the JSON file, and extract the value to each key. However, when I import the JSON file with: ...
1
vote
2answers
96 views

How to use Import to extract data from website?

I would like to extract data of surface properties and grain boundary properties for Cu polymorph #0 from the website: http://crystalium.materialsvirtuallab.org using Mathematica. So far I tried with <...
4
votes
1answer
81 views

Manipulate VTK vertex fields

I have a VTK file that contains several vertex fields, and I'd like to manipulate the view. The objective is to show/hide all vertices whose field match a certain function. For instance, if I have a ...
1
vote
0answers
60 views

Exported plot range of PNG not displayed properly

I am tring to export the plotted graphics as PNG, but its range is not coming properly: ...
4
votes
2answers
182 views

How to import a COVID-19 data table from a website into a Mathematica notebook

This link https://www.worldometers.info/coronavirus/ provides daily cases of COVID-19 across all the countries. Is there an easy way to retrieve this table into a Mathematica notebook? I tried: ...
3
votes
2answers
105 views

How do I import a 1 gig text file by only importing the last 3 lines of every 10 line chunk?

I am trying to get the last three lines of every 10 line chunk into mathematica as a data variable. The text file has 3 columns. For example: ...
13
votes
1answer
543 views

Can Mathematica be used to edit MP3 tags?

Can Mathematica edit mp3 tags? I have a set of files and I'd like to batch process artist, album title, etc. I know other tools exist; I wonder if Mathematica can do it.
5
votes
1answer
77 views

Incomplete web image scraping

Occasionally when I scrape images from a webpage, such as: Import["https://www.freeart.com/gallery/m/mondrian/mondrian.html", "Images"] only a ...
1
vote
0answers
43 views

Mathematica won't show imported excel spreadsheet data [closed]

I have a problem with Mathematica 12.1 Student edition since every time i try to import data from excel with the command ...
0
votes
2answers
69 views

Import and extract certain column and row

I have a problem with importing and extracting 2nd column in my CSV file. I need to have 3 list, the first one first column except for first row, the second will be second column except for 1st row ...
0
votes
0answers
42 views

How to run Facebook Prophet in Mathematica?

I would like to use the Facebook Prophet API for timeseries forecasting in Mathematica. I'm trying to make a function prophetM which takes a list of date, and integer pairs (or a Timeseries object), ...
0
votes
0answers
40 views

Web crawler, where access is needed

I want to make a web crawler and download a bunch of files that are located in different directories on the website. Accessing the files need username and password input as well (the website is https:/...
3
votes
2answers
105 views

How can I read this file?

I have to read and process a file that looks like this: ...
1
vote
0answers
47 views

Passing input from a textfile into a function

I have a text file which is a list of numbers and would like to pass each number in the list as input to a Mathematica function. For example, my text might contain [2, 1, 4], and I would like to pass ...
1
vote
1answer
28 views

Exporting to PDB seems to lose aromaticity

I have a molecule with the following SMILES: ClearAll[sml]; sml = "O=C(NCC1=CC(NC(C2=CN=C3C=CC=CN23)=O)=C(C)C=C1)NC4=CC=CC(F)=C4"; The plot looks as ...
0
votes
1answer
56 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 ...
7
votes
0answers
62 views

Realistic and stylistic Image and Video corruption effects

I'd like to produce a video that looks 'corrupted' in some way, ideally like the sorts of MPEG corruptions you see occasionally. See this for examples: https://www.youtube.com/watch?v=i-bz21deEeY At ...
0
votes
2answers
47 views

How to export and import these data

I want to export my_data and then import them back again in exactly the same data structure as the one they had when they were initially generated. ...

1
2 3 4 5
28