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 about getting data, files, images etc. from various formats into a form that can be read, tranformed and manipulated by Mathematica

3
votes
1answer
55 views

Importing data from an https server

When trying to import data from an https request I get the following error message. ...
8
votes
1answer
1k views

How can I recover the source code from cdf file?

by a mistake I have deleted the nb file by which the CDF was generated. All required definitions were in one cell. If I remember the code looked like this: ...
2
votes
0answers
48 views

How to store the values of a function in a file

As it is well known, it is possible to define a function that remembers its values once its evaluated, using the following code: f[x_]:=f[x]=rhs During the day ...
8
votes
1answer
97 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
2answers
31 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
1answer
157 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 ...
0
votes
1answer
85 views

How can I get rid of extraneous brackets when importing data from MATLAB? [closed]

How can I easily correct this data sequence from MATLAB to one readable in Wolfram Mathematica? The problem is the 2 outer brackets: ({{ ... }}) ...
4
votes
2answers
97 views

How to import only the first column

I have a file with data given in this manner: ...
2
votes
3answers
446 views

Export, Import and extra curly brackets?

list= {{}, {200, 200, 200}, {}, {201, 201}}; Export["list.csv", {list}, "csv"] data = Import["lnumber.csv", "csv"]; The result of this export and import is an ...
1
vote
1answer
53 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,...
13
votes
2answers
352 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 ...
6
votes
1answer
82 views

Syntax for making a custom `Import` converter with parameters?

The machinery for Import allows custom converters to be defined for importing different file formats. The examples in the link provide details for writing such a ...
0
votes
0answers
29 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
94 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: ...
6
votes
1answer
423 views

How to import/export to libsvm?

Under the hood Mathematica uses libsvm, so I don't think this question is beyond the pale. I need to export an svm I trained with Classify to the standard SVM Format (which is readable by libsvm). ...
8
votes
2answers
114 views

How to import python pickle *.pkl?

I find some ELMo-models on github. I want to use the Simplified-Chinese version: http://pbmpb9h15.bkt.gdipper.com/zhs.model.tar.xz But these files were saved as python pickles. I want to import ...
3
votes
2answers
440 views

Mathematica Import functions fails for data download from website

I am trying to download some data from a website that uses "java enabling" to tell me that I cannot download the data. Using Import[ "website...", "Data"] I get ...
14
votes
6answers
4k views

How do you skip missing data values in a data file?

In scanning through a simple imported file of weather station data, some dates have missing data. What is a test to use to check whether a datum is valid? I tried ...
19
votes
1answer
2k views

Release the web camera after using CurrentImage[]

CurrentImage[] will capture an image from the webcam. It is even possible to create a live video in the notebook using ...
6
votes
1answer
145 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 ...
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 ...
2
votes
1answer
34 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 ...
2
votes
2answers
31 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 ...
1
vote
1answer
40 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
32 views

Help Import Special Character File [on hold]

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
29 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
48 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
57 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
42 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?
-2
votes
1answer
286 views

How to get data from Histogram (HistogramList) for making plot?

I have a data I need to calculate the probability of the second column of my data in different bins and then getting(-LOG) from this probability and plot with the each bin related to it. my data is ...
9
votes
2answers
76 views

What is the fastest way to read the new lines in the dynamically updatable file?

I'm writing a log to a simple .txt file and want to read the last few records using Mathematica. But there are some problems. f = OpenRead["logs.txt"]; Skip[f, ConstantArray[Number, 2], 1]; Read[f, ...
-1
votes
1answer
67 views

Importing a file inside Zip with OpenRead

How do I import a text file that is compressed inside a .Zip file using OpenRead? I know how to do it using Import ...
5
votes
1answer
408 views

PDB Graphics Options: Opacity and Scale to superimpose on 3D point plot

I am trying to superimpose a PDB file into a 3D plot of points extracted from the PDB model, while making the PDB somewhat transparent for easy viewing of plotted points. My problems are as follows. ...
10
votes
2answers
1k views

Creating an example of video image tracking

Note: Please see comments below @bobthechemist's answer for why question was edited. I've made a video of two teams playing soccer. Now I would like to translate each soccer-player to a (x,y) ...
1
vote
0answers
53 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
47 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
61 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
32 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
75 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
47 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
83 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, ...
4
votes
1answer
49 views

How can I import a txt list from a dropbox link?

I have a large txt data stored in this link. I have tried this: ...
0
votes
2answers
66 views

Plotting Imported Excel Data With Specific Format into Mathematica 3-Dimensionally

EXCEL SPREADSHEET I have an Excel spreadsheet (link to it and its image given) that contains data I want to graph three dimensionally. Purple is for the x-axis values (wavelength). Blue is for the ...
4
votes
0answers
39 views
2
votes
1answer
33 views

How to read the files inside of a tar file without untaring it?

I have a tra.gz file which contains many ascii format files insdie. I would like to read those ascii files without untaring the actual tar file. I know it can be done in python easily but is it ...
-1
votes
1answer
48 views

Performing a nonlinear fit from data imported from a text file

I have a text file data that I imported and I want to fit it with a given equation. I tried to fit but it did not work and gives Here is my code: ...
12
votes
1answer
154 views

Exporting graph object for later use

We are planning to analyze geometry of artery branch pattern. We convert the binarized image into graph object using MorphologicalGraph[]. To avoid the complexity ...
1
vote
1answer
49 views

Inserting dat by using for? [duplicate]

I have data set in a form ROG1.dat, ROG2.dat,...,ROG100.dat, I want to import all of them in Mathematica, Can you tell me how? Best
0
votes
1answer
44 views

How to correct not precise values

I have the source file file = "test.txt" with these values: ...
0
votes
0answers
11 views

Importing clampex .abf data into mathematica

I`ve been looking for a way of directly importing data from axon binary files (.ABF) acquired with the clampex software (software webpage). I believe this will be very helpful for all the user that ...