Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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

4
votes
1answer
19 views

Importing the text from paragraph elements within a specified division

I'd like to import plaintext found within paragraph blocks nested anywhere inside certain div's. Here's a page to try it on: ...
0
votes
1answer
65 views

Importing large csv files

I'm trying to import a large csv file (around 1.5GB) so I can multiply one of the columns, and plot it against another. There are seven columns in the file when I try and open it in excel, and I need ...
3
votes
2answers
64 views

Importing an Excel file as a structured dataset

I need to import an Excel file as a dataset with row and column headers, and the following option using "Dataset" does not work. However, I can import the Excel file using "Data" option as a list ...
2
votes
2answers
49 views

Using list of rules from imported .mat file

I'm attempting to learn Mathematica to replace MATLAB. However, I have some data in .mat files which contains named variables. Whenever I import the .mat file, I get a list of rules. What's the best ...
0
votes
0answers
27 views

interface problem for image recognition

I made the following code that should recognize the image imported from the pc. If I do it for the first time it's fine, but if I load a second image it leaves me the name of the previous one. You ...
0
votes
0answers
14 views

Import all images of a folder on mathematica [duplicate]

How can I import all the images of a folder on mathematica specifying the category of such images? For example, if I have a folder with images representing the night how do I import them and specify ...
0
votes
3answers
65 views

How to import a CSV file of files that have space delimited values?

I've received a data file in a mysterious ".pos" format. It consists of many lists that are separated by the space character; these are in turn separated by commas,e.g., { {a b c},{d e f},...} ...
2
votes
1answer
44 views

Importing a raw image

I have raw images that I can import and view with ImageJ. They are the output of a program which I don't have the source code for, so I'm stuck with the output format. They are imported as follows ...
1
vote
0answers
42 views

Importing and evaluating text file [closed]

I appologise in advance if this was asked before, but I couldn't find the answer. I have a huge amount of data collected in several lists that I need to analyse. I don't want to have all this data ...
1
vote
0answers
64 views

Cannot import data as NetCDF

This might be obvious but I cannot import a dataset. Import["data.nc", "Datasets"] returns {"longitude", "latitude", "time", "time_weights", "date", "aet"} ...
2
votes
1answer
39 views

How do you upload text from a PDF using FormFunction?

I can import text from a PDF using text = Import[filename, "Plaintext"]; I'd like to do the same thing using FormFunction, but am unsure how. I've tried the ...
2
votes
0answers
55 views

Import specific range of Google spreadsheet

I am trying to import only a specific range of a Google spreadsheet as data in Mathematica for further usage like plotting. So I tried to use the data = Import["https://...", "Data"] function, but ...
0
votes
1answer
62 views

Get .csv or .xlsx real data, some missing, into Mathematica and form it for curve fitting and 3D plotting

Problem: My data consists of Real values at Real $x, y$ positions. It is stored in the array-forms: comma-separated (type .csv) and spreadsheet (type .xlsx). As a Mathematica Dataset, it may be ...
3
votes
0answers
59 views

Is there a way of reading the data out of a MATLAB's “.fig” file in Mathematica?

I have a ".fig" file from MATLAB that I know is a list of $ (x, y) $ coordinates. As far as I know, the ".fig" format stores the data and recreates it every time is opened. I would like to get the ...
1
vote
1answer
89 views

Numeric data from a color map

Importing the following image (without a scale): and knowing the extreme temperatures, is it possible to obtain the graduated scale? Also, it would be interesting to get the temperatures of all the ...
2
votes
1answer
61 views

Memory consumption problem when reading png images with Image`ImportExportDump`ImageReadPNG

For importing png images I use often: image = First@Image`ImportExportDump`ImageReadPNG[fileName] (see: ?*`*PNG*) since this is faster than: ...
1
vote
1answer
64 views

Is there any built-in way to loop over a column/lines?

I have a file as following: cat data.m 1 2 3 x+y 2 x + 3 y So it contains rows containing numeric numbers or expressions, which at this stage is not ...
4
votes
1answer
73 views

Reading total number of frames in an AVI

I am reading large AVI files and want to know the number of stored frames. To do that in Mathematica 11.3 I use the following: ...
0
votes
1answer
25 views

How to dynamically name and date a file for import? [duplicate]

I want to import a data file named "A(var1)B(var2)C(var3).dat" where the values of the variables var1, var2, var3 are being provided by a function. How can I do that?
6
votes
1answer
173 views

Fast export of png images from large avi file with Mathematica 11.3

In version 11.1.1 I used MathMF by Simon Woods to extract png images from large avi files (up to 100GB in size). His package was MUCH faster than using something like that: ...
0
votes
0answers
40 views

Undo added line breaks PutAppend

I used PutAppend to write away a some results. It turns out that Mathematica has inserted annoying line breaks. This is discussed in Why there are line breaks when ...
2
votes
0answers
27 views

Loading previous saved variables into DynamicModule

I have a GUI, built inside a DynamicModule. I would like to be able to load previous set options and values, changing the values that are currently set within the DynamicModule, not the global ...
1
vote
0answers
50 views

How to parse through a .txt file in the Classify function and assign a class to each item?

I have 2 txt files that contain 500 DNA sequences each. Both files use 2 hard returns to separate the sequences like so: ATCGATCT... ATCGATCT... ATCGATCT... I ...
4
votes
2answers
228 views

Question regarding MathMF

I want to extract images from an avi file with MathMF from https://github.com/SimonWoods/MathMF. (please see here the answer of Simon) A test avi file (named "...
1
vote
1answer
77 views

How to import complex .txt file to matrix in MMA for user defined keywords / database?

I am thinking about how can we import complex .txt file (Ansys/Abaqus) to MMA for the selected database? For example: txt file (input file): ...
0
votes
2answers
37 views

Is there any means of Importing folder with images( .jpeg) directly?

I am using Mathematica for training dataset of fruits, for which i need to import the collection of images. Can we import a folder with images directly or Do we need to import each image in iteration ...
5
votes
2answers
147 views

How to import only the first column

I have a file with data given in this manner: ...
5
votes
1answer
170 views

How to save/load (export/import) symbolized variables?

I have a large number of variables/functions with subscripts and use definitions with memoization to avoid recomputing them within a kernel session, but I cannot figure out how to export them all for ...
8
votes
1answer
121 views

11.3 - import of files with paths containing non-ASCII characters [duplicate]

Import: Version 11.2 works correctly, no problem with non-ASCII characters in the path of file. But upgrated version 11.3 a) does not import these files b) ...
0
votes
0answers
35 views

How to Import .edf file in Mathematica?

My file is: https://drive.google.com/file/d/1dbjE4zWRS4zKr2lQk05wg-bjEyM5KT0I/view?usp=sharing I was trying to import .edf file in Mathematica, but every time it showed error. Import["File.edf"]; ...
5
votes
1answer
116 views

webscraping: Wolfram notebook vs browser

In the Netherlands there is a website Funda.nl There you can find all houses for sale or for rent. I used webscraping as a tool to collect data for analyse-purpose. The script I used is like: ...
0
votes
2answers
41 views

Customized function for manipulation of data and plotting

I have a number of datasets (csv) which require the same manipulation and plotting, but I don't want to repeatedly write the same set of code again and again. What is the best way to do this? Piece ...
6
votes
1answer
215 views

Working with a CSV data file with 100 millions rows (and 30 columns)

I am new to working with large datasets.. Currently I am struggling to upload a "big data" file into Mathematica. The file is in the CSV format and has 14GB. There are 100 millions of rows and 30 ...
3
votes
1answer
68 views

Importing data from an https server

When trying to import data from an https request I get the following error message. ...
2
votes
2answers
38 views

View header information of FITS file

I'm dealing with .fits (.fit) files with Mathematica, and these files are Fermi LAT GRBs data. We can import one of them by ...
2
votes
1answer
38 views

Using SFTP directories as regular directories

Is it possible to use SFTP directories in a similar way to normal directories in Mathematica? I would like it if I could Import,Export,Get,Put etc to SFTP directories just as if they were normal ...
1
vote
1answer
42 views

Convert Part of Subscript Files to Math Form

I have french subscript file here: https://uploadfiles.io/iehon If you download it an open it with Word, you can see that the math sections are but between $<i>$ and <\i>: To import the ...
1
vote
0answers
35 views

Help Import Special Character File [closed]

I have a text file. Get it here: https://ufile.io/iehon It's frensh, a subscript file and there is a lot of math. When I import it in Mathematica using: ...
2
votes
1answer
34 views

Character Encoding Problem with ReadList

I have a .srt file (subtitle file) with the following text: Chapitre 1 : Systèmes d'équations linéaires et matrices However when I import it into Mathematica, using: ...
1
vote
1answer
53 views

How to separate rows with commas in imported CSV

I imported a CSV file that uses commas as its delimiter, but some fields also contain commas. When I import the file into Mathematica as follows ...
3
votes
1answer
61 views

Excel to Mathematica and plot [closed]

I have an csv file that I open with excel. In it 2 columns of numbers. I'd like to import it to mathematica and plot it. How can I do ?
2
votes
2answers
43 views

How can I read the special element in a very complicated format of data?

I have a complicated data set (see the image below), and I need to read the magnitude of Etot from this data set. Any idea how can I do that?
1
vote
1answer
68 views

Loop for saving images with plots of numerical data to make a movie

I am having a problem with construction of a loop that would load data from a bunch of files one by one, then produce a plot for each of the files, then save each of the plots as a separate image file,...
1
vote
0answers
55 views

Creating a plot from an image of the plot

I have an image of a plot at https://imgur.com/a/h9OWP6p Import["https://i.imgur.com/vNqm0Em.png"] I want to create a plot of it, consistent with the scale in ...
1
vote
0answers
48 views

How can a .jmp file (from the statistical software JMP) be imported into Mathematica?

The Wolfram documentation and MSE say nothing about the statistical software JMP or .jmp files. A simple Import["filename.jmp"] or ...
1
vote
1answer
92 views

Problem importing from HDF5

I'm trying to import an item from a valid HDF5 file, but I get this error: I can read the metadata, but cannot import the actual tensor dataset: And yet it's not an issue with the file's data - as ...
0
votes
0answers
68 views

Trouble importing PDF onto mathematica

I'm new to Mathematica, so I don't really understand some of the coding. Each time I enter this, or a variant of this code ...
3
votes
1answer
79 views

ReadList text file from GZIP [closed]

I'm trying to open several large .txt files which are located in a GZIP file. I am able to import each separate file using Import, but this is too slow. I do it like this: ...
1
vote
0answers
48 views

Import file without specifying the directory

Consider a situation when we import some file in a .nb from a sub-directory located at the directory where .nb is located. We need to write specific path to the file. Next, suppose that we moved file ...
4
votes
1answer
84 views

How to disable date parsing in Import? [closed]

I am trying to import a .csv file which has columns of strings, reals and dates. Import keeps giving me the dates as DateObject, ...