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
46 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
106 views

How can I read this file?

I have to read and process a file that looks like this: ...
1
vote
0answers
47 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
35 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
84 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 ...
7
votes
0answers
77 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
53 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
1answer
83 views

Passing python data types as function arguments

I've a few python data types ...
0
votes
0answers
66 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
45 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
38 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
54 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
112 views

Using java-script code in Mathematica

I have the following HTML file stored on "C:\local.html": ...
0
votes
0answers
49 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
32 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
1answer
124 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
28 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
28 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
163 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
245 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?
1
vote
1answer
128 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
129 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
90 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
44 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
106 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
65 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
51 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
61 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 ...
1
vote
0answers
59 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
86 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
99 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
62 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
225 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
74 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
65 views

Read in numbers and arrays from txt file

Lets assume I have a .txt file with the following content: ...
2
votes
1answer
181 views

export and import of 3D arrays

I have a very large (up to 1 Mio elements) 3D array A = {{{1,2,3,4},{5,6,7,8}},{{9,10,11,12},{13,14,15,16}}, ......, {{....},{....},{....}}} which I want to Export ...
3
votes
0answers
54 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
40 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
84 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
37 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
34 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
65 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 ...
3
votes
0answers
86 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
41 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 ...
0
votes
1answer
21 views

Efficient way to import a sequence of data labeled with a parameter value

Suppose we have a number of data in .m format, which are labeled with the value of a parameter $c$, for example, c=0data.m, c=0.2data.m, c=0.4data.m, c=0.6data.m, c=...
1
vote
1answer
53 views

Importing Lines of Code from Another Notebook

I'm trying to access lines of code from another Mathematica notebook using NotebookImport NotebookImport[FileNameJoin@{NotebookDirectory[], "QA.nb"}, _] Stuff in ...
1
vote
0answers
39 views

NotebookEvaluate via URL - or Google Drive format

Is there an option or other method to run EvaluateNotebook for remote notebooks, ie EvaluateNotebook[url-to-notebook] in other words evaluate remote notebooks in ...
4
votes
1answer
89 views

Problem with StringPosition[] and slowness of Import[] in sentiment analysis

Using the post by J. Kinlay at Market Sentiment Analysis we can employ a simple yet effective Mathematica implementation for sentiment analysis in trading. Everything is very clear and useful in the ...
0
votes
0answers
55 views

How can I convert such a model into a BoundaryMeshRegion

The obj file is here As you see, I cannot import such a house model into Mathematica with BoundaryMeshRegion Option. Import[objFile, "BoundaryMeshRegion"] So my ...
1
vote
0answers
35 views

How can I import a txt file with both tsv and csv characteristics and plot it?

I have a problem with importing and plotting a txt data. I used this code: data=Import["C:/Users/user/Desktop/Mohammad Simulation/2nm.txt","TSV"] header=Take[data, {10, 1889}]; But, I am not able ...

1 2
3
4 5
29