View Issue Details

IDProjectCategoryView StatusLast Update
0000714SkyChart1-Softwarepublic11-09-03 14:49
ReporterJuan D. Tardos Assigned ToPatrick Chevalley  
PrioritynormalSeverityfeatureReproducibilityalways
Status closedResolutionfixed 
Platformx86OSWindowsOS VersionXP
Product Version3.2 
Target Version3.4Fixed in Version3.3 SVN 
Summary0000714: Save object lists using a proper CSV format
DescriptionCurrently, saving an object list and trying to open it in other applications like Excel is a mess because the format used is not a true csv, but a tab-separated text format. If you just click on the file, it is badly open by Excel. The current format is correctly opened by excel if the file extension is changed to .txt

However, it would be much more useful to use a true csv format, with column names in the first line. I am attaching an example of a proper csv object file obtained from a CdC object list after some manipulations.
Additional InformationFor the definition of csv format see
http://en.wikipedia.org/wiki/Comma-separated_values
TagsNo tags attached.

Relationships

related to 0000213 closedPatrick Chevalley object list: produce more beautiful table layout; more options to sort table 

Activities

Juan D. Tardos

10-10-12 17:07

reporter  

Abril.zip (2,550 bytes)

Patrick Chevalley

10-10-12 18:18

administrator  

csv1.png (47,117 bytes)   
csv1.png (47,117 bytes)   

Patrick Chevalley

10-10-12 18:18

administrator  

csv2.png (45,432 bytes)   
csv2.png (45,432 bytes)   

Patrick Chevalley

10-10-12 18:33

administrator   ~0001357

I am surprised if Excel cannot use tab as separator. I never have problem with OpenOffice to open this files, see attached screenshot.

I prefer to use tab over coma for the reason explained on the wikipedia page you link.
Coma is used as a decimal separator on many countries, so you need to double quote any numeric field to avoid problems.
But we use double quote for arcsecond unit that now need to be doubled in the file.
Using tab you not have this problem and produce a file easy to read in any text editor.

Juan D. Tardos

10-10-12 19:17

reporter   ~0001358

Yes, Excel can use tab as separator, but its behaviour is:
- If the extension is .csv, it opens the file directly assuming the separator is a coma, and you get a mess of a file.
- If the extension is .txt it opens a dialog to let you select the separator used, as OpenOffice does, then you choose Tab as separator and it works.
No big issue, I can save the file with .txt extension and it works on both.

Second issue is the column names. In the current output they are mixed with the column values, which makes the lines unnecessary long, bad for printing. I would prefer something cleaner, as in the example I sent.

Patrick Chevalley

10-10-23 11:25

administrator   ~0001362

OK, I look how to add option for that at the same time I work on 0000213

Patrick Chevalley

10-11-13 14:42

administrator   ~0001419

Revision 1573 use comma separator if extention is .csv, tab for other extention (.tsv suggested). When using .csv any comma in data is replaced by a dot.

As the file can contain data from many catalog source with different column content it is not possible to normalize the column except for RA,DEC,Type,Name,Magnitude.
Even for magnitude it is not possible to remove the name from the column as it can indicate the color, depending on the source catalog.

http://svn.origo.ethz.ch/viewvc/skychart?view=rev&revision=1573

Issue History

Date Modified Username Field Change
10-10-12 17:05 Juan D. Tardos New Issue
10-10-12 17:07 Juan D. Tardos File Added: Abril.zip
10-10-12 18:18 Patrick Chevalley File Added: csv1.png
10-10-12 18:18 Patrick Chevalley File Added: csv2.png
10-10-12 18:33 Patrick Chevalley Note Added: 0001357
10-10-12 18:33 Patrick Chevalley Status new => feedback
10-10-12 19:17 Juan D. Tardos Note Added: 0001358
10-10-12 19:17 Juan D. Tardos Status feedback => new
10-10-23 11:24 Patrick Chevalley Relationship added related to 0000213
10-10-23 11:25 Patrick Chevalley Note Added: 0001362
10-10-23 11:25 Patrick Chevalley Assigned To => Patrick Chevalley
10-10-23 11:25 Patrick Chevalley Status new => assigned
10-10-30 10:06 Patrick Chevalley Target Version 0.3.0 => 3.4
10-11-13 14:42 Patrick Chevalley Note Added: 0001419
10-11-13 14:42 Patrick Chevalley Status assigned => resolved
10-11-13 14:42 Patrick Chevalley Resolution open => fixed
10-11-13 14:42 Patrick Chevalley Fixed in Version 0.3.0 => 3.3 SVN
11-09-03 14:49 Patrick Chevalley Status resolved => closed