PSN-L Email List Message

Subject: R: PSN file format
From: "Mauro Mariotti" mariottim@............
Date: Mon, 9 Jul 2001 07:34:44 +0200


Larry,
excuse me for loving ASCII format.
But i think you should consider the utility of the ascii format and don't
abandon it.
A good binary header even if will be good in the very sense of the word (as
without doubt PSN4 is)
is always limited to his structure. The power of popular software like
Excel, Access an so on (mathlab)
is that they can treat any kind of ascii files using a programmable record
separator and a field separator.
Windows too uses the INI files that are always ASCII. In the majority of the
cases using
ascii file you can add and remove a field without losing the compatibility
with higher and lower versions.
I'm planning (with my 6smowin datalogger) to build an ascii programmable
format with definitions
on where you want have any field in the header and how the field will be
setup by the event generator.
One Italian researcher of the Italian Seismic Service suggested to have all
files in ASCII with ONE line
of header (in ascii too) with formatted text or with a field separator.
This beacause all softwares used by universities are prepared to read one
single line of header with formatted
fields, always in ascii.
If i'm not in wrong, Mars Light station, removed the use of the header! The
out only with a RAW Ascii file!
So, sorry to make these considerations in the mailinglist, but i think they
will be usefuls to others that are
considering  to write some kinds of dataloggers.
You said, ascii format is not official, i'm saying: this non officiality is
its power!
Warmly
Mauro


----- Original Message -----
From: Larry Cochrane 
To: 
Sent: Monday, July 09, 2001 1:10 AM
Subject: Re: PSN file format


> Please don't use the ASCII "format". It's not an official format. It was
> something I added to WinQuake so people could export event files in a
format
> that could easily be used by analytical programs like MATLAB.  It is NOT
> meant for a datalogger output format. New dataloggers should use the PSN
> Type 4 binary format.
>
> -Larry Cochrane
>
>
> ----- Original Message -----
> From: "Mauro Mariotti" 
> To: 
> Sent: Saturday, July 07, 2001 11:20 PM
> Subject: R: PSN file format
>
>
> > Maybe you can use the ASCII format.
> > Anyway VB uses very well binary format for read/write file structures
like
> > used in Winquake.
> > You can build a read/write routine entirely in VB without problems and
> > without using DLLs.
> > If you want use the binary format of WQ (i.e. PSN4 ) you can download
the
> > record format and
> > after analyzed it you can easily build a basci routine for that format.
> > Is'nt it Larry?
> >
> > Mauro
> >
> >
> > ----- Original Message -----
> > From: Travis Farmer 
> > To: 
> > Sent: Sunday, July 08, 2001 5:33 AM
> > Subject: PSN file format
> >
> >
> > > Is there a simple way to read/write psn files using VB6?
> > > I'm trying to make a custom datalogger with VB and would like to have
> PSN
> > > compatible files.
> > >
> > > My guess is, I would need a component DLL for this.
> > > I have somewhat looked over the psn format source but was pretty much
> > > dumbfounded as I do not have much experience with C (or is it C++?) so
I
> > > would not be able to write the DLL myself.
> > >
> > > Any ideas? Tips?
> > >
> > > Thanks,
> > > ~Travis
> > >
> > >
> > > __________________________________________________________
> > >
> > > Public Seismic Network Mailing List (PSN-L)
> > >
> > > To leave this list email PSN-L-REQUEST@.............. with
> > > the body of the message (first line only): unsubscribe
> > > See http://www.seismicnet.com/maillist.html for more information.
> > >
> >
> > __________________________________________________________
> >
> > Public Seismic Network Mailing List (PSN-L)
> >
> > To leave this list email PSN-L-REQUEST@.............. with
> > the body of the message (first line only): unsubscribe
> > See http://www.seismicnet.com/maillist.html for more information.
>
> __________________________________________________________
>
> Public Seismic Network Mailing List (PSN-L)
>
> To leave this list email PSN-L-REQUEST@.............. with
> the body of the message (first line only): unsubscribe
> See http://www.seismicnet.com/maillist.html for more information.
>

__________________________________________________________

Public Seismic Network Mailing List (PSN-L)


[ Top ] [ Back ] [ Home Page ]

Larry Cochrane <cochrane@..............>