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
2 votes
1 answer
58 views

How to convert a CSV entry from a String to an Expression?

I have a list that looks like this: {{"74.28300000000003,90.32258064516131"},{"75.06400000000004,92.90322580645163"}} To be able to use these ...
0 votes
0 answers
21 views

Recovering Data Points from an image with log axis [closed]

I saw this question (Recovering data points from an image) and it works when axis are linear, but, what if axis are log,log (red curve below) or linear,log (blue curve) like this:
  • 41
2 votes
2 answers
59 views

Import txt file with empty line at the end and special characters

I want to import txt file with empty line at the end and special characters. I tried many options from the documentation. "String" option detects the ...
0 votes
1 answer
32 views

Combine multipage API results in Mathematica

Updated to show more code Can't seem to find a good post/answer to this so I'm asking the question. I'm pulling data from the Swarm/Foursquare API, and it's paged (max 250 results per pull): ...
1 vote
1 answer
48 views

ListPlot python generated data from a text file [closed]

I have an issue plotting the following data using ListPlot. Could you please check what this issue is? ...
  • 125
0 votes
0 answers
33 views

Getting .wl file without appending global' before variable names

I have a .wl file created using mathematica that contains: list = {{a->4, b->5}} When I read it in using Get["file.wl"] it reads in as: ...
  • 55
1 vote
0 answers
31 views

Transforming a string to a list of expressions [closed]

I have a string of the following form: ...
  • 391
2 votes
1 answer
82 views

Plot sphere and points from file

I've been trying to plot spheres and points, given the (c_x, c_y, c_z) centre coordinates of the sphere and (x, y, z) coordinates of the points, like this: ...
  • 21
6 votes
1 answer
90 views

SemanticImport mangles Greek letters in column headers

Bug persisting through 13.1.0 I have a Dataset whose column headers contain Greek letters. If I export the Dataset as a csv file and then ...
  • 63
0 votes
1 answer
58 views

Trouble with imported data

I have a multivariable function, I want to produce the data of that function, export the data and use the data for later purposes. However, the imported is not recognized as data. Here is an example: ...
  • 99
0 votes
1 answer
35 views

How to import a file with a part of the filename being the folder name [closed]

Consider a bunch of folders .../run_i, where i = 1, 2,..., and ... means some pre-path (say, ...
  • 4,116
-1 votes
1 answer
87 views

How to extract the number from the following string?

Consider an archive a.gz with the file a.hepmc containing the following strings: ...
  • 4,116
0 votes
0 answers
76 views

How to import data from Excel Binary file?

How do I import data from Excel binary format XLSB: Import["...path to file...\\temp.xlsb"] Is there a way to do this without converting to XLSX or XLSM ...
  • 8,417
1 vote
1 answer
58 views

How to import files from a directory above the notebook directory?

Consider some directory .../a/ where ... may be some arbitrary path. It has two subdirectories: /a/b/ and /a/c/ In the subdirectory /a/c/, a Mathematica notebook is located, while in the subdirectory /...
  • 4,116
3 votes
2 answers
72 views

Unable to use KnotTheory

I've installed the KnotTheory package, following the instructions here. But when I try to use it I get this error: ...
  • 31
4 votes
1 answer
68 views

How to use Import[] to grab text displayed on a Twitter page for a non-existent username?

Let's say http://www.foo.bar/?domain=wibble returns a search page on the word "wibble" provided by an engine with the frontdoor address ...
  • 151
4 votes
1 answer
109 views

How to import and render this OBJ file with correct texture?

Here's the output of a 3D scan of a bike, I need to render it in color with the texture file provided. Here are the files: ...
  • 30.8k
3 votes
2 answers
95 views

How to extract numbers from a html file?

Consider an .html file. Among the code, it contains there are strings ...
  • 4,116
3 votes
3 answers
116 views

How to separate a list of indices and data points

If I copy and paste a list of data points from the OEIS the indices come with the data points. Mathematica seems to view this as a product 0 times 0 times 1 times 0 times 2 times ... times 51. I ...
  • 647
3 votes
2 answers
76 views

Importing multiple files with filename conditions

I have multiple pictures I would like to import all at once. The filenames range from "000001.tif" to "000200.tif." I am having a hard time importing multiple images after looking ...
  • 107
3 votes
1 answer
84 views

Error Meshing with ToElementMesh (ToElementMesh: Cannot set region holes.) for certain objects

I have had a problem properly meshing certain .obj files, where others are meshed successfully. Here is an example of a successfully meshed .obj: Whereas, using the code at the bottom which includes ...
  • 363
0 votes
0 answers
62 views

Meshing Error on Imported obj file

I am trying to import a .obj file to be used in a static electric field simulation. I am able to successfully run the simulation with certain other aperture geometries (see here: < https://www....
  • 363
2 votes
2 answers
58 views

Multiple columns from a single column of data file

Suppose I have a data file containing one column of 1000 rows having x, y, z and ϕ values. I need to separate them into four distinct columns by selecting every alternative value. For example, if I ...
  • 664
5 votes
2 answers
245 views

How to speed up loading 20k lines tsv-file with complex numbers?

I have a long (20k lines) file which looks like this: ...
  • 1,143
2 votes
1 answer
65 views

How to import the given file?

Consider a file with the following block structure: Event XX Muon YY: data End of event Event XX' Muon YY': data' End of Event ... where ...
  • 4,116
10 votes
1 answer
390 views

Can Mathematica read planar graphs with pc format?

We can download files about some special planar graphs at the following website, but their files are suffixed with pc. http://users.cecs.anu.edu.au/~bdm/data/planegraphs.html I don't know how to ...
  • 1,179
4 votes
1 answer
88 views

Accessing geometry in Shape files (SHP)

Shape files can readily be imported and converted to a Dataset. For large shape files, this may unnecessarily consume a large amount of memory, particularly when the dataset is only used to retrieve ...
  • 4,987
0 votes
0 answers
54 views

Merge plots and imported images

I am trying to plot some things using Mathematica. I haven't used Mathematica for plotting before , so apologies if my question is basic. I have the following image, which is my target image: I also ...
1 vote
1 answer
58 views

Importing IDL sav file into Mathematica

I have a rather big (around 400 MB) file written by the IDL (Interactive Data Language) software into its binary format ".SAV" which is a proprietary format, not the spss format expected by ...
0 votes
0 answers
77 views

ListLinePlot: Options expected (instead of ImportCSVToDataset

I have the following code ...
2 votes
1 answer
84 views

How to import CSV file with mixed data, including string Mathematica expressions and numbers

I am importing a CSV file that looks like this (Extract of data as viewed in Notepad): ...
  • 21
3 votes
1 answer
95 views

Extremely slow import of mx files with Molecule objects [closed]

Version: 13.0.1 on Linux Hello, I recently found a collection of 39,361 SMILES strings that I converted to Molecule format with Mathematica. I then exported the resulting list of Molecule objects into ...
  • 623
0 votes
0 answers
42 views

How do I set permission for Mathematica to import other files on my machine?

Sorry that this is a very stupid question, but when I first loaded the new version of Mathematica (13.0.1.0) it asked me to "Allow Mathematica to open files" and I accidentally clicked "...
  • 1
0 votes
1 answer
69 views

I need to bulk convert a number of PDFs in a folder to plaintext

I have 159 PDF in a folder with nothing else in it. I need them all converted to raw text. I found the documentation for doing them one at a time, which worked. To do them in bulk I tried this ...
  • 649
6 votes
2 answers
341 views

File Path name copy&paste- single/double backslash problem

Shift+RightClick a file on windows explorer and select 'copy as path', then ctrl+v paste to mathematica notebook, then apply FileExistsQ : ex1) ...
  • 3,221
0 votes
1 answer
37 views

How to import a file with 3 columns of numerical data and visualize it with ListPointPlot3D? [closed]

The file is plain ascii. e.g. 100 rows, each row like "1.23 2.34 3.45". I'm a complete novice with Mathematica, I assume this will be trivial.
3 votes
1 answer
60 views

RunProcess : Save directly to Mathematica Variable

I can convert mysource.jpg to myresult.jpg using an external program myprog.exe, and set a ...
  • 3,221
2 votes
1 answer
135 views

Import high-resolution images from a PDF?

I have a pdf file that I want to resize after importing. However, ImageResize doesn't seem to take into account the high-resolution of the initial image, and resizing makes it very pixelated. I can ...
  • 981
3 votes
1 answer
45 views

How to convert PQR Entity to Mathematica Molecule format

I am using the Pitt Quantum Repository and am trying to convert the format from Entity to Molecule, so that I can get the MoleculeValue Properties of the PQR chemicals in addition to the EntityValue ...
1 vote
1 answer
57 views

Using ReadList to read file with mixed size columns

I have a file which contains 6 columns but each column has a different number of entires. The way that this file is imported into mathematica is that the 'missing' entries for each row are simply ...
  • 369
0 votes
0 answers
17 views

Context problems with ParallelTable and Import/Export

I work with notebooks with contexts unique to each notebook and I want to compute a list of functions $f(z,w)$ via ParallelTable and save them to files in NotebookA ...
  • 1,498
1 vote
0 answers
32 views

How to compute the electronic energy reported by Gaussian from the AlphaOrbitalEnergies

I followed the instructions on https://reference.wolfram.com/language/ref/format/FCHK.html to analyze the fchk file. Ran an energy calculation on Gaussian , converted the results to .fchk files. The ....
0 votes
1 answer
55 views

import a data file

I have 350 data files which i have exported like ...
1 vote
0 answers
28 views

How to make import and export (or equivalent) work with unique notebook contexts

I currently have my notebook's default context set to "Unique to this notebook", which is useful for when I'm doing multiple projects. However, whenever I try to use e.g ...
  • 31
0 votes
2 answers
92 views

How to create a Dataset from Nested JSON Data?

I'm importing data from Swarm into Mathematica, and I'm trying to create a dataset and having issues because the values are at different levels: ...
3 votes
1 answer
612 views

How can I resolve an unexpected character error when trying to import selected data from a large JSON file?

I'm downloading this datafile from kaggle. I want to get all the IDs. Normally for a JSON file I'd write ...
  • 3,862
1 vote
1 answer
91 views

Create a new variable every time I import a list file

I want to import a list and put it in a variable. The number of lists grows as the days go by, so I do not know their final number. to import the first file I use this code: ...
  • 245
4 votes
4 answers
363 views

Read a txt file using space delimiter

I have a txt file "data.txt". This contain data like a 1 b 2 c 3 I want to import this file into two list like $\{a,b,c\}$ and $\{1,2,3\}$.I have ...
  • 527
1 vote
0 answers
49 views

The principle of converting image with bit 8 into image with bit 16 automatically in Mathematica

I import a collagen image that is 8-bit depth but when I checked image properties in Mathematica, it shows that it is 16 bit. My code is shown below. I found that Mathematica always imports image as ...
  • 11
1 vote
0 answers
53 views

Gaussian 16 fchk and log file import in mathematica

I am working with Gaussian log files and fchk files imported into Mathematica and I noticed a few things. The ExampleData in documentation for these files use Gaussian 03 output files, while the ...
  • 623

1
2 3 4 5
31