Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Favorites infavorites:mine
infavorites:1234
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with Search options answers only user 5478

Questions about getting data, files, images etc. from various formats into a form that can be read, tranformed and manipulated by Mathematica

6
votes
In WL this format is known as NASACDF In doubt you can always import "Elements" and try each one: Import["Posing.cdf", "Elements"] {"Annotations", "Data", "DataEncoding", "DataFormat", "Datasets … ", "Metadata"} Import["Posing.cdf", "Data"] Initially returned {"Pose"} was a list of datasets stored in a file. You can extract specific dataset via: Import["Posing.cdf", {"Datasets", "Pose"}] All that and more can of course be learned from linked documentation page. …
answered Aug 18 '17 by Kuba
6
votes
You can Import[#, "Text"]& and then: ImportString["[" <> # <> "]", "JSON"] & @ "[123.123,12,123],[1.1,1.2,3]" {{123.123`, 12, 123}, {1.1`, 1.2`, 3}} …
answered Apr 27 '17 by Kuba
3
votes
Block[{x = 1, y = 2}, Export["out.m", ReadList["data.m"], "Table"] ] FilePrint@"out.m" 1 2 3 3 8
answered Dec 4 '18 by Kuba
3
votes
add /: Import@HTTPRequest[<|"Scheme" -> "https", "Method" -> "GET", "Domain" -> "api.nasa.gov", "Path" -> "planetary/earth/imagery/",(*!!*) "Query" -> {"lon" -> 100.75, "lat" -> 1.5 …
answered Nov 13 '18 by Kuba
2
votes
What about Import/Export?: Export[LocalObject["test/a"], 1, "MX"]; Import[LocalObject["test/a"], "MX"] 1 Import[LocalObject["test/a"], "Text"] (This is a Wolfram Language binary dump file. It can be loaded with \ Get.) ... (End of Wolfram Language binary dump file) …
answered Dec 4 '17 by Kuba
10
votes
Let's say you've managed to import the data from excel and you want to transform list: {{strength, angle}...} so it fits the methods from the Q&A: How to create a wind rose with Mathematica …
answered Oct 31 '13 by Kuba
2
votes
As of V11.2 Content-Encoding specification is respected by URLRead and e.g. URLRead[ "https://api.stackexchange.com/2.2/info?site=mathematica", "Body" ] Works well. For earlier versions one nee …
answered Oct 17 '17 by Kuba
2
votes
l = ConstantArray[{"26.11.2014 13:56:17", "26.11.2014 13:56:18" , "26.11.2014 13:56:20"}, {10000}] // Flatten; I can get 20x speed up by converting it to DateList form: Absolute …
answered Nov 30 '14 by Kuba
1
vote
Code outline: ClearAll[XMLNote]; (*modified, only act on target tags*) XMLNote[ XMLElement[tag : "section" | "TextHeading", attributes_, data_], m_Integer ] := ... (*new, for other tags …
answered May 12 '15 by Kuba
16
votes
code = " BeginPackage[\"Foo`\"] MyFoo::usage = \"MyFoo[] is a function\"; Begin[\"`Private`\"] foo[] := 3 (* helper function *) MyFoo[] := foo[]^2 (* my function *) bar[]:=DynamicModule[{x …
answered Aug 24 '16 by Kuba
7
votes
", ... binarydata = Import[encodedFile, "Binary"] stream = OpenRead["whateverName", Method -> {"ByteList", "Bytes" -> binarydata}] Get[stream, password] Execution: (* This part is taken bit by bit from … in case*) ClearAll@f; f[x_] := x^2; Save[file, f]; password = "kuba"; Encode[file, fileEnc, password]; ClearAll@f; bin = Import[fileEnc, "Binary"]; stream = OpenRead["dumpsave", Method -> {"ByteList", "Bytes" -> bin}]; Get[stream, password]; Close[stream]; f[2] 4 …
answered Mar 27 '15 by Kuba
3
votes
NotebookImport doesn't support it directly but you could import "Input"|"ExampleSection" and just split by style. You could but you can't because somehow ExampleSection style in those cells is put … we have to live with NotebookGet or Import and parse it: Cases[ NotebookGet[nb], { c : Cell[ _?(! FreeQ[#, ("Basic Examples" | "Possible Issues")] &), "ExampleSection …
answered Dec 20 '16 by Kuba
1
vote
"}]}]; Importing 1 Next, assuming You want to Import all files from FolderName, bill s's way is natural also to me. But, You have also said that those should be collumns. Assuming each has equal length we … need to do transposition: NumberConcentration = Import[#, "Table"][[87]] & /@ files; NumberConcentration = Transpose@NumberConcentration; Importing 2 But Your way is also possible. You only have to …
answered Jul 6 '13 by Kuba
2
votes
issue was known because: V10.4 returns $Failed and Import::fmterr: Cannot import data as JSON format. >> V11.2 returns Failure with `ImportFailure tag. No messages. V11.3 returns correct association … For pre 11.3 use either Import or linked route through "BodyBytes": ImportString[ FromCharacterCode @ URLRead[ "http://datdota.com/api/players/101586543", "BodyBytes"] , "RawJSON" ] <|"data" -> <|"nickname" -> "跳刀跳刀丶", "steam_id" -> "101586543"|>|> …
answered Mar 27 '18 by Kuba
1
vote
If you want to import a specific element of a pdf you can use "Text" type and proceed with ImportString and elements spec: FormFunction[ "file" -> "Text" , ImportString[#file, {"PDF", "Plaintext …
answered Dec 22 '18 by Kuba

15 30 50 per page