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

231 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
12
votes
0answers
453 views

Why does Mathematica consume so much memory when reading binary data?

There are somewhat similar questions on here, but I didn't find a satisfying answer for this case: I import a 1.7 GB binary data file using the following command: ...
12
votes
0answers
1k views

What are the known differences between Save and DumpSave, and how to account for them?

Edit: I changed the title and (slightly) the wording of this question in order to make it more easily answerable. If I evaluate this in Mathematica 9: ...
11
votes
0answers
523 views

Is it possible to use better modern compression algorithm instead of zlib in Mathematica for efficient data saving and loading?

Some backgrouds of my problem: Recently, I had a heavy data analysis work to do. Each day I got thousands of csv Files(colums with different datatype) with total several Gigabytes. I have to ...
9
votes
0answers
123 views

What governs how Mathematica selects the appropriate format for an Import?

Under Mathematica 11, I have cobbled together an Import Converter that is able to handle simple cases of Apple Mail emlx files. I did this because, without the Importer, emlx files are imported ...
9
votes
0answers
289 views

Wolfram Data Framework specification?

Motivated by a recent question on the meaning of all sorts of W* acronyms, I would like to get more information about the Wolfram Data Framework (WDF). On its web page http://www.wolfram.com/data-...
9
votes
0answers
253 views

Call Magma in Mathematica

I've written some code in Mathematica, related to some group theory questions I have. Subsequently, I found that part of the code could be significantly sped up if I could just call a routine in ...
8
votes
0answers
182 views

Guide to capturing the complete image of given urls?

I'm trying to use WebImage[] to capture the complete image of a website (yes, it might be very tall). I seem to be having some issues with it: How to attempt to capture a complete image of the ...
8
votes
0answers
96 views

Extracting, Formatting, and Exporting Mathematica AstronomicalData - Is There an Easier Way?

If any of you have tried to use Mathematica AstronomicalData and its newest replacements like StarData, you may already be familiar with the large data issues, and the almost impossible download times....
7
votes
0answers
71 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 ...
7
votes
0answers
157 views

How to import unsupported language dictionaries?

Mathematica seems to only know about these 27 languages: However, I need access to dictionaries for other languages, namely Romanian and Japanese. Now, WordList ...
7
votes
0answers
462 views

ImportString JSON possible bug

My problem is when I catch up some json output of whatever method and process it with ImportString[%, "JSON"], The first time ...
6
votes
0answers
99 views

Importing a 12 bit array

I have a binary file of 12 bits integers obtained from a camera software. It can produce FITS files from these but the processing time on the large data set I have is excessive. What I have is the ...
6
votes
0answers
225 views

How to create TAR archive without top-level folder?

Mathematica has the handy CreateArchive function, which allows you to efficiently create a TAR archive from a directory. However, I see no way of specifying not to ...
6
votes
0answers
1k views

Open LabView's TDMS file?

How to open the National Instruments LabView TDMS files? Has anyone developed a library or code for easily importing these? National Instruments provide a DLL and specification for the format. There ...
6
votes
0answers
121 views

Import successful when file manually deleted

Apparently Import keeps an imported file in the cache and doesn't complain for some time if a file is deleted manually from the system and then it is imported. If the file is deleted from within ...
5
votes
0answers
170 views

Hyperspectral files in the ENVI format?

Have any of you had the pleasure of reading geospatial / hyperspectral files in the ENVI format? Headers that describe the data here, https://www.harrisgeospatial.com/docs/enviheaderfiles.html which ...
5
votes
0answers
137 views

Export/Put and Import/Get

I have questions about importing and exporting that don't seem to have up-to-date answers anywhere. What's the difference between Export and Put? Which should I use if I care about how long it takes ...
5
votes
0answers
104 views

Find Import/Export format data

Often Import related questions come up, for which I'm always wanting to inspect the proper import function used to see what ...
5
votes
0answers
63 views

Why ReadList ignores NullRecords for Number?

When thinking on this recent question the immediately obvious solution which came to my mind was to use ReadList with options ...
5
votes
0answers
218 views

How to import a “.txt” data from a large zip (2-4G) file?

I have many large zip files (2-4G for each file) which contain many ".txt" data. I want to analyze these data in Mathematica 10.4 but I failed to import the ".txt" file. I get this super helpful error ...
5
votes
0answers
76 views

Bug with exporting Image/Graphics into CMYK JPEG?

While answering the question (123118), @RussLyons pointed out that exporting graphics and images in CMYK JPEG does not function correctly. For instance: ...
5
votes
0answers
70 views

Is there a way to use iframes in a notebook?

For me, mathematica online is totally unusable, but the EmbeddedServices would be great to use. I wish that these functions worked in Mathematica, is there any hack anyone can think of to get these ...
5
votes
0answers
91 views

why does ReadString[“fname”,term] open a persistent stream, and how to close it?

Bug introduced in 10.0 and fixed in 10.3.0 Create a file temp.txt with the following content: test1 ;;; test2 ;;; test3 ;;; ...
5
votes
0answers
194 views

Problem with FTP import in V10

Mathematica V10 returns an error when download directory. URLFetch :: invhttp: "FTP: could not retrieve (RETR failed) the specified file." V9 successfully retrieves the same reference. This code ...
5
votes
0answers
165 views

What is the best way (lossless) to import .skp files into Mathematica?

I am using the free version of Google Sketchup and I've got a few designs in hand, which I need to be able to import into Mathematica. I saw the similar question asked by @Sjoerd C. de Vries in Stack ...
4
votes
0answers
75 views

Is this the most idiomatic way to convert matrix into dataset?

Is this the most idiomatic way to convert matrix into dataset? (for Mathematica 10 or higher) I was kind of hoping this would work: ...
4
votes
0answers
86 views

Importing and and manipulating large GEOJSON files based on geographic locations

I have large GeoJson data files that I would like to import (i.e. buildings in a city, see image below for data structure) and then "cut out" only the buildings that are within approx. 100 GeoDisks (...
4
votes
0answers
385 views

Is there a way of reading the data out of a MATLAB's “.fig” file in Mathematica?

I have a ".fig" file from MATLAB that I know is a list of $ (x, y) $ coordinates. As far as I know, the ".fig" format stores the data and recreates it every time is opened. I would like to get the ...
4
votes
0answers
46 views

Weird behaviour when importing a mixed graph from GraphML file

Consider a mixed graph G1 stored in GraphML file: ...
4
votes
0answers
53 views

What is a good source of public domain 3D images that can be imported into Mathematica?

I am interested in using some 3D images for a lesson I'm developing for kids, in which I want to show them various printouts of 2D cross-sections of the image and have them try to figure out what the ...
4
votes
0answers
431 views

How to OpenSQLConnection with JDBC for “Microsoft Excel”?

I have a very large Microsoft Excel file that will not Import even after setting a 5GB heap size for Java as follows. ...
4
votes
0answers
200 views

Importing large number of frames form Video - improved method?

I am trying to work with large numbers of frames from a video (30000+). I see there are a number of answers out there, but I find none of them satisfying - see below for details. I understand from ...
4
votes
0answers
145 views

Monitor progress of ZIP file extraction

Importing a ZIP file containing potentially many individual files in a (custom) format using Import[filename, {{"*"}, "Gaussian"}] takes quite a while. How can I ...
4
votes
0answers
234 views

Import Excel data forcing links (ie workbooks) to be updated

We have noticed importing data from an Excel spreadsheet doesn’t update links. The problem with this is if you import a spreadsheet that comprises of linked workbooks data and those workbooks have ...
4
votes
0answers
263 views

Single image import from stack via FTP connection

Background I would like to create a CDF document that is embedded on a webpage. The CDF will contain some image display ...
4
votes
0answers
1k views

Can not Import PDF

I try to import PDF and extract text from it Import["D:\\Vegetarian MS.pdf", {"PDF", "Plaintext"}] but with some files I have a problem like this ...
4
votes
1answer
490 views

How to Export to/Import from GeoGebra?

I'd like to convert geometric figures between Mathematica and GeoGebra. Does anyone know how to do that?
3
votes
0answers
53 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 ...
3
votes
0answers
33 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 ...
3
votes
0answers
73 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", "...
3
votes
0answers
161 views

Is there a way to make Mathematica work with Parquet?

Has anyone tried to make Mathematica work with Parquet? If so, what are the solution possibilities? And how can this be made possible? https://community.wolfram.com/groups/-/m/t/1595622
3
votes
0answers
99 views

Mathematica (v12.0) fails to Import NASACDF (Common Data Format)

I was doing research about Mars using data from MAVEN spacecraft. The data used could be downloaded from https://lasp.colorado.edu/maven/sdc/public/data/sci/swe/l2/2017/06/. When run ...
3
votes
0answers
215 views

Is is a bug when importing MXNet model?

There is a trained net:model.zip Using Python to make prediction: ...
3
votes
0answers
74 views

URLDownloadSubmit is not asynchronous?

I'm trying to download a few thousand images (using an authenticated get request). This explanation of parallel downloading was a great answer to the problem of handling massive parallel asynchronous ...
3
votes
0answers
75 views

What image adjustments are made when importing raw camera data?

I am trying to use Mathematica to import and process raw camera data in the Canon CR2 format. What I would like is data which has a linear relationship to exposure. I am thinking that the closest I ...
3
votes
0answers
738 views

MP4 won't import

I am having trouble importing the 8MB mp4 file available at this link. It was recorded on my Digital Camera and is 1920x1080 30fps. I've tried ...
3
votes
0answers
117 views

SemanticImport extremely slow with “Number” format

With the following definition: col = "num\n" <> StringRiffle[Table[i, {i, 1000}], "\n"]; I do not understand why the ...
3
votes
0answers
216 views

Confocal Microscopy

Is it possible to direcly import Nikon ND2 files (e.g Confocal microscope 2D or 3D stacks files)? Otherwise how can we import TIFFs of 3D stack and process it as a single "entity" so to speak? ...
3
votes
0answers
877 views

import of a opj file (Origin)

Is there a way to import a file of opj-type? Or do you know a package to convert the data? The Import[] function seems not to know this format.
3
votes
0answers
92 views

Error importing MBOX file

I am trying to import the mbox file generated by gmail. Using the Import command. ...

1
2 3 4 5