Stack Exchange Network

Stack Exchange network consists of 175 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

1
vote
1answer
200 views

How to Export to/Import from GeoGebra?

I'd like convert geometric figures between Mathematica and GeoGebra. Does anyone know how to do that?
14
votes
2answers
471 views

How to workaround failures with Unicode filepaths?

(Cross-posted on the Wolfram Community.) The Mathematica's Kernel and FrontEnd currently work well with Unicode file/directory paths, but some other components of the system contain long-standing ...
2
votes
1answer
35 views

How to import a part of an Excel file?

I'm trying to import a part of an excel, the column 20 and the row between 6-59 in this column. I tried : tab = Import[ "file.xlsx"]; time = tab[[20, 6 ;; 59]] ...
1
vote
1answer
31 views

Comma separated images for .gif creation

I recently created a key frame animation using Mandelbulber 2.18-1. Each .png image was placed in a folder with known location. I then dragged all the images and dropped them into a Mathematica ...
0
votes
0answers
15 views

Strange Import behaviour from wls script

I have a data file that is composed as follows ...
7
votes
2answers
313 views

How to import .txt file with missing data?

I have a .txt file that looks like this (direct copy from the file): ...
0
votes
0answers
31 views

How to export a multidimensional array in which each element is also an array?

I have a {15,5,2} dimensional array and each element is itself a {14,16} dimensional array. When I export/import my file as an excel file I get a {15,,5,2} dimensional array but with {} dimension for ...
0
votes
1answer
47 views

Parallel XML import

I need to import some xml information from many pages. I have list of this pages. Doing it in single thread is too long. But I can't access multiple pages from the same IP at the same time. So I need ...
1
vote
0answers
49 views

Import JPG picture missing XMP / EXIF metadata tags

I used Google Picasa to tag a face in a JPG photo, which is stored as an XMP metadata tag within the photo itself: Here is a link to the photo. If that URL has expired, you can download the pic as a ...
1
vote
0answers
52 views

Read NumericArray from a file

Suppose I have a binary file which consists of a list of integer or real numbers. Let's say signed 8-bit integers; so each byte of the file is a single such integer. How can I read it and turn it into ...
12
votes
4answers
558 views

How to extract a specific element from EXIF photographic metadata?

It's now possible to import photographs into Mathematica and import the EXIF data at the same time: i = Import["ExampleData/coneflower.jpg", "ImageWithExif"] You ...
0
votes
0answers
30 views

Verify that a document matches a URL

Writing: Quiet[Length[Import["http://www.africau.edu/images/default/sample.pdf"]]] I get: 2 while writing: ...
2
votes
1answer
41 views

How to import a matrix of integers from MATLAB?

I am importing a matrix from MATLAB. However, there are some redundant items added in the imported matrix. For example, the imported matrix is a binary matrix. After import, it looks like this ...
8
votes
1answer
156 views

Most efficient method for export/import of non-traditional tensor-style dimensions of matrices/tables/lists-of-lists-of-lists(-of lists)?

Hello World! (I did it for my first answer, so it only feels proper...I'm not nostalgic, you are!) OKAY, here we go! Let's start off with the good-stuff, here's my code, made relatively arbitrary, ...
1
vote
0answers
31 views

Importing Data from csv fills my notebook with large list [closed]

Sorry for bother you with such a trivial problem, but I can't stand it! I use Import[file] to read a CSV and I get my notebook fill up with hundred of lines of ...
0
votes
1answer
28 views

How to plot for imported data while performing some operations on different columns?

I have imported an Excel file, then I did multiplied different numbers with different columns; ...
3
votes
2answers
116 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: ...
1
vote
1answer
118 views

New entity type “ Company” in MMA 12 [closed]

New entity type namely Company and Financial have been added to MA 12 to import a company specific financial information. For example: ...
8
votes
2answers
802 views

HDF5 and complex numbers

I'm exporting an array with complex numbers with HDF5 format. When I'm import it, I only get the real part. Simple example: ...
2
votes
1answer
63 views

How to import only a small part from a large data file?

Let's assume that the data: are arranged in a table of $n$ rows by $m$ columns, are stored in a *.dat file or other textual format, number of rows is very large, say $n=10^7$. Suppose we need to ...
2
votes
1answer
60 views

Issues with NifTI images under Mathematica (Neurotica package)

I have some troubles when I want to import NifTI files with Mathematica. When I do: ...
12
votes
1answer
398 views

Reading NIfTI-1 files

How can I read NIfTI-1 files (.nii extension) in Mathematica? Are there existing tools for this?
6
votes
2answers
184 views

How to read .npy file in Mathematica?

I have a .npy file which is created by numpy of Python as below:- ...
14
votes
1answer
180 views

Exporting graph object for later use

Bug introduced in 10.0 or earlier and fixed in 12.0 We are planning to analyze the geometry of artery branch patterns. We convert the binarized image into graph object using ...
4
votes
1answer
73 views

FITS files are importing with different values depending on version

Bug introduced in 11.3 I recently updated to 11.3 and found that my FITS files don't import the same way anymore. I've read a posts about the changes made to FITS imports and can deal with that fine ...
1
vote
1answer
52 views

Simple approach to importing data and reading headers

Admittedly, this will be a very naive question, but I'm really curious to learn how one can achieve the following in a simple manner: Suppose we have a text file formatted like so: ...
15
votes
2answers
2k views

Data acquisition from a Measurement Computing USB device

I would like to use Mathematica 9 for to acquire data from a Measurement Computing (MC) USB-201 analog to digital (and other) device for classroom demonstration. I do not have a budget to buy LabView ...
1
vote
2answers
115 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 ...
23
votes
1answer
702 views

Getting EPS imports to respect the original fill rule

One major problem in my attempt to answer to the CountryData flags question is that the way Mathematica handles filled curves differs from the way SVG and EPS style editors do. The latter two have the ...
7
votes
1answer
124 views

Problem to import numbers longer than 19-digit with “JSON” or “RawJSON”

Bug introduced in 11.0.1 or earlier and fixed in 12.0. MMA 11.0.1.0 (Windows 10, 64-bit) I see that "JSON" import can be buggy (154245), so my question is simple: can the following behaviour be ...
7
votes
3answers
302 views

Reading a file as a ByteArray?

I want to read in large files as byte strings. Import[..., "Byte"] yields a list of Integers that takes up much more space (16 times more) than the file. ...
1
vote
0answers
57 views

How to uncompress zip file fast with Mathematica?

What is the fastest possibilty to uncompress zip files with the following content? It containes numbered ".png" files, corresponding ".header" files (theses are text files) and a file called "...
5
votes
4answers
95 views

Import every 50th record from a data file [closed]

I want to import a really big data file which seems like it is too big for Mathematica. That's why I want to import the data in parts. For example, if I have 15,000 rows of data then I would read in ...
1
vote
1answer
76 views

Converting .STL from Shell to Solid for stress analysis of wing

I'm new to Mathematica as this is the first class I've had to used it in my undergrad time as an aerospace engineer. Anyway, I have run into a problem that I can't figure out. I have created .STL's of ...
1
vote
2answers
75 views

How can I import a .txt file containing a matrix of numbers and work with its columns? [closed]

I want to import a text file which has two columns. Then I want to assign one column to an array alpha[i]. Using the following command assigns the whole file to t[i]. ...
1
vote
1answer
91 views

How do I create multiple plots from an Excel spreadsheet?

I have imported an Excel spreadsheet with dimensions {row, col}= {92, 28} into Mathematica, I want to plot 27 datasets from the spreadsheet: column 1 with column 2, column 1 with column 3, ..., column ...
1
vote
2answers
90 views

Convert data types from string to list (Coastal Buoy data) for DateListPlot

I downloaded Coastal buoy data from the CDIP webpages and saved it as a text file. The trouble is that the data has spaces between the YYY MM DD hh mm. {Edit 4/5/2019: Updated link Please see ...
3
votes
1answer
67 views

Retrieve File Dates for Files Inside an Archive (ZIP)

Suppose I have a zip archive file with many files in it. I can get a list of the files in the archive with: Import["zipfile.zip"] I can get data out of one of ...
1
vote
0answers
43 views

Conversion of STL files to 3D Images

I am trying to convert some stl files to 3d images in MMA 11.3. I came across this post that contained some code making use of parallelization to speed up the process, as follows: ...
1
vote
1answer
66 views

How can I suppress the warning $\mathrm{\it precision\ may\ be\ lost}$?

When I import data from a .dat file, V11.3 emits the message: is too small to represent as a normalized machine number; precision may be lost. How can I close the ...
0
votes
0answers
22 views

How can I Get[] a file and keep it in a given context? [duplicate]

I have a large MX file, which I need to Get before running my analysis. The following code puts the symbol in the ...
0
votes
1answer
48 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 ...
5
votes
0answers
67 views

Hyperspectral files in the ENVI format?

Have any of you had the pleasure of reading geospatial / hyperspectral files in the ENVI format? Headers that describe the data here, https://www.harrisgeospatial.com/docs/enviheaderfiles.html which ...
1
vote
1answer
97 views

How can I make a frequency plot of successful trials? [closed]

I have got different files with the result of an experiment varying 2 variables. The files are in this link. Each file has 3 columns of data: the first column is the same for all the rows of the file ...
0
votes
0answers
41 views

How to ImportString “JSON” with Unicode characters? [duplicate]

Update The short answer is that when getting results back from an API into an HTTPResponse object the "Body" property is a post-...
2
votes
1answer
55 views

How can empty fields in a csv file be set to Missing when importing as a Dataset?

When importing a csv file with empty fields as a Dataset, the empty fields are set to zero-length strings (""). There is an option, ...
2
votes
1answer
84 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 . . . ...
8
votes
1answer
179 views

Scrape AJAX Website with Webdriver

I hope the new Webdriver functionality can help as the normal Import and HTTPRequest don't work. The sites I have found are a ...
8
votes
1answer
220 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. ...
2
votes
1answer
107 views

Deleting missing values from a dataset

I wanted to create a dataset of all UFO sightings in April of 2018. The AssociationThread doesn't want to work, because some of the entries are missing value, what ...