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
votes
0answers
47 views

Speeding up the process of importing a large ASCII textfile [closed]

I have a large plain text data file that I need to import. The file consists of two columns of numerical data separated by a tab. Now, I am using the following command ...
0
votes
0answers
32 views

Mathematica CSV values

I wanted just to add constant to each value. i. e. data = Import["/Users/paul/Desktop/rtm1.csv", "CSV"] And I get ...
0
votes
0answers
48 views

importing mathematica files into Github [duplicate]

I'm going to import my files in Mathematica (.nb) into my Github profile. Is there any method to do that? Thanks
0
votes
1answer
58 views

Read arbitrary line from CSV file

Consider some large ".csv" file. For instance: ...
1
vote
1answer
46 views

Problems with importing .mat data that contains NaNs

I had a .mat data that I wanted to import to Mathematica. I tried using Import["File path","Data"] But it didn't work. It just returned de ...
0
votes
0answers
15 views

Curved text layout with UnderoverscriptBox support

There are a few questions related to laying out strings of text along curves, Text along a lemniscate curve, How can I wrap text around a circle? and others. See the GIST. Most answers either layout ...
13
votes
1answer
265 views

Easily download SE posts as notebooks?

Is there a common method of grabbing an SE post or answer here as a formatted notebook so that you can immediately run it, instead of copy-pasting the code blocks? I've heard SSE uses MarkdownSharp ...
1
vote
0answers
81 views

Import matlab MAT-format fails

As I did many times before, after updating Mathematica v12.2 I have problem to import matlab *.mat file: I checked ...
2
votes
1answer
77 views

Some problems importing *.hdf5 files in MA12.2

I'm attempting to Import datasets from a *.hdf5 file into Mathematica 12.2 in Win 7. After looking at the syntax in the Wolfram Documentation Center and displaying the StructureGraph, I had no problem ...
-2
votes
2answers
58 views

Import data from a formatted text file into a dataset

As you can see from the picture, it's a txt. file, and when I use Import, lot's of different type of data stored in one column, I want to devide them into different columns. For example: the 1st ...
4
votes
2answers
127 views

ImportMesh complains the element mesh has insufficient quality of 0

I'm using ImportMesh in FEMAddOns package. When I imported the following mesh created in Abaqus the following warning occurred: ToElementMesh::femimq: The element ...
0
votes
2answers
39 views

Exporting a file into a subdirectory of notebook

How can I create a directory in a notebook directory and export a file (resulted from that notebook) to created subdirectory?
1
vote
0answers
45 views

How to import a google sheets file that requires account login?

How do I import a google sheets file that is in my google drive? I tried the following: ...
1
vote
1answer
97 views

Importing PDF with Mathematica 12.2 on Windows skips newlines

I'm using Windows 10 with MM12.2 PDF import does not include the standalone newlines anymore. This is a very annoying issue since we would like to extract paragraphs which is now not possible. We ...
3
votes
1answer
36 views

Prevent ImportString from rounding values

I'm trying to import a table from Excel following this question and answers. In doing so, strings are kept as strings though numeric values get interpreted as Real ...
0
votes
0answers
30 views

How to give Classify a list of files on disk instead of importing them all at once?

I am trying to use Classify to train an image classifier on a dataset of 30k+ images. I followed this tutorial and created a list of the form {File[…]->class,…}. I can use NetTrain with this list, ...
0
votes
0answers
43 views

Import a huge stack of TIF failed in Windows, but successful in MacOS

I have a 16-bit stack of images (428 x 684 pixels) in TIF format. The stack has 20,000 images, about ~780MB. When I import it to Mathematica in MacOS (i7, 16GB RAM, BigSur), it successfully imports ...
0
votes
0answers
55 views

Error importing video

When I try and import a video: Import["video.avi", {"Frames", {50, 60, 70}}] Or using the original .mp4 codec, which I converted using VLC, ...
1
vote
1answer
50 views

How to use 'Join' and '& /@' : combining all .csv files in a directory into a single .csv file automatically

I would like to import all .csv files in a directory and combine them into a single file using Join. I can do this manually but when I try to automate it using <...
2
votes
3answers
100 views

Sophisticated read data from .txt file

I have following .txt file: ...
1
vote
1answer
30 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
89 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
33 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
48 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
48 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
68 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
52 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: ...
1
vote
1answer
102 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
52 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
66 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
74 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
108 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
47 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
146 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
58 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
240 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
182 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
89 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
47 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
118 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
53 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
220 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
51 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
88 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
82 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
66 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
73 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
81 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,...

1
2 3 4 5
28