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
0answers
29 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
0answers
21 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
58 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
49 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
68 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
41 views

website read failure detection [closed]

I have been reading from a website with mostly successes, but occasionally it would fail. Repetition often works. But to avoid aborting a long process midway due to failure, I tried to capture the ...
0
votes
0answers
59 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
50 views

Read in numbers and arrays from txt file

Lets assume I have a .txt file with the following content: ...
-1
votes
0answers
18 views

Searching for web pages with specific content

Due recent events there has been discussion about renaming minerals, named after controversial people, but to do so I would need to create a list of minerals that are named after people. (mosts lists ...
3
votes
0answers
41 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
53 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
25 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: ...
2
votes
0answers
23 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
34 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
18 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
51 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 ...
0
votes
1answer
19 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
48 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 ...
0
votes
0answers
21 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
75 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
36 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
24 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 ...
5
votes
1answer
89 views

Scraping Google nGram data

What is the most direct and efficient way to scrape the raw data graphed in a Google ngram search, such as here? (I want to analyze, edit, plot, and label it in Mathematica.) The obvious ...
3
votes
2answers
107 views

How can I limit the amount of data displayed when I import a csv file in a way allowing me to use all the data?

I am importing a large csv data file into Mathematica for analysis. The problem is that Mathematica insists on displaying all 2500 rows of data. This is only a small subset of a much larger project. ...
-3
votes
1answer
69 views

Reading a excel CSV file [closed]

I have a CSV file with exactly the following data: ...
1
vote
0answers
37 views

Recursion depth of 1024 exceeded during evaluation of … when importing a directory with many files

I'm doing this: Import["/Volumes/Transcend2/images/", "*.jpg"]; And getting these errors: Then, after it's done, when I type "images" and shift+enter, I just ...
1
vote
0answers
29 views

Importing data ignoring empty cells [duplicate]

If a have the following data (see the picture and the data below) ...
4
votes
2answers
197 views

Scaling the edge length of a graph to be equal to edge weight

I've imported a dxf file in Mathematica dxf = Import["input.dxf"] The following graph is present in the dxf file available here. The actual dimensions don't ...
0
votes
0answers
27 views

SemanticImport not importing new data [duplicate]

I have a script that uses SemanticImport to import CSV content from an internet URL. When I run the same script the following day, the resulting data is not updated....
0
votes
0answers
21 views

Importing data compared with manual data using FindRoot

The code below as written works fine. The problem I am having is that if a replace "dat22" in the line "lhsp = lhs - dat22[[i]];" by "aps" which is a list with the same numbers but obtained from ...
0
votes
0answers
83 views

Importing a list of number with no comma

In the code below, the variable named "variable" generates the following list of ten elements: ...
3
votes
1answer
55 views

Delete dataset from hdf5 file

Is there any way to remove a dataset from an hdf5 file using mathematica? Or, alternatively, is it possible to overwrite a dataset while keeping the other datasets intact? I've tried the following <...
2
votes
1answer
84 views

NumericArray in DICOM Implementation of Version 12.1

The 12.1 reimplementation of import for DICOM data seems to bring in the data from a single slice as a NumericArray, In the past, the data would be returned as a ...
1
vote
2answers
59 views

import a complicated file containing letters and numbers

I have a complicated file here as a text file which contains numbers and letters. There is a number with value -13.997315618223263 at line 13: ...
4
votes
1answer
67 views

Problem with Get'ting files with << as opposed to Get

When trying to import some files into my Mathematica notebook, I wanted to use ToString to specify the file path. Consider the following MWE, where we export some ...
2
votes
1answer
65 views

Problem importing a pdf with a character with increasing opacity

I want to import a pdf in MMA(ver 12.0). The pdf is here. This pdf has a "$c^2$" in the middle of the white square that is completely transparent in the first page, then it become progressively more ...
0
votes
0answers
30 views

Importing Excel Files and Extracting Parts of the Dataset

I'm trying to import two Excel files that have multiple sheets to Mathematica using the following code: ...
1
vote
1answer
47 views

Create table A with entries of the form Ai_j

I would like to create an $m \times n$-table A with entries Ai_j, where $1 \leq i \leq m$ and $1 \leq j \leq n$. I have seen ...
1
vote
1answer
41 views

SemanticImport returning different data versus Import [duplicate]

I'm analyzing data for Covid-19 and found an interesting website: "https://covidtracking.com/api/states/daily.csv". My problem: using SemanticImport, it seems stuck on the data that I read yesterday ...
2
votes
1answer
53 views

Implement a function which import data from the same webpage root

I would like to implement a function to import several dataset from the same website source, where for each dataset it changes just one word on the website address. Here the website: ...
0
votes
0answers
17 views

Exporting a Mixed (text and numeric) List to a File and Reimporting it Without Unwanted Changes

I found a few similar posts, but not close enough to give me an idea what to do. My problem is that I have a mixed format (data and string) nested list which I want to output to a file. I then want to ...
4
votes
1answer
183 views

SemanticImport vs Import differ on same CSV file?

Using WL 12.1.0. Is SemanticImport caching data somewhere? I did this SemanticImport for the first time, yesterday. Worked fine. ...
4
votes
1answer
88 views

Correcting nonsense digits during data import

I import large amounts of data, and for whatever reason the data in cases add large numbers of either '0s' or '9s'. However, as the numbers have very different relevant digits, I cannot simply use ...
0
votes
1answer
27 views

Avoid an Error Message when Importing

Consider the following code Button["Import", file = SystemDialogInput["FileOpen"]; data = Import[file], Method -> "Queued"] which yields a button which, ...
2
votes
4answers
112 views

Mathematica switches file formats on import [closed]

...
0
votes
0answers
54 views

429 error when importing webpage

I am interested in checking which of my favorite groceries are on special at which supermarket before going to the shops (to know which items to buy from which supermarket) but every time I try to ...
0
votes
0answers
12 views

Trouble re-importing the output from an x3d export

I'm having some trouble re-importing the output of an x3d export of a 3D plot, and I'd like to understand why it's failing and how to fix it. The short version of what I want to do is to make a 3D ...
0
votes
0answers
33 views

Import a function from another notebook changing a parameter

I am trying to import a function obtained from another notebook into my current notebook. In addition to importing it, I must replace all x with (x + 40). Here goes na example: Notebook 1: ...

1
2 3 4 5
26