Reading a .FIT file

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

Reading a .FIT file

Stan Gorodenski
I would like to write a program to read a .FIT file as described here:
https://fits.gsfc.nasa.gov/fits_primer.html
Before I take the time, which would be a lot because I know next to
nothing about .FIT files, to learn the structure of a .FIT file, does
anyone know if it is even possible to write a routine in SPSS syntax to
read a .FIT file? If it is possible and someone has already done this,
could I get the syntax to do it?
Stan

=====================
To manage your subscription to SPSSX-L, send a message to
[hidden email] (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD
Reply | Threaded
Open this post in threaded view
|

Re: Reading a .FIT file

Bruce Weaver
Administrator
Stan, the Wikipedia page for FITS (https://en.wikipedia.org/wiki/FITS) says
this:

"FITS support is available in a variety of programming languages that are
used for scientific work, including C,[6] C++, C#, Fortran,[6] IGOR Pro,
IDL, Java, Julia,[7] LabVIEW, Mathematica, MATLAB, Perl, PDL, Python, R, and
Tcl. The FITS Support Office at NASA/GSFC maintains a list of libraries and
platforms that currently support FITS.[8]"

That makes me wonder if you could use Python or R programmability to import
the data.  


PS- Sorry Jon, I should have forewarned you that I was going to suggest
trying either R or Python.  I hope it wasn't too much a shock.  ;-)  



Stan Gorodenski wrote

> I would like to write a program to read a .FIT file as described here:
> https://fits.gsfc.nasa.gov/fits_primer.html
> Before I take the time, which would be a lot because I know next to
> nothing about .FIT files, to learn the structure of a .FIT file, does
> anyone know if it is even possible to write a routine in SPSS syntax to
> read a .FIT file? If it is possible and someone has already done this,
> could I get the syntax to do it?
> Stan
>
> =====================
> To manage your subscription to SPSSX-L, send a message to

> LISTSERV@.UGA

>  (not to SPSSX-L), with no body text except the
> command. To leave the list, send the command
> SIGNOFF SPSSX-L
> For a list of commands to manage subscriptions, send the command
> INFO REFCARD





-----
--
Bruce Weaver
[hidden email]
http://sites.google.com/a/lakeheadu.ca/bweaver/

"When all else fails, RTFM."

NOTE: My Hotmail account is not monitored regularly.
To send me an e-mail, please use the address shown above.

--
Sent from: http://spssx-discussion.1045642.n5.nabble.com/

=====================
To manage your subscription to SPSSX-L, send a message to
[hidden email] (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD
--
Bruce Weaver
bweaver@lakeheadu.ca
http://sites.google.com/a/lakeheadu.ca/bweaver/

"When all else fails, RTFM."

NOTE: My Hotmail account is not monitored regularly.
To send me an e-mail, please use the address shown above.
Reply | Threaded
Open this post in threaded view
|

Re: Reading a .FIT file

Jon Peck
I knew you would come around eventually, Bruce.

There are lots of Python libraries to read such files.  See

for example.

However, FIT files can contain a variety of objects and attributes, so some thought about what exactly should be extracted is necessary.  I don't have time to do this at the moment.

On Fri, Oct 25, 2019 at 3:44 PM Bruce Weaver <[hidden email]> wrote:
Stan, the Wikipedia page for FITS (https://en.wikipedia.org/wiki/FITS) says
this:

"FITS support is available in a variety of programming languages that are
used for scientific work, including C,[6] C++, C#, Fortran,[6] IGOR Pro,
IDL, Java, Julia,[7] LabVIEW, Mathematica, MATLAB, Perl, PDL, Python, R, and
Tcl. The FITS Support Office at NASA/GSFC maintains a list of libraries and
platforms that currently support FITS.[8]"

That makes me wonder if you could use Python or R programmability to import
the data. 


PS- Sorry Jon, I should have forewarned you that I was going to suggest
trying either R or Python.  I hope it wasn't too much a shock.  ;-) 



Stan Gorodenski wrote
> I would like to write a program to read a .FIT file as described here:
> https://fits.gsfc.nasa.gov/fits_primer.html
> Before I take the time, which would be a lot because I know next to
> nothing about .FIT files, to learn the structure of a .FIT file, does
> anyone know if it is even possible to write a routine in SPSS syntax to
> read a .FIT file? If it is possible and someone has already done this,
> could I get the syntax to do it?
> Stan
>
> =====================
> To manage your subscription to SPSSX-L, send a message to

> LISTSERV@.UGA

>  (not to SPSSX-L), with no body text except the
> command. To leave the list, send the command
> SIGNOFF SPSSX-L
> For a list of commands to manage subscriptions, send the command
> INFO REFCARD





-----
--
Bruce Weaver
[hidden email]
http://sites.google.com/a/lakeheadu.ca/bweaver/

"When all else fails, RTFM."

NOTE: My Hotmail account is not monitored regularly.
To send me an e-mail, please use the address shown above.

--
Sent from: http://spssx-discussion.1045642.n5.nabble.com/

=====================
To manage your subscription to SPSSX-L, send a message to
[hidden email] (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD


--
Jon K Peck
[hidden email]

===================== To manage your subscription to SPSSX-L, send a message to [hidden email] (not to SPSSX-L), with no body text except the command. To leave the list, send the command SIGNOFF SPSSX-L For a list of commands to manage subscriptions, send the command INFO REFCARD
Reply | Threaded
Open this post in threaded view
|

Re: Reading a .FIT file

Kornbrot, Diana
In reply to this post by Stan Gorodenski
Recommend GoldenCheetah free web app
Create a new user then
activity tab, chose import from file [you can open several at once, unlike SPSS]
Activity tab, chose batch export and .csv. saves .csv with same name as .fit file, but .csv [it will export several at once, just check box for ones you want]
Import .csv to SPSS or EXCEL
Its VERY quick once you get used to pattern of actions
I can do 5 work session to SPSS in about 5 minutes
WAHOO, which is app I use for my WAHOO ticker belt has stopped exporting in .csv - maybe in cohorts with Fitbit 
No need to re-invent wheel. Wahoo eventually gave me this advice after several email tantrums
Good luck
best
Diana

On 25 Oct 2019, at 20:40, Stan Gorodenski <[hidden email]> wrote:

I would like to write a program to read a .FIT file as described here:
https://fits.gsfc.nasa.gov/fits_primer.html
Before I take the time, which would be a lot because I know next to nothing about .FIT files, to learn the structure of a .FIT file, does anyone know if it is even possible to write a routine in SPSS syntax to read a .FIT file? If it is possible and someone has already done this, could I get the syntax to do it?
Stan

=====================
To manage your subscription to SPSSX-L, send a message to
[hidden email] (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD

____________
University of Hertfordshire
College Lane, Hatfield, Hertfordshire AL10 9AB, UK
+44 (0) 170 728 4626
+44 (0) 7403 18 16 12
[hidden email]
http://dianakornbrot.wordpress.com/
http://go.herts.ac.uk/Diana_Kornbrot/
skype:  kornbrotme
Save our in-boxes! http://emailcharter.org
 __________________





===================== To manage your subscription to SPSSX-L, send a message to [hidden email] (not to SPSSX-L), with no body text except the command. To leave the list, send the command SIGNOFF SPSSX-L For a list of commands to manage subscriptions, send the command INFO REFCARD
Reply | Threaded
Open this post in threaded view
|

Re: Reading a .FIT file

Bruce Weaver
Administrator
Diana, you appear to be explaining how to export and then import the data
from a Fitbit.  That is not what Stan is asking about.  From the URL he
posted:

"FITS (Flexible Image Transport System) is the data format most widely used
within astronomy for transporting, analyzing, and archiving scientific data
files. FITS is much more than just another image format (such as JPG or GIF)
and is primarily designed to store scientific data sets consisting of
multidimensional arrays (images) and 2-dimensional tables organized into
rows and columns of information."

Source:  https://fits.gsfc.nasa.gov/fits_primer.html 



Kornbrot, Diana wrote

> Recommend GoldenCheetah free web app
> Create a new user then
> activity tab, chose import from file [you can open several at once, unlike
> SPSS]
> Activity tab, chose batch export and .csv. saves .csv with same name as
> .fit file, but .csv [it will export several at once, just check box for
> ones you want]
> Import .csv to SPSS or EXCEL
> Its VERY quick once you get used to pattern of actions
> I can do 5 work session to SPSS in about 5 minutes
> WAHOO, which is app I use for my WAHOO ticker belt has stopped exporting
> in .csv - maybe in cohorts with Fitbit
> No need to re-invent wheel. Wahoo eventually gave me this advice after
> several email tantrums
> Good luck
> best
> Diana
>
> On 25 Oct 2019, at 20:40, Stan Gorodenski &lt;

> stanlep@

> &lt;mailto:

> stanlep@

> &gt;> wrote:
>
> I would like to write a program to read a .FIT file as described here:
> https://fits.gsfc.nasa.gov/fits_primer.html
> Before I take the time, which would be a lot because I know next to
> nothing about .FIT files, to learn the structure of a .FIT file, does
> anyone know if it is even possible to write a routine in SPSS syntax to
> read a .FIT file? If it is possible and someone has already done this,
> could I get the syntax to do it?
> Stan
>
> =====================
> To manage your subscription to SPSSX-L, send a message to

> LISTSERV@.UGA

>  (not to SPSSX-L), with no body text except the
> command. To leave the list, send the command
> SIGNOFF SPSSX-L
> For a list of commands to manage subscriptions, send the command
> INFO REFCARD
>
> ____________
> University of Hertfordshire
> College Lane, Hatfield, Hertfordshire AL10 9AB, UK
> +44 (0) 170 728 4626
> +44 (0) 7403 18 16 12

> d.e.kornbrot@.ac

> &lt;mailto:

> d.e.kornbrot@.ac

> &gt;
> http://dianakornbrot.wordpress.com/
> http://go.herts.ac.uk/Diana_Kornbrot/
> skype:  kornbrotme
> Save our in-boxes! http://emailcharter.org
>  __________________
>
>
>
>
>
>
> =====================
> To manage your subscription to SPSSX-L, send a message to

> LISTSERV@.UGA

>  (not to SPSSX-L), with no body text except the
> command. To leave the list, send the command
> SIGNOFF SPSSX-L
> For a list of commands to manage subscriptions, send the command
> INFO REFCARD





-----
--
Bruce Weaver
[hidden email]
http://sites.google.com/a/lakeheadu.ca/bweaver/

"When all else fails, RTFM."

NOTE: My Hotmail account is not monitored regularly.
To send me an e-mail, please use the address shown above.

--
Sent from: http://spssx-discussion.1045642.n5.nabble.com/

=====================
To manage your subscription to SPSSX-L, send a message to
[hidden email] (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD
--
Bruce Weaver
bweaver@lakeheadu.ca
http://sites.google.com/a/lakeheadu.ca/bweaver/

"When all else fails, RTFM."

NOTE: My Hotmail account is not monitored regularly.
To send me an e-mail, please use the address shown above.
Reply | Threaded
Open this post in threaded view
|

Re: Reading a .FIT file

Jon Peck
Here is a link to a list of software that supports FITS to varying degrees.

Note that while plain tables can be extracted from a FITS file and could probably be read in Statistics, these files can and often do include images and would probably need specialized software to do anything useful with them. 

On Sun, Oct 27, 2019 at 7:22 AM Bruce Weaver <[hidden email]> wrote:
Diana, you appear to be explaining how to export and then import the data
from a Fitbit.  That is not what Stan is asking about.  From the URL he
posted:

"FITS (Flexible Image Transport System) is the data format most widely used
within astronomy for transporting, analyzing, and archiving scientific data
files. FITS is much more than just another image format (such as JPG or GIF)
and is primarily designed to store scientific data sets consisting of
multidimensional arrays (images) and 2-dimensional tables organized into
rows and columns of information."

Source:  https://fits.gsfc.nasa.gov/fits_primer.html



Kornbrot, Diana wrote
> Recommend GoldenCheetah free web app
> Create a new user then
> activity tab, chose import from file [you can open several at once, unlike
> SPSS]
> Activity tab, chose batch export and .csv. saves .csv with same name as
> .fit file, but .csv [it will export several at once, just check box for
> ones you want]
> Import .csv to SPSS or EXCEL
> Its VERY quick once you get used to pattern of actions
> I can do 5 work session to SPSS in about 5 minutes
> WAHOO, which is app I use for my WAHOO ticker belt has stopped exporting
> in .csv - maybe in cohorts with Fitbit
> No need to re-invent wheel. Wahoo eventually gave me this advice after
> several email tantrums
> Good luck
> best
> Diana
>
> On 25 Oct 2019, at 20:40, Stan Gorodenski &lt;

> stanlep@

> &lt;mailto:

> stanlep@

> &gt;> wrote:
>
> I would like to write a program to read a .FIT file as described here:
> https://fits.gsfc.nasa.gov/fits_primer.html
> Before I take the time, which would be a lot because I know next to
> nothing about .FIT files, to learn the structure of a .FIT file, does
> anyone know if it is even possible to write a routine in SPSS syntax to
> read a .FIT file? If it is possible and someone has already done this,
> could I get the syntax to do it?
> Stan
>
> =====================
> To manage your subscription to SPSSX-L, send a message to

> LISTSERV@.UGA

>  (not to SPSSX-L), with no body text except the
> command. To leave the list, send the command
> SIGNOFF SPSSX-L
> For a list of commands to manage subscriptions, send the command
> INFO REFCARD
>
> ____________
> University of Hertfordshire
> College Lane, Hatfield, Hertfordshire AL10 9AB, UK
> +44 (0) 170 728 4626
> +44 (0) 7403 18 16 12

> d.e.kornbrot@.ac

> &lt;mailto:

> d.e.kornbrot@.ac

> &gt;
> http://dianakornbrot.wordpress.com/
> http://go.herts.ac.uk/Diana_Kornbrot/
> skype:  kornbrotme
> Save our in-boxes! http://emailcharter.org
>  __________________
>
>
>
>
>
>
> =====================
> To manage your subscription to SPSSX-L, send a message to

> LISTSERV@.UGA

>  (not to SPSSX-L), with no body text except the
> command. To leave the list, send the command
> SIGNOFF SPSSX-L
> For a list of commands to manage subscriptions, send the command
> INFO REFCARD





-----
--
Bruce Weaver
[hidden email]
http://sites.google.com/a/lakeheadu.ca/bweaver/

"When all else fails, RTFM."

NOTE: My Hotmail account is not monitored regularly.
To send me an e-mail, please use the address shown above.

--
Sent from: http://spssx-discussion.1045642.n5.nabble.com/

=====================
To manage your subscription to SPSSX-L, send a message to
[hidden email] (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD


--
Jon K Peck
[hidden email]

===================== To manage your subscription to SPSSX-L, send a message to [hidden email] (not to SPSSX-L), with no body text except the command. To leave the list, send the command SIGNOFF SPSSX-L For a list of commands to manage subscriptions, send the command INFO REFCARD
Reply | Threaded
Open this post in threaded view
|

Re: Reading a .FIT file

Stan Gorodenski
Thank you Jon, Bruce, and Diana. The list of software that supports FITS
will be very helpful. I had attended an astronomy meeting a little over
a week ago. Someone gave a talk using Python and with an app for Python
was able to read FITS files. I thought I would be able to do it with
SPSS (since I can write a program to read just about most any kind of
file format in my previous job), but when I looked at the description of
a FITS file I began to have my doubts.
Stan

On 10/27/2019 7:17 AM, Jon Peck wrote:

> Here is a link to a list of software that supports FITS to varying
> degrees.
> https://fits.gsfc.nasa.gov/fits_libraries.html
>
> Note that while plain tables can be extracted from a FITS file and
> could probably be read in Statistics, these files can and often do
> include images and would probably need specialized software to do
> anything useful with them.
>
> On Sun, Oct 27, 2019 at 7:22 AM Bruce Weaver <[hidden email]
> <mailto:[hidden email]>> wrote:
>
>     Diana, you appear to be explaining how to export and then import
>     the data
>     from a Fitbit.  That is not what Stan is asking about.  From the
>     URL he
>     posted:
>
>     "FITS (Flexible Image Transport System) is the data format most
>     widely used
>     within astronomy for transporting, analyzing, and archiving
>     scientific data
>     files. FITS is much more than just another image format (such as
>     JPG or GIF)
>     and is primarily designed to store scientific data sets consisting of
>     multidimensional arrays (images) and 2-dimensional tables
>     organized into
>     rows and columns of information."
>
>     Source: https://fits.gsfc.nasa.gov/fits_primer.html
>
>
>
>     Kornbrot, Diana wrote
>     > Recommend GoldenCheetah free web app
>     > Create a new user then
>     > activity tab, chose import from file [you can open several at
>     once, unlike
>     > SPSS]
>     > Activity tab, chose batch export and .csv. saves .csv with same
>     name as
>     > .fit file, but .csv [it will export several at once, just check
>     box for
>     > ones you want]
>     > Import .csv to SPSS or EXCEL
>     > Its VERY quick once you get used to pattern of actions
>     > I can do 5 work session to SPSS in about 5 minutes
>     > WAHOO, which is app I use for my WAHOO ticker belt has stopped
>     exporting
>     > in .csv - maybe in cohorts with Fitbit
>     > No need to re-invent wheel. Wahoo eventually gave me this advice
>     after
>     > several email tantrums
>     > Good luck
>     > best
>     > Diana
>     >
>     > On 25 Oct 2019, at 20:40, Stan Gorodenski &lt;
>
>     > stanlep@
>
>     > &lt;mailto:
>
>     > stanlep@
>
>     > &gt;> wrote:
>     >
>     > I would like to write a program to read a .FIT file as described
>     here:
>     > https://fits.gsfc.nasa.gov/fits_primer.html
>     > Before I take the time, which would be a lot because I know next to
>     > nothing about .FIT files, to learn the structure of a .FIT file,
>     does
>     > anyone know if it is even possible to write a routine in SPSS
>     syntax to
>     > read a .FIT file? If it is possible and someone has already done
>     this,
>     > could I get the syntax to do it?
>     > Stan
>     >
>     > =====================
>     > To manage your subscription to SPSSX-L, send a message to
>
>     > LISTSERV@.UGA
>
>     >  (not to SPSSX-L), with no body text except the
>     > command. To leave the list, send the command
>     > SIGNOFF SPSSX-L
>     > For a list of commands to manage subscriptions, send the command
>     > INFO REFCARD
>     >
>     > ____________
>     > University of Hertfordshire
>     > College Lane, Hatfield, Hertfordshire AL10 9AB, UK
>     > +44 (0) 170 728 4626
>     > +44 (0) 7403 18 16 12
>
>     > d.e.kornbrot@.ac
>
>     > &lt;mailto:
>
>     > d.e.kornbrot@.ac
>
>     > &gt;
>     > http://dianakornbrot.wordpress.com/
>     > http://go.herts.ac.uk/Diana_Kornbrot/
>     > skype:  kornbrotme
>     > Save our in-boxes! http://emailcharter.org
>     >  __________________
>     >
>     >
>     >
>     >
>     >
>     >
>     > =====================
>     > To manage your subscription to SPSSX-L, send a message to
>
>     > LISTSERV@.UGA
>
>     >  (not to SPSSX-L), with no body text except the
>     > command. To leave the list, send the command
>     > SIGNOFF SPSSX-L
>     > For a list of commands to manage subscriptions, send the command
>     > INFO REFCARD
>
>
>
>
>
>     -----
>     --
>     Bruce Weaver
>     [hidden email] <mailto:[hidden email]>
>     http://sites.google.com/a/lakeheadu.ca/bweaver/
>
>     "When all else fails, RTFM."
>
>     NOTE: My Hotmail account is not monitored regularly.
>     To send me an e-mail, please use the address shown above.
>
>     --
>     Sent from: http://spssx-discussion.1045642.n5.nabble.com/
>
>     =====================
>     To manage your subscription to SPSSX-L, send a message to
>     [hidden email] <mailto:[hidden email]> (not
>     to SPSSX-L), with no body text except the
>     command. To leave the list, send the command
>     SIGNOFF SPSSX-L
>     For a list of commands to manage subscriptions, send the command
>     INFO REFCARD
>
>
>
> --
> Jon K Peck
> [hidden email] <mailto:[hidden email]>
>
> ===================== To manage your subscription to SPSSX-L, send a
> message to [hidden email]
> <mailto:[hidden email]> (not to SPSSX-L), with no body text
> except the command. To leave the list, send the command SIGNOFF
> SPSSX-L For a list of commands to manage subscriptions, send the
> command INFO REFCARD

=====================
To manage your subscription to SPSSX-L, send a message to
[hidden email] (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD