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

Importing multi sequence Midi Files into Mathematica

Can I import a multi sequence Midifile into Mathematica? Can I import multiple short Midifiles into Mathematica in one go? Thanks, peter
0
votes
1answer
20 views

How to get correct note timings when importing multi-track Midi files?

I have observed when importing midi files with more than one track, the times for every track except for the first one are sped up. for example, ...
0
votes
1answer
59 views

Import structure from Matlab into Mathematica 12 and nested lookup

I use Matlab and generate data that I save in a structure in a MAT file. I want the results to be loaded into Mathematica, as several analysis and plots are best when done in the latter than in the ...
4
votes
1answer
148 views

Copy clipboard content to mathematica notebook - line break symbol changes

There are 3 kinds of line breaks \r \n \r\n For windows, \r\n is standard. Suppose that there is a file called document.txt, using \r or \r\n as line breaks. Suppose that I open document.txt with a ...
2
votes
1answer
54 views

Read files from TLS server using Mathematica

Good morning, I would like to know if anyone knows if it is possible to read files from servers with TLS using Mathematica. In particular, my interest is to read files from the CDDDIS server (NASA's ...
1
vote
0answers
70 views

Is there already a program that analyzes THz-TDS data in Mathematica?

I plan to write a code that reads the time domain data(sample+reference), performs Fourier transforms, calculates transmissivity, solves the transfer function numerically, and gets complex refractive ...
20
votes
2answers
913 views

How to make Mathematica read in CSV as fast as Python's Pandas

I have many big CSV files for processing in Mathematica. And each time loading them into Mathematica takes a long time. Meanwhile, it takes much less time using Pandas under Python. For example, ...
1
vote
1answer
47 views

Editing complex arrays for export to Python

Quick question, can anyone advise on an efficient way to convert complex arrays with complex part denoted '${I}$' in Mathematica to '$j$' (as used in Python) and curly brackets '{}' replaced with '[]' ...
0
votes
4answers
70 views

Formatting an imported data into Mathematica in a matrix form

I have a file whose data read as {{0,:,1,2,3;},{1,:,0,164,165;},{2,:,0,3,167;},{3,:,0,2,166;},.., {"$$"}} I have to format this data into a matrix. There ...
1
vote
0answers
53 views

Lists of rules vs. Associations

It seems that generally, Mathematica users (or at least the Q&A I've read here) prefer associations to represent data in ways that many other languages would use structures. However, when ...
0
votes
1answer
24 views

How to copy a specific parameter from imported text file

I am working with the imported text files in Mathematica. Each text file has experimental data, measured at a several input parameter like "Field (V/cm):" How to ask Mathematica to copy the ...
2
votes
1answer
102 views

How do I get the data from this binary file? [duplicate]

I have a file which contains the following binary data: ...
6
votes
2answers
136 views

Is there a CryptocurrencyData alternative to FinancialData?

What's the easiest way to ingest time series data on cryptocurrencies into Mathematica? I'm looking for up-to-date price, volume, and other properties for both major coins and altcoins.
1
vote
0answers
24 views

Automatic import of the lexicon for the Game of Life

I am trying to import the lexicon for the Game of Life, preserving the structured information as far as possible automatically (so if the data changes a future import will update it). The text form of ...
0
votes
0answers
18 views

Can FormPage be used to upload a file (a CSV to be specific)?

I want to use FormPage to give the user an option to upload a CSV file and once it is uploaded, the data from the file should be plotted. How can this be done? Thanks!
0
votes
2answers
68 views

Importing selected data from text files

I have a large number of text files in a folder with different names. These are the output data files from an experiment. Each text file has first 50 lines of text, followed by four columns of ...
0
votes
1answer
33 views

How to import a table of numbers from a .txt file without losing dimensions?

I have a long txt file (which attached here). I want to import this file and then use a special line (in this case line 112) to plot a graph. I tried this ...
1
vote
2answers
69 views

How to find the line number of a string in an imported `.txt` file?

I have a txt file which contains a lot of data (in fact it's the result file of a .nb file which I have run on a cluster). I want to use the data to plot some graphs in a new .nb file. Since there are ...
0
votes
1answer
32 views

How can I apply list of replacement rules properly to a data after importing the data?

I have a list of data in which each element has its name as follows: ...
1
vote
1answer
41 views

How to extract the data from the given filename?

Consider a few files with filename structure data/Neutrino distribution functions/NAME_distribution_mass=XX.0_theta=0.YY.txt where XX/YY may have an arbitrary ...
2
votes
1answer
57 views

Importing .ico file

When I try to import any .ico file, I get the following error ...
0
votes
0answers
26 views

How to save data to a new file, import the data and then use it

I have a for loop which generates random matrices and then some scalar numbers for example: ...
2
votes
3answers
93 views

How to make a 3D listplot with meshlines going only along one cartesian coordinate?

I have an external python code that computes a bunch of data, which I read into Mathematica as a table, so: Import["Documents\Hubbard\Python\data.dat", "Table"]; These files are ...
0
votes
0answers
35 views

how to exclude empty cells when Importing from excel?

I am very new to mathematica and I need help importing excel file. The file that I am importing has a bunch of empty cells throughout the column and it is giving me some trouble taking an average of ...
0
votes
0answers
16 views

How to specify authenticity of SSL for querying APIs?

While ago I was using this command with no issue, now I have an SSL error: ...
0
votes
0answers
43 views

Large MatrixMarket file fails to load into Mathematica

I am trying to load a large sparse matrix (~20GB) into Mathematica using Import[]. The machine has plenty of RAM available. However after a while ...
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
51 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
1
vote
1answer
69 views

Read arbitrary line from CSV file

Consider some large ".csv" file. For instance: ...
1
vote
1answer
54 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
22 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
270 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
111 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
110 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
62 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
133 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
45 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
52 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
110 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
39 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
31 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
45 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
59 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
69 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
107 views

Sophisticated read data from .txt file

I have following .txt file: ...
1
vote
1answer
36 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;...
3
votes
1answer
192 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
39 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
57 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
49 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, <...

1
2 3 4 5
29