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

3
votes
0answers
57 views

URLDownloadSubmit is not asynchronous?

I'm trying to download a few thousand images (using an authenticated get request). This explanation of parallel downloading was a great answer to the problem of handling massive parallel asynchronous ...
1
vote
1answer
57 views

Import of a SubRip file [closed]

How can you import a SubRip file? I tried plain Import[] but it did not work. Unfortunately I can't attach a SRT example, but you can find SubRip files on edX. ...
7
votes
1answer
211 views

SemanticImport fails with all files on Mac OS 10.13

MacOS 10.13 Mathematica 11.2.0.0 This is part of an assignment - my Semanticimport fails with all files though. the error: ...
1
vote
0answers
35 views

SemanticImport cannot find files

I have the following, simple code I am trying to execute: SemanticImport["data.csv" <|2 -> String, 3 -> Integer|>] Which gives me the following error:...
2
votes
4answers
108 views

Import two variable data from excel

I'm quite new to Mathematica. I've been looking for the information but couldn't find it. I have several sets of data corresponding to the exposure of photographic paper. On the first row I have the ...
1
vote
0answers
58 views

Axes labels in importing NetCDF files

Issue I would like to get Mathematica's NetCDF functionality compatible with that used in the Python package xarray. First generate some dummy data. ...
2
votes
0answers
53 views

What image adjustments are made when importing raw camera data?

I am trying to use Mathematica to import and process raw camera data in the Canon CR2 format. What I would like is data which has a linear relationship to exposure. I am thinking that the closest I ...
8
votes
2answers
251 views

Can't import Gluon into mma

This is a simple DNN from Fast, portable neural networks with Gluon HybridBlocks: This is json file and params file of Gluon(MXNet) ...
1
vote
1answer
109 views

Import and DatelistPlot from CSV

I have daily time series data on a CSV that I'm trying to plot, but I can't seem to make it work nor can I find a clear answer as to what I'm doing wrong. This is ...
4
votes
2answers
208 views

Using Cases from the book Basic Image Processing in Mathematica

In the book "Basic Image Processing in Mathematica" written for Mathematica 10 and earlier, the author does this: ...
1
vote
2answers
110 views

How to import only the data table from the census bureau

I have a project that requires me to import data from the census bureau and then take the average of the first two population columns https://www.census.gov/population/international/data/worldpop/...
0
votes
0answers
180 views

Problems with UTF8 CSV Import in Mathematica 11.2

I have a lot of code for importing csv data from a research project. Everything fine with Mathematica 11.1.1. Now I have 11.2 and it seems as if UTF8 import ist buggy. I use the following simple code ...
0
votes
0answers
53 views

Don't know how to obtain the elements of a netCDF file

Running Mathematica on my home computer, I can list the contents of a netCDF file but can't read them, as shown in the image of my session [1]. On my work computer I can both list contents and read ...
6
votes
1answer
2k views

Base64 Encoding and Decoding not correct?

When comparing the output of decoding a base64 encoded string, the Mathematica output and the output of https://www.base64decode.org does not match. ...
9
votes
3answers
820 views

Mathematica 11.2 Import Statement Produces Errors & Truncates CSV Data Created in 11.1

Bug introduced in 11.2.0 TL;DR Issue 1 (bug): Import of CSV files with column specification fails when "HeaderLines" or ...
0
votes
1answer
183 views

integrate one vector of data points with respect to another from a file

I have a data file with two columns. Column 1 is x-values and column 2 is f(x) values. I would like to integrate f(x) with respect to x. To load the data, I do this: ...
0
votes
1answer
197 views

optimization problem with NDSolve and Import cannot get any results, even without error message

I want to minimize the function ff. When ff is calculated for a specified point the answer is correct: ...
0
votes
0answers
223 views

“updating from wolfram research server”

I failed to get the information on a website after several attempts, every time Wolfram Mathematica returned "updating from wolfram research server". Could anyone give me any advise? Thanks a lot!!! ...
0
votes
2answers
195 views

How can I turn the first column in a dataset into row names?

I've used SemanticImport to import to a "TSV" spreadsheet into a Dataset. Each row starts ...
4
votes
1answer
112 views

URLRead ignores content-encoding:gzip header

Background Taking an example from Decoding GZIP encoded Body, BodyBytes (ByteArray) and BodyBytesArray from URLRead: ...
8
votes
1answer
184 views

Markdown parser in Mathematica

Is there already a markdown to XML parser implemented in Mathematica? I wrote a one for my pelican rewrite, but realized I should have asked here first. Mine is almost certainly faulty in a few major ...
6
votes
3answers
214 views

How can I access the properties of an image?

I have imported an image, and using FullForm I can see that the image has a collection of properties, e.g. ...
1
vote
1answer
164 views

Trying to run J/Link SampleProgram.java from Mac Terminal: Exception in thread “main”

Trying to run the [WSTP J/Link SampleProgram.java][1] Mathematica version 11.0.1.0 file from the MacOS Sierra version 10.12.6 Terminal, generates "Exception in thread "main" ... Updating to Oracle ...
0
votes
0answers
90 views

Import element from large excel file

I am trying to import some rows and columns from a large excel file, but I get this error There was insufficient Java heap space for the operation. Try increasing the Java Virtual Machine heap ...
0
votes
1answer
61 views

How can I input this simple text file, process it, and export to another text file?

I will try to keep this example very specific and simple. Let us say I have a text file called file.txt, with path ...
5
votes
4answers
195 views

Import weird format

I have Spice simulation output file "Sim.txt". The data within is in a weird non-standard format (the two columns are '\t' separated): ...
20
votes
3answers
2k views

Who is to blame: parsing UTF8 encoded JSON HTTPResponse fails

Bug introduced in 11.0 or earlier and persists through 11.3 (confirmed by WRI Support but read summary below) Answers summary I think we need a quick summary here to justify keeping bug. Original ...
1
vote
1answer
232 views

Mathematica + HDF5 basic examples

How to export/import basic Mathematica types using HDF5 file format? I find that the official Mathematica doc is missing some examples.
3
votes
1answer
86 views

Mathematica bug when reading CDF (Common Data Format) file?

The following Matlab code create_cdf.m: A = reshape(1:32, 8,4); cdfwrite('A.cdf',{'A', A}); A creates ...
4
votes
1answer
442 views

How to read CDF (Common Data Format) file?

I don't understand, what Import does with CDF. If I enter In[17]:= data = Import[ExampleFile] Out[17]= {"Pose"} what I can ...
4
votes
2answers
86 views

Using ReadList with Throw

I'm using ReadList to pull the declarations off of a package like so: ...
6
votes
2answers
113 views

Make a list of triplets from a table with empty cells

I have a Google spreadsheet where not all of the cells are filled. It looks like this: I want to import it as a list of lists like: $\left\{ \left\{34,1,3 \right\},\left\{45,1,4 \right\},\left\{45,2,...
1
vote
3answers
118 views

NA handling in TimeSeries[“Date”] … “0. + NA”

I import data from excel in the following format: data // MatrixForm After converting the data to a time series, the "NA" values are converted to "0. + NA", when ...
7
votes
1answer
132 views

Return value of Import “MX” when file was saved with newer version

I just detected that Mathematica 10.4.1 on Windows will just quietly return Null when I try to Import an .mx file I exported ...
0
votes
0answers
197 views

How to dilate or erode a 3D geometry import with STL format?

I am a freshman to Mathematica. I just wonder if it is possible to dilate or erode directly the 3D geometry in STL format. I have tried to import a STL file and then used Dilation function. However, ...
3
votes
2answers
144 views

Import .ini file with text and numbers

I have faced a quite simple problem, but, honestly, I don't know what would be better to do. I have a .ini file generated by a Fortran program with with this type of data: ...
1
vote
0answers
109 views

Convert data from excel to a list [closed]

I have imported a set of rows from a column of an Excel sheet as follows: ...
3
votes
1answer
229 views

Decreasing memory consumption during Import

We have 70 .dat (text) files each of which contains a column of numbers. This column can be assumed as a vector obtained from another program. The ...
3
votes
0answers
118 views

Open a hdf5 file in SWMR (single writer multiple reader) mode in Mathematica 9.0?

I'm running an experiment where I want to be able to save my data to HDF5 on a shared network drive on one computer (using python and h5py), and be able to read it and do analysis while it's running (...
2
votes
2answers
49 views

Trying to plot two time series from data in external file

I am a newbie into Mathematica and taking a steep learning curve. I have been struggling with this for a couple of days now. Can someone point me in the right direction? I have time-stamped ...
1
vote
3answers
184 views

Import of CSV with OpenRead

I have tried to use OpenRead for my application as it appears to be less of a burden on the memory. I OpenRead a .csv file to extract coordinates in the form {x,y} in the following way ...
1
vote
2answers
188 views

Making an animation of the progressive plotting of imported data

I have managed to import data from an Excel XLSX file using Import. dat = Import[ "C:\\Users\\User\\Documents\\Conductance\\mathfile.xlsx", {"Data"}]; There ...
0
votes
1answer
148 views

Correct format to import vector from file

Although this question was kind of already asked, it was closed because not enough information was given. Here is my attempt. I am trying to find out the correct format to import a vector data set (...
1
vote
1answer
29 views

How to prevent numeric conversion when importing with Import[path, “tsv”]?

I want to import a TSV file where many of the columns have entries like 00966. When I use Import[path, "tsv"] to import this ...
1
vote
1answer
454 views

ASCII-Import, how to replace comma by dot

I have some ASCII-data-tables and for some odd reason there are commas(as decimal mark) instead of dots in the last row. Consider for example: ...
4
votes
1answer
462 views

Problem calling Python scripts from Mathematica

so I'm running into a strange problem using Import[] to import the output of a python 3.6 script. I have a script my_script.py ...
1
vote
3answers
124 views

Import a partitioned lower triangular matrix

The output of a program that I use gives me a lower triangular matrix that is separated into multiple sections of four columns, with the number of rows consistently decreasing. A small version of ...
4
votes
5answers
852 views

How to convert string to real numbers when there are many spaces in them?

I have generated a string list " 1 1 3212 8.0000 75 61 1 74 3 58 0.0000" I want to convert them into real numbers however, when ...
1
vote
3answers
752 views

Specific data import from Excel

I guess this is really mundane question, but I can't find the answer anywhere. Having a rather complicated Excel that came from testing centre, I need to import specific data into Mathematica for ...
0
votes
0answers
63 views

Control interpretation by Import

When I Import an Excel file, sometimes Mathematica interprets the dates as DateObjects, and sometimes it doesn't. How can I ...