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

0
votes
2answers
39 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 ...
0
votes
0answers
36 views

Cannot produce time series after matrix multiplication with Id or Diag matrix

I currently face the problem I cannot solve. I think the answer is obvious, but I am unable to solve it. When I do: ...
6
votes
1answer
106 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
0answers
23 views

Imported CSV output shows null with actual data value; can't plot data [on hold]

I'm trying to do a simple import of 2-column CSV data. the first column is integers from 0 to 100 and the second column is various decimal values. The problem is that except for the first pair of ...
1
vote
0answers
30 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
28 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
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 ...
1
vote
1answer
38 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
29 views

Help Import Special Character File

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
26 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
41 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
56 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
41 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
45 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
48 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
44 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
55 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
31 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
70 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
46 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
81 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
47 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: ...
9
votes
2answers
75 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, ...
6
votes
1answer
61 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 ...
4
votes
0answers
35 views

Weird behaviour when importing a mixed graph from GraphML file

Consider a mixed graph G1 stored in GraphML file: ...
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
46 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
153 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
42 views

How to correct not precise values

I have the source file file = "test.txt" with these values: ...
0
votes
0answers
10 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 ...
0
votes
0answers
33 views

How should I import list of results with scientific numbers so they can be used for further calculation?

I have a file, listOfResults.txt, consisting of many rows of which the following is an example: ...
1
vote
1answer
38 views

Import image files in the order of the file name number [duplicate]

I would like to import images which are frames from a video, they are numbered, so importing them in the correct order should not be a problem... However, when I import them, by writing: ...
3
votes
2answers
39 views

How to convert a list of names and values into a series of expressions [duplicate]

I had an Excel spreadsheet with a list of symbols names in the first column and a list of values in the second column. I imported it. Working with the resulting expression, I now have (in Mathematica) ...
1
vote
1answer
47 views

How to parse complex response from SDMX-JSON endpoint in Mathematica

I am trying to use a datasource that has an SDMX-JSON endpoint. I am currently running my tests on Mathematica 10.3.1 running on 64-bit Linux. I started off by familiarising myself with the tools to ...
1
vote
3answers
31 views

Importing table with symbolic and numerical rows

Consider generated numerical data with added symbolical row: ...
-1
votes
1answer
65 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 ...
4
votes
0answers
52 views

Export/Put and Import/Get

I have questions about importing and exporting that don't seem to have up-to-date answers anywhere. What's the difference between Export and Put? Which should I use if I care about how long it takes ...
1
vote
1answer
45 views

Memory consumption for importing numerical data from an ascii file

I am importing a file which contains data consinsting of 8918347 lines and 6 columns of the following type: ...
1
vote
2answers
59 views

Import data from Excel and plot in Mathematica

I'm trying to Plot data in Mathematica that I upload from Excel. The Excel file has 5 columns. The first column I would like to be the x-values, and the remaining ...
1
vote
1answer
55 views

Getting PDF from imported Histogram

So I'd like to create a probability density function from an existing histogram from a program that I use. My input data is of the form ...
10
votes
1answer
116 views

Import Converter as a Paclet

In short, I have a package that can load a proprietary device file-format. The underlying reading code is written in Java, packed into .jar, and in a Mathematica ...
3
votes
1answer
87 views

Getting data using webscraping (Obtaining links from search engine with redirect)

In the past I have used the function Import in relation with "Hyperlink" to collect hyperlinks and data from the internet. For ...
3
votes
1answer
41 views

How to retrieve values of a function from a file

I defined the following function: q5e8[z_?NumericQ] := q5e8[z?NumericQ] = NIntegrate[Sin[(2 5 10^8 - v) z]/z^5, {v, 0.1, 2 5 10^8}] As you can see, it is a ...
2
votes
1answer
28 views

Just typing Import[] tries to list folders in a directory, and it is slow over sshfs

It appears that Mathematica tries to list the folder that you're typing into an Import[] statement. Since I'm working with folders mounted over sshfs and they ...
1
vote
3answers
93 views

How do I make 3D (densityPlot) and 4D (densityPlot3D) plots from data in excel file?

I have data from an experiment with about 500 rows and five columms. I have learnt from this forum how to import my data with the code. importeddata = Import["sample.xlsx"][[1]]; Grid[importeddata] ...
1
vote
2answers
60 views

How to increase the speed on opening and playing gif?

I have a gif Example.gif, and would like to play it in a presentation. I used the following code:- ...
1
vote
0answers
25 views

Accelerate import of table of numbers

I've been writing a ServiceConnection to the OEIS and one thing I need to do is import large sequences of numbers, like this one. My first though for this was to ...
0
votes
0answers
29 views

Procedure for importing .mat from MATLAB and plotting in Mathematica

Suppose I have a .mat file containing a single matrix. Now I wish to import said matrix to Mathematica and plot some content of the matrix. For example suppose I wish to plot the second row of the ....