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
1
vote
1answer
30 views

Converting String in “Data” Format within Mathematica [closed]

Hi I have a simple question. Given a random string in the format accepted by the Import[fileWithString, "Data"] i.e the file contents being ...
9
votes
1answer
107 views

Importing Packages to .wls without shadow definitions and context specification

I am trying to import a package that works correctly when I use it in a notebook in a wolframscript .wls. I get a weird shadowing problem, however. Here is a minimal working example ...
0
votes
0answers
34 views

Importing text file to plot animation in 1D

I have .txt file with data that I want import into mathematica and then create a 1D animation/simulation of 3 curves. The format of the ...
0
votes
1answer
29 views

How to obtain integers from a txt file? [closed]

I have txt file with some comma-separated integers and i'd like to obtain a list of said integers to work with. My best result was: ...
5
votes
3answers
152 views

How do I import data formatted in C or Fortran into Wolfram Language?

I want to import some data that has been formatted using C language. I am not sure if there is a way to read in data by specifying column widths in WL. The data has been formatted using ...
9
votes
0answers
122 views

Is it possible to use better modern compression algorithm instead of zlib in Mathematica for efficient data saving and loading?

Some backgrouds of my problem: Recently, I had a heavy data analysis work to do. Each day I got thousands of csv Files(colums with different datatype) with total several Gigabytes. I have to ...
1
vote
1answer
41 views

Import and Export DateObject

I'm trying to import a spreadsheet with dates and export it again. But the cell reads ### in the exported file. It's shown in the screenshots. This is my code. ...
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. ...
2
votes
1answer
261 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?
0
votes
2answers
101 views

SmoothHistogram doesn't appear to work

I have a data set with 500,000 elements. I am trying to use SmoothHistogram to plot the distribution, but it doesn't work and the kernel quits. I used R on the same ...
2
votes
1answer
50 views

Data manipulation in Mathematica

I have a very big data set that I have generated in Matlab. I am importing into Mathematica since doing some data manipulation is much easier. There is one caveat, which is the following: I have ...
12
votes
0answers
223 views

Why does Mathematica consume so much memory when reading binary data?

There are somewhat similar questions on here, but I didn't find a satisfying answer for this case: I import a 1.7 GB binary data file using the following command: ...
2
votes
0answers
97 views

Is there a way to make Mathematica work with Parquet?

Has anyone tried to make Mathematica work with Parquet? If so, what are the solution possibilities? And how can this be made possible? https://community.wolfram.com/groups/-/m/t/1595622
7
votes
1answer
166 views

How to import a ByteArray from GenerateHTTPResponse?

Without GenerateHTTPResponse the import works as expected. ba = ExportByteArray[Plot[x, {x, 0, 1}], "PNG"]; ImportByteArray[ba] ...
0
votes
0answers
24 views

Working with time series GDP data

I have two questions. First, how do I get a list of points from CountryData["UnitedStates", {{"GDP"}, {1960, 2018}}] as opposed to a graph. Second, if I have a ...
0
votes
1answer
50 views

Importing data from from Mathematica file

I have a array of Mathematica files which I am running one after another using NotebookOpen/SelectionMove/SelectionEvaluate functions successfully. In this evaluation, the o/p of each file is a ...
0
votes
2answers
45 views

Specify column data type when importing

I'm running into an annoying issue when importing a table of tab-separated-data. Several columns are numeric, while several are strings. Using Import[url,"TSV"] ...
11
votes
2answers
168 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 ...
24
votes
3answers
888 views

How to develop an Import/Export converter for Compress[]ed data?

Mathematica has a cross platform data exchange format, WDX. Unfortunately importing or exporting large data from/to WDX is very slow. Using MX files is very fast, but they are not compatible across ...
11
votes
2answers
946 views

How to make Import recognize a new file extension?

I've written an import converter for a custom file format, and it all seems to be working as expected, except for the fallback behavior with no arguments: ...
6
votes
2answers
190 views

Registering/detecting an importer by file name extension

I've developed an importer and exporter for FreeSurfer's MGH/MGZ file format; the specific format isn't important, but I was ...
1
vote
1answer
43 views

Importing TIFF stack metadata

the data files I am working with are TIFF stacks, we generate them with a self-written microscope program (in matlab). Among other information, an ASCII value is saved for each image in the TIFF stack ...
1
vote
1answer
30 views

Export a multidimensional array which contains numerics and symbols?

Lets say I have an array defined as: Array1 = ConstantArray[0, {1, 3, 3}]; Array1[[1, 1, 2]] = 5; Array1[[1, 1, 3]] = t; How could I export this array since it ...
0
votes
1answer
39 views

Importing a 3 dimensional list

I have a code that is generating some numerical data in the form of a list of trajectories. Each trajectory itself is a list of 2D coordinates. Each coord. is a list of 2 numbers.(see example data ...
2
votes
1answer
45 views

Importing a csv file yields weird first character

Whenever I import a CSV file, I get this weird character at the beginning of the file ,I am not sure why. How can I avoid this?
0
votes
0answers
19 views

SemanticImport adds garbage characters to key name

I want to import a csv to a dataset. This exact dataset successfully imported on a PC, but on a Mac one of the columns has garbage characters added to the key (see below example). I don't believe ...
0
votes
0answers
29 views

Mmma connectivity . parquet. python

Is there any way to exchange data in binary format with python ? Example. a) I have data in Mmma and want to export them to make use in python ... b) Want to use Parquet format
5
votes
1answer
121 views

Decode Image from Base64

From a web API, I have a bunch of realllyyy long strings that look like this: data:image/jpeg;base64,(...) Sites like this will decode these strings no problem, ...
0
votes
1answer
29 views

importing a list of lists

I have a list of lists, a list of file paths for some number of directories. I want to import that files as lists of lists, where instead of getting one massive 1D list, the distinct directories are ...
1
vote
2answers
48 views

How can I convert a matrix of 3d experimental data into a 3d list which can be interpolated in a f(x,y) function

I have a 3d experimental *.txt data with the form: y1 y2 y3 x1 f(x1,y1) f(x1,y2) f(x1,y3) x2 f(x2,y1) f(x2,y2) f(x2,y3) x3 f(x3,y1) f(x3,y2) f(x3,y3) I need to ...
-1
votes
1answer
26 views

Exporting and then importing .dat file elsewhere, then plotting the data

I'm trying to perform a simple task: export data into a '.dat' file, then importing that file onto Mathematica on another terminal, and then plotting the list. But I keep getting the same blank plot! ...
1
vote
0answers
48 views

Webscraping when links do not change

I would like to webscrape college sports data. Specifically, I would like to get match by match data from baseball. Manually, this is tiresome but possibly. I go to http://web1.ncaa.org/stats/...
0
votes
1answer
35 views

Unable to operate on the table imported from .mx file

I saved a table by exporting it to .mx file. Now, when I import it back, it gives me the desired output. So, to work with elements of the table, I first define the imported table as (res2 = Import["...
0
votes
3answers
53 views

How do I import only the number and separate between 'n' and 'p'?

I have a file like this: ...
0
votes
1answer
89 views

Using Semantic Import to do an Excel-like VLookUp using Mathematica

I'm following an example provided in the following Stack Exchange Link but, using a different approach. My data is contained in an Excel workbook called "Input Workbook.xlsx" as shown here: I ...
2
votes
1answer
78 views

How to plot .txt data, which are not comma-delimitered?

I have got a $1000\times 4$ matrix of data in .txt form. Rows are seperated with blank spaces and not with commas. I want to plot the second column against the first one (they correspond to y(x) and x ...
2
votes
2answers
154 views

How to use NDSolve with limited RAM?

How can I use NDSolve when running out of RAM? The code I am implementing: ...
0
votes
0answers
41 views

How to import a mathematica notebook into another mathematica notebook?

I have a number of notebooks -295 precisely- in a folder. Each notebook contains one or more large matrices. What is the proper way of importing each one of these notebooks in a new notebook for ...
3
votes
3answers
109 views

How can I import a CSV file into Mathematica? [closed]

I have a data.csv file in the Downloads folder in my Macbook. I am trying to import the data into a Mathematica notebook using ...
0
votes
1answer
81 views

How to remove brackets from a data file

I would like to know how I can transform a file (.dat) that contains {x1,x2, x3, x4, x5, x6, x7, x8} {y1,y2, y3, y4, y5, y6, y7, y8} in another file (.dat) ...
1
vote
1answer
87 views

Problem with “MediaTools`” in Mathematica 12

I asked here for a solution how single video images can be extracted very fast from avi files. Piotr Wendykier gave a solution for Mathematica 11.3. Now I'm using Mathematica 12 and his solution ...
1
vote
2answers
60 views

Importing a data file with names

I have the following data file which contains four columns of data However when I import it as data = Import["Exo_data.txt", "Table"]; I get the following list ...
5
votes
2answers
146 views

Convert String to Integer from a huge string database in a very fast way?

I have a huge string database with the form such as {{position},{1,2,3,4,5,..}}, and I want to convert such database to Interger data in a very quick way. In the following example, I created a ...
1
vote
1answer
60 views

Import .wav and Export .csv - where is the bottleneck?

I have a number of .wav files in a folder. I want to: Import each file as data, cut each list into a certain number of small lists, export each list as .csv. The .wav files have a length of approx. ...
7
votes
1answer
752 views

web scraping images

I am trying to load player profile pictures from the following page: https://www.transfermarkt.com/manchester-united/startseite/verein/985/saison_id/2006# I use the following code: ...
1
vote
1answer
57 views

Interpolating data from Excel

Sorry for the probably mainstream question, but I have not found the answer I was looking for yet. I have this Excel file: https://drive.google.com/file/d/1UhkYdoaqXQIsf6opOx-EBgG7xPxxHga3/view and I ...
3
votes
2answers
195 views

Import text outlines from PDF format properly

Bug introduced in 10.0 and persisting through 12.0 I am attempting to implement this: How can I wrap text around a circle? But I need Unicode support. Unfortunately, in my case, this gives a broken ...
2
votes
0answers
59 views

Mathematica (v12.0) fails to Import NASACDF (Common Data Format)

I was doing research about Mars using data from MAVEN spacecraft. The data used could be downloaded from https://lasp.colorado.edu/maven/sdc/public/data/sci/swe/l2/2017/06/. When run ...
5
votes
1answer
68 views

How do I reliably read from stdin using wolframscript?

I am trying to direct a stream of data to a wls script in a command line environment. Wolframscript provides the ...
0
votes
0answers
22 views

Why is the number of sample points of an audio changed after being export?

I have an audio audio001 and I need to export/import it so that I can do auto-correlation. Below I used ...