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
0
votes
0answers
30 views

How to define a matrix without importing it once completely and compute with it?

Suppose here is a matrix which is too large for import. Can we leave it in the file and read its parts only when needed to decrease memory use? Can this matrix represented by some expression be used ...
0
votes
2answers
40 views

Import and extract certain column and row

I have a problem with importing and extracting 2nd column in my CSV file. I need to have 3 list, the first one first column except for first row, the second will be second column except for 1st row ...
0
votes
0answers
37 views

How to run Facebook Prophet in Mathematica?

I would like to use the Facebook Prophet API for timeseries forecasting in Mathematica. I'm trying to make a function prophetM which takes a list of date, and integer pairs (or a Timeseries object), ...
0
votes
0answers
34 views

Web crawler, where access is needed

I want to make a web crawler and download a bunch of files that are located in different directories on the website. Accessing the files need username and password input as well (the website is https:/...
3
votes
2answers
100 views

How can I read this file?

I have to read and process a file that looks like this: ...
1
vote
0answers
46 views

Passing input from a textfile into a function

I have a text file which is a list of numbers and would like to pass each number in the list as input to a Mathematica function. For example, my text might contain [2, 1, 4], and I would like to pass ...
1
vote
1answer
25 views

Exporting to PDB seems to lose aromaticity

I have a molecule with the following SMILES: ClearAll[sml]; sml = "O=C(NCC1=CC(NC(C2=CN=C3C=CC=CN23)=O)=C(C)C=C1)NC4=CC=CC(F)=C4"; The plot looks as ...
0
votes
1answer
45 views

Trouble when attempting to import a dat resource

I am trying to import the "Patient Medical Data for Novel Coronavirus COVID-19" dataset from the Wolfram Data Repository, but when I import, it shows me just 427036 results instead of the ...
6
votes
0answers
49 views

Realistic and stylistic Image and Video corruption effects

I'd like to produce a video that looks 'corrupted' in some way, ideally like the sorts of MPEG corruptions you see occasionally. See this for examples: https://www.youtube.com/watch?v=i-bz21deEeY At ...
0
votes
2answers
42 views

How to export and import these data

I want to export my_data and then import them back again in exactly the same data structure as the one they had when they were initially generated. ...
1
vote
0answers
43 views

Passing python data types as function arguments

I've a few python data types ...
0
votes
0answers
62 views

Accessing values in a .txt file

I don't have much experience importing data and working with it in Mathematica, so I'm writing to ask for advice. I have the following data: ...
1
vote
0answers
41 views

Importing a local html file fails

Anyone have any idea why this is failing? The file is there. A file in the same (Windows 10) dir called "test.txt" imports exactly as expected. But .HTML files fail without a useful error ...
0
votes
0answers
33 views

Applying same function over a list of variables

I currently have a list of variables in a column in excel, I would like to perform some analysis for each of those variables. ...
0
votes
0answers
28 views

Selective read/write on a mx file

Consider an mx file to which has been saved the following data ...
0
votes
0answers
52 views

Loop function for a list of codes

I have a list of codes that start with importing column D of an excel sheet which has a hyperlink. Then, the code moves onto importing the text version of the hyperlink and further proceeds with ...
2
votes
1answer
63 views

Using java-script code in Mathematica

I have the following HTML file stored on "C:\local.html": ...
0
votes
0answers
47 views

Importing multiple data files into my notebook [duplicate]

I am trying to import several data files all at once into my Mathematica notebook. I want get all of them together by evaluating one expression (perhaps a Do-Loop). ...
0
votes
1answer
24 views

Cannot take DWT of parsed data

I have some data in foo.tsv, and I would like to take the DiscreteWaveletTransform of one column. My data looks like this: ...
0
votes
0answers
72 views

Hidden Metadata in DJI drone .JPG

I have imported a JPG file with MetaInformation (Exif/XMP) however all the available tags are not imported. The JPG is a DJI drone image with meta information as: altitude, YAW, GeoPosition, etc. Some ...
0
votes
0answers
26 views

Reading CSV data as numbers rather than symbols

I am attempting to read some data from a CSV file I have using edgeDistribution = Import["edge_distribution_2.csv", "CSV"] Mathematica will ...
0
votes
0answers
26 views

How does Rest operate on Part specifications?

This question asks how Rest operates with Part in lists of lists. I’m trying to use Rest to drop headers from .csv files, and can’t seem to get it to select the right parts. I’m clearly ...
2
votes
1answer
131 views

How can I use AnatomyPlot3D with DICOM images?

I recently discovered beautiful things that can be achieved with AnatomyPlot3D. How can I apply this function to DICOM images from my local machine? Thanks in anticipation of your suggestions.
5
votes
1answer
117 views

Binary file that can be read by both, Mathematica and Python

I would like to analyze data set in both Matematica and Python. What is a time and size efficient format to store the data?
0
votes
0answers
22 views

Return Link with XML Element

I am trying to import multiple links. I just want the link after ...
1
vote
1answer
33 views

Import OVF 2.0 Vector field files

I'm using a simulation software (mumax3) which outputs OVF_2.0 files. It can either export binary or text files. The binary files are usually much smaller than the text files. I would like to use the ...
2
votes
0answers
110 views

Can Mathematica capture a Vimeo video?

I'd like to capture or download a Vimeo video (only for personal use) in Mathematica. Essentially, a yoga video I'd like to play at a slower speed as I try to learn the sequence. I've found some dated ...
2
votes
1answer
65 views

Problems when importing a custom Java class

I have a jar file so I tried to run the class from Mathematica following these steps, but I get all these: ...
1
vote
1answer
37 views

How to import data from the file after one string and before another string?

Consider a file file.dat that has a form ... string 1 x1 y1 z1 x2 y2 z2 ... string 2 ... where x,y,z are numbers. Could you ...
1
vote
1answer
74 views

How import Excel file from different folders

I would like to know how I can import excel files from inside different folders and save the results inside the associated folder. For example, the name of my folders are fn1={001, 002, 0045, 005, ...
1
vote
2answers
59 views

How to read list of UnsignedInteger16 from base64 string in mathematica

I am struggling to convert a base64 string to a list of UnsignedInteger16 values. I have limited experience with mathematica, so please excuse me if this should be obvious. I read the base64 string ...
2
votes
0answers
48 views

Issue with calling one notebook from inside another one

I am calling one notebook (N2) from inside another notebook (N1). The results are transferred correctly from the second notebook to the first one. But when I try to compare the results from the two ...
0
votes
0answers
57 views

Why are these two images that are the same size not displaying as the same size?

The picture below is what my code is as well as the outputs (I covered the faces in MS paint for privacy). Both of the pictures are 160x200 px JPEGs, so I've really got no idea why they wouldn't print ...
0
votes
0answers
19 views

An error while using the operation SemanticImport : sandbox mode

I'm using wolframcloud and trying to use the command 'SemanticImport'. For example, I typed sales=SemanticImport["ExampleData/RetailSales.tsv"] where I ...
1
vote
0answers
41 views

How can I evaluate a library file (.wl extension) automatically on save?

I would like to have my library functions update on save so they are immediatly available in my notebook file where the library is imported. Effectively like clicking the "Run All Code" ...
0
votes
1answer
69 views

Import and export a list of SparseArrays efficiently?

I have a list of integers dims and a list of SparseArrays bdrs (representing a chain complex ...
0
votes
0answers
76 views

How can I make density plot from a data (csv) with Log Scales?

I have a data in .csv format and I wish to make a densityplot of the data points but with a log-log scale. I imported the data into Mathematica and used ListDensityPlot with ScalingFunctions -> &...
0
votes
1answer
57 views

Importing a CSV file hangs up [duplicate]

Ver.12.1.0.0 hangs up when I do "Import" a csv file that contain an entry ""000000000000000000000000000000000000000053253943D755066515000057", while this csv file can be read ...
4
votes
1answer
85 views

Openning JSON file, (NDJSON, new line delimited) — big file

I am trying since many hours to open a JSON file ("new line delimited") that has this as structure ...
0
votes
0answers
63 views

Is it possible to implement this Matlab code for the normal form of a bipartite operator in Mathematica?

I am interested in converting the $16 \times 16$ ("density") matrix ...
4
votes
1answer
58 views

Read in numbers and arrays from txt file

Lets assume I have a .txt file with the following content: ...
3
votes
0answers
45 views

Slow import of tif images

Importing a 900 MB tif file (~1800 frames) in Python takes ~9 seconds. The same file takes ~50 seconds to import in Mathematica. If the file size is ~150 MB then for Python takes ~2.5 s while MMA ...
0
votes
0answers
39 views

Display Mathematica menu for imported data

I am working with a medium csv file rand.csv, and when I import the data into Mathematica it displays the whole content. I know that if the file is large in contents a menu like the Photo is diplayed, ...
2
votes
3answers
58 views

Plotlegends and filenames

I have data files which are in "text tab delimited". I have imported these files using the following function: ...
1
vote
0answers
32 views

Parallelization option gives Import error for Package files

I have an issue when trying to use parallelization when loading a stand-alone Package. To simplify the question I have a few scenarios: The first scenario, with single-kernel evaluation, works fine: ...
3
votes
0answers
29 views

Importing notebooks with definitions that cause messages during formatting

According to reference pages, Quiet "does not quiet messages that occur during formatting", which typically is just a nuisance, but it seems to affect ...
2
votes
0answers
41 views

Difficultly importing GeoTiff format

I downloaded Earth data from here. It is a GeoTiff file, which is a map of solar radiation falling on earth. Mathematica claims to import ...
0
votes
0answers
22 views

Importing Esri ASCII raster format

Does anyone know whether Mathematica has a built-in function to import Esri ASCII raster format data as described at: http://resources.arcgis.com/en/help/main/10.2/index.html#/...
3
votes
0answers
59 views

Parallelize import of many files

I'm trying to speed up the import of a large number of files, using ParallelTable to store them in a indexed variable, eqDump. The files are in the folder "Frames" and are named "Conf_Run.1000", "...
0
votes
1answer
39 views

insert or remove a photo from a notebook on demand

I would like a "button" which I could "click on" that would on first click insert a specific photo from a windows file and then, on second click, remove the photo. It could also be two buttons. Or ...

1
2 3 4 5
27