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

191 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
1
vote
0answers
53 views

SemanticImport cannot find files

I have the following, simple code I am trying to execute: SemanticImport["data.csv" <|2 -> String, 3 -> Integer|>] Which gives me the following error:...
1
vote
0answers
75 views

Axes labels in importing NetCDF files

Issue I would like to get Mathematica's NetCDF functionality compatible with that used in the Python package xarray. First generate some dummy data. ...
1
vote
0answers
45 views

Binary Image Size after import

I have a lot of binary images I would like to import into mathematica. Each of them is 132kB (1024x1024) big. Like the following: As soon as I import it into Mathematica however and call ByteCount[...
1
vote
0answers
169 views

What's the most efficient way to batch-import, batch-process and batch-export images?

I am trying to process hundreds of images in the same way and export them automatically one by one. Right now, I only have the image processing code for one image, and I want to learn what is the most ...
1
vote
0answers
99 views

Importing a PDF the words are incorrectly recognised and glued together

As a reproducible example to demonstrate the problem, I will consider a simple pdf document produced by the following tex file: ...
1
vote
0answers
352 views

Accessing table extension in FITS file

I have a FITS file here that has no image but simply has a binary table in its extension. I have tried using Import["file","Tabledata"] but it returns an empty ...
1
vote
0answers
72 views

Evaluate .nb automatically and sequentially using external file as input

I am interested in implemented the following workflow. I have a Mathematica script that receives an input (manually), executes the algorithm based on that input, and stores output into a CSV file. ...
1
vote
0answers
105 views

Import large .txt MathML expression

I have extremely large .txt file (around 180 MB in the MathML form). This .txt file contains simplified expression in polynomial form and can not be reduced more. After starting the import process, ...
1
vote
0answers
193 views

NASA CDF Epoch format

This is a rather obscure question, but perhaps someone has the answer. I am trying to read/interpret a number stored in NASA's CDF Epoch format. That's the number of milliseconds past Jan 1, year zero....
1
vote
0answers
59 views

Data Handling and importing huge matrix data

I have a file with some $18000\times5009$ matrix with file size 1GB . this is huge data i want to import this efficiently as well as do data handling with this huge ...
1
vote
0answers
56 views

Load GEBCO data for making bathymetry relief plots

Does Mathematica understand GEBCO? Is it able to download GEBCO bathymetry datasets and use that data to make relief plots?
1
vote
0answers
59 views

How to restrict Import & Export functions to a specified path?

We're providing Mathematica computing service to our customers. Now we're decided introducing Import and Export functions, but ...
1
vote
0answers
119 views

Import[] .obj data with per-vertex colors?

There's a somewhat standard way of including per-vetex color with obj files: Geometric Vertex[edit] A vertex can be specified in a line starting with the letter "v". That is followed by (x,y,z[,w]...
1
vote
0answers
47 views

Arrange of several files

I am struggling to import my data. There are 400 files in CSV format with names organised by date like: Table1_20111003_YYYY_MM_DD_0000.dat. In each file over 20 colums and 86400 rows (seconds of ...
1
vote
0answers
60 views

embeding an image in a cdf deployment

I would like to embed an image into CDF. Import function just import the function from a pathway but I would like the image to be present in the CDF or nb file as a part of it not importing. ...
1
vote
0answers
177 views

Import using POST method and web-page drill down

A response to a previous question about invoking the POST method via Mathematica was most informative in trying to further understand the intricacies of using the POST Method to obtain tabular data ...
1
vote
0answers
187 views

How to import and export msgpack?

MessagePack is an efficient binary serialization format, I find it much better than JSON. There is currently (as of v10.3) no support for this in Mathematica. Does anyone know of third party ...
1
vote
0answers
133 views

Error when importing XML - XMLGetString::pserr: MalformedURLException

I am getting the following error when trying to import XML: ...
1
vote
0answers
51 views

How to avoid import evaluation until if wil return true

My goal is to import a data from url that depends of 1 parameter, this initialy value is null or undifined en yo have to selec some popup and then the variable has value, what is the method to do that?...
1
vote
0answers
46 views

Imported variables (.mx) are emptied occassionally (Linux, v10.0.2)

I have a severe problem with variables being "emptied" occassionally. I am not able to reproduce the behavior but this is basically what happens: 1) store list list...
1
vote
0answers
270 views

How to Import .ibw files in Mathematica

Can anyone tell me how to import .ibw (igor binary wave) into Mathematica?
1
vote
0answers
70 views

Can I import (and repair) damaged GIS shape files?

Five GIS shape files are available online at http://www.utahcounty.gov/OnlineServices/maps/DataLayers.asp. Mathematica 10 imports 4 of the 5 files just fine (in the sense that, after download, <...
1
vote
0answers
94 views

Import a web page with $\LaTeX$ code including images (png or other)

To be brief; I would like to import a web page, so I use Import["http://fabricebaudoin.wordpress.com/2012/10/25/lecture-32-the-malliavin-derivative/"]; which ...
1
vote
0answers
218 views

SemanticImport::unexpinvaliderr error when using trial version

I am trying to use SemanticImport for a personal experiment. I can correctly import a tsv file from a path, but if I change ...
1
vote
0answers
176 views

Datastream to Mathematica

I currently use data from Thomson Reuters Datastream. With an add-in in Excel, the data can be requested. Because I need to use the data in Mathematica, and I need to update the data frequently: Is it ...
1
vote
0answers
459 views

InstallJava::fail error when importing an image with a Raspberry Pi

I'm trying to import an image in Mathematica on my Raspberry Pi. The code is simple but I get an error when importing: ...
1
vote
0answers
119 views

Getting InputStream errors when including a call to ElementData within an Import definition

So I am writing an ImportExport converter for a common chemistry file format, and I've run up against a problem that seems to be about shared streams and whatnot. ...
0
votes
0answers
15 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#/...
0
votes
0answers
20 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 ...
0
votes
0answers
30 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 ...
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
81 views

Importing a list of number with no comma

In the code below, the variable named "variable" generates the following list of ten elements: ...
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: ...
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 ...
0
votes
0answers
49 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
11 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
32 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: ...
0
votes
0answers
52 views

Is there a more efficient way to use StringReplace?

I have constructed a table that I want to save in such a way that it looks like a python input because of reasons. For that I save the table's output in a .txt file and then perform a StringReplace ...
0
votes
0answers
39 views

How to use Headers after imported them?

I read this post here, and played a bit with the Import function, so I now have my data imported from xlsx file, which say is a <...
0
votes
0answers
43 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
0answers
40 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
0answers
20 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
38 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
0
votes
1answer
50 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 (...
0
votes
0answers
24 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 ...
0
votes
0answers
37 views

How do I import changing/dynamic data on a webpage?

A remote device (sensor) is sending measurements (that I get in JSON format) to a given URL and is sending new measurements (data points) every couple of minutes. I cannot share the URL but the ...
0
votes
0answers
62 views

Finding area between curves formed by csv data

I have a bunch of Differential Pulse Voltammetry data I am trying to import into Mathematica, and find the area between each curve and the blank. So far I have used the following commands: ...
0
votes
0answers
25 views

Strange Import behaviour from wls script

I have a data file that is composed as follows ...
0
votes
0answers
50 views

How to export a multidimensional array in which each element is also an array?

I have a {15,5,2} dimensional array and each element is itself a {14,16} dimensional array. When I export/import my file as an excel file I get a {15,,5,2} dimensional array but with {} dimension for ...
0
votes
0answers
37 views

Verify that a document matches a URL

Writing: Quiet[Length[Import["http://www.africau.edu/images/default/sample.pdf"]]] I get: 2 while writing: ...