Re: [nbos] Importing .csv files
Daniel Williamson
Sun Feb 4th, 2007
Hi Mike,

If you send me both csv (or AS, I can export to csv) files off list I can return a file to import into AS.

I can probably write the second script you ask for, but I'm really best in perl and would struggle with writing it in AstroScript. I realize that a perl script will be useless to you, so I could work on the AS version. You want to be able to enter a free text spectral type and a distance from the selected star and have it provide a list of all stars that satisfy that criteria? Entering "K" would match everything from K0V to K9V and K0III for example?

Dan.

___________________________________________________
"Umm..."

----- Original Message ----
From: Mike Oliver <mike-oliver-at-blueyonder.co.uk>
To: nbossoftware-at-nbos.com
Sent: Sunday, February 4, 2007 6:44:18 AM
Subject: Re: [nbos] Importing .csv files

Dan:

That would be highly useful. The map into which I want to import has
star names based on the Bayer/Flamsteed systems, with quite a few "GJ"
references and the odd HIP and HD numbers. The .csv file for importation
has all HIP and/or HD names with some "BD+...." and the like.

This is why the standard AS method for eliminating duplications won't
work. The work-around involves deleting all the Bayer/Flamsteed and
other references from the .csv file on the basis of their distance from
Sol. All the stars in the map lie within 100 lt yrs of Sol, whilst the
.csv file goes out to 1000 lt yrs.

If your script can identify the spectral types, could it be adjusted to
allow searching to identify all systems of a user-defined spectral type
(from "G type" to "G2III" type) and include the ability to do so within
user-specified distances from any other star?

Cheers,

Mike

-----Original Message-----
From: nbossoftware-bounces-at-nbos.com
[mailto:nbossoftware-bounces-at-nbos.com] On Behalf Of Daniel Williamson
Sent: 2 February 2007 14:02
To: nbossoftware-at-nbos.com
Subject: Re: [nbos] Importing .csv files

I already have a script written that will detect stars that are too
close to one another. I could tweak it to take into account other
factors like spectral type or other factor that is in the data file.

Dan.

___________________________________________________
"Umm..."


----- Original Message ----
From: Nyrath the nearly wise <nyrath-at-projectrho.com>
To: nbossoftware-at-nbos.com
Sent: Thursday, February 1, 2007 10:22:27 AM
Subject: Re: [nbos] Importing .csv files


Mike Oliver wrote:
> Yes, that's more or less why I asked the question. That was the method
I
> believed should work. The actual duplicates were definitely not
skipped
> and I got multiple duplications. I can sort of see the reason why it
> happened. The programme is looking for a duplicated name and if, as I
> have done, systems have been re-named from the original, there is no
> duplication perceived.
>
> I wish I'd realised this was the case before doing all the work I've
> done. It looks like I'll have to go through and manually delete each
> duplication. Heaven knows how many there are or how I'll identify
them.

I believe that AstroSynthesis can export *.csv files.
In theory one could export the existing star list,
merge the two *.csv files, and write a quick and dirty
program to parse through it and make a list of
stars that are suspiciously too close to each other.
Or even to weed them out.
_______________________________________________
Nbossoftware mailing list





________________________________________________________________________
____________
Now that's room service! Choose from over 150,000 hotels
in 45,000 destinations on Yahoo! Travel to find your fit.
http://farechase.yahoo.com/promo-generic-14795097
_______________________________________________
Nbossoftware mailing list





_______________________________________________
Nbossoftware mailing list








____________________________________________________________________________________
Do you Yahoo!?
Everyone is raving about the all-new Yahoo! Mail beta.
http://new.mail.yahoo.com
_______________________________________________
Nbossoftware mailing list


Copyright © 2003-2007, NBOS Software. All rights reserved. 'Fractal Mapper', 'ScreenMonkey', 'Character Sketcher', 'Inspiration Pad', 'Fractal World Explorer', 'Goblin API', 'AstroSynthesis' are trademarks of NBOS Software. 'Dwarven Beserker' art by V. Shane.
Member contributed resources