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

Export and import sound give different data

If I export a sound object and then I import the same sound I have a different data array. The errors seem to have a certain regularity. They are all multiples of the same value: Why does it ...
1
vote
1answer
135 views

How to get URL request response in Mathematica?

I am considering the following link: https://myimmitracker.com/en/ca/trackers/consolidated-e-apr-tracker-express-entry-permanent-residency-application It produces the following page with a table in ...
3
votes
0answers
149 views

How to import a binary data generated by Fortran? [closed]

I have a unformatted binary data file generated by gfortran. However, when the binary data is imported by Mathematica, a correct result is not obtained. This is my fortran code: ...
1
vote
2answers
80 views

What info is exchanged when using Import[url]?

When using Import with a url what information is broadcasted/sent to the receiving end of the request and is it possible to monitor/modify that information?
1
vote
2answers
40 views

Import date and number Matrix Formatted as text

Hi I am new to Mathematica. I have a large text file that looks like: {"i":"2008-02-22","v":"9.102"},{"i":"2008-02-23","v":"11.14"},{"i":"2008-02-24","v":"12.21"}.....
4
votes
0answers
102 views

How to import unsupported language dictionaries?

Mathematica seems to only know about these 27 languages: However, I need access to dictionaries for other languages, namely Romanian and Japanese. Now, WordList ...
1
vote
2answers
74 views

How can I extract blocks of 8 bits data from a plain text file?

I have a plain textfile consisting of 4M numbers (0 and 1's) from the number Pi. I would like to split this textfile into blocks of 8 bits (ie 8 characters). I know this can be done with StringTake ...
2
votes
1answer
101 views

Importing data multiple times from the same file

I have a large data file (.txt) with bivariate data in the following form x1,y1 x2,y2 x3,y3 . . . xn,yn ---------F 0 x1, y1 x2, y2 . . . xn, yn --------F 1 . . . ...
3
votes
2answers
136 views

Import columns from a long .txt file

I have to import columns 1,2,3, and 6 from a long (2 * 10^5 rows) file with this structure: ...
2
votes
2answers
166 views

Importing Excel File as Dataset

This might be a basic question but I couldn't get it to work. I have a dataset in Excel that I import to mathematica using ...
3
votes
1answer
71 views

What's the best way to import such dataset?

https://www.ocr.org.uk/Images/400305-large-data-set-lds_1-h630-2018-h640-2018-2019-pre-release-data-mei.xlsx What's the best way to import such dataset? I have tried to use ...
3
votes
1answer
116 views

Using Mathematica to read .HDF (not .HDF5) metadata?

I am obliged to work with existing .HDF files. These contain metadata essential to my research that Mathematica (latest version) appears unable to access. Metadata listed on https://reference.wolfram....
4
votes
0answers
63 views

Is this the most idiomatic way to convert matrix into dataset?

Is this the most idiomatic way to convert matrix into dataset? (for Mathematica 10 or higher) I was kind of hoping this would work: ...
2
votes
1answer
103 views

Mathematica incorrectly imports a table

I am trying to calculate the eigenvalues of a large matrix (10^4x10^4), which is formed by summing a matrix containing advective terms and a matrix containing diffusive terms. I am using the following ...
2
votes
1answer
37 views

Import files AppendTo and ToExpression

I have a list of files all indexed as filename1,filename2,filename3,... up to 50, all in the same directory, and I wanted an ...
1
vote
1answer
41 views

Programmatic access to Export options for filetype

For specific filetypes, e.g JPG, GIF, etc. I would like to get a list of available options for use in Import and Export. Unfortunately, the obvious thing doesn’t work: ...
4
votes
4answers
558 views

How can I replace ; with , in an imported excel file and to delete "

I want to import an excel .csv file and ListPlot the data. ...
2
votes
0answers
38 views

Problem Importing Multiple `.wls` Files From Parent Directory [closed]

Inside a Wolfram Script file, I'm trying to import another .wls file that's in a parent directory. More specifically, I'm trying to import ...
4
votes
0answers
52 views

Importing and and manipulating large GEOJSON files based on geographic locations

I have large GeoJson data files that I would like to import (i.e. buildings in a city, see image below for data structure) and then "cut out" only the buildings that are within approx. 100 GeoDisks (...
1
vote
1answer
50 views

import list of lists list-wise

I produce several times automatically a number of different lists of varying length and structure like: ...
3
votes
2answers
135 views

Is there a straightforward way of naming CSV/TSV columns when importing as a dataset?

I have data in TSV (tab-separated) files. The thing is, columns do not have headers. Importing data is as easy as ds = Import["foo.tsv", {"Dataset"}]; ...
10
votes
1answer
104 views

Creating image layers and saving to pdf

In Adobe Illustrator (and other such graphics programs), it is possible to place different objects on different layers. All objects on a layer can be edited together, their stacking changed, and other ...
9
votes
1answer
277 views

Import data from dynamically generated webpage

I'm trying to get data from a web-page data=Import["https://stats.nba.com/team/1610612738/traditional/", "Data"] It returns only a textual information. ...
4
votes
1answer
39 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: ...
-1
votes
1answer
254 views

Importing large csv files [duplicate]

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
194 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
133 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
38 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
19 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 ...
1
vote
3answers
696 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},...} ...
3
votes
1answer
130 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 ...
0
votes
1answer
59 views

How to load mx file on current notebook with double click on them

I would like to load a mx file into the current notebook just by double click on it. In short, a have a long list of mx files, I want to load some of them and evaluate some cells of a notebook. I ...
1
vote
0answers
58 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
92 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
85 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
92 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 ...
5
votes
1answer
342 views

Huge CSV file with numeric and text data

I try to load a huge CSV file (~ 4 Gbyte), the data is both numeric and textual. So, I can't load the data as a string. ...
1
vote
2answers
139 views

Importing .csv or .xlsx real data with some missing fields and procesing 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 ...
4
votes
0answers
173 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
124 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 ...
4
votes
1answer
107 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
67 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
100 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
32 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?
8
votes
1answer
271 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
47 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
42 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
62 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
280 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
107 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): ...