|
From: Andrew J. <aja...@sw...> - 2012-10-18 23:01:44
|
Hi Vigneswaran, The PSRDADA .dada format is essentially just a 4096 byte ascii header, which you have shown below, followed by packed binary format that your instrument produced. So if you were to skip past the first 4KB, you should then have access to the raw data. PSRDADA does not make any assumptions about the format of this binary data. dspsr includes an unpacker that knows how to unpack many instrument data formats (including PuMa2). If you know how the binary data is packed then you should be able to write the code for your simulator that can correctly unpack the data into the format that is convenient for you. f you do not, then you might need to look at the dspsr source code for the PuMa2 unpacker to determine how to interpret the binary data. Cheers, Andrew On 19/10/2012, at 4:16 AM, Vigneswaran Karunanithi wrote: Hi, i have a .dada file and following is the contents of the header file HEADER DADA HDR_VERSION1.0 HDR_SIZE 4096 DADA_VERSION 1.0 PIC_VERSION1.0 OBS_ID 11206003 PRIMARY unset SECONDARY unset FILE_NAME /data2/data/06Oct2012_LEAP FILE_SIZE 800000000 FILE_NUMBER 0 UTC_START 2012-10-06-16:53:40 MJD_START 56206.7039351851851851852161050249 OBS_OFFSET 0 OBS_OVERLAP 0 SOURCE B1855+09RA 18:57:36.39161 DEC+09:43:17.2322 TELESCOPE WSRT INSTRUMENT PuMa2 FREQ 1406 BW 20 TSAMP 0.025 NBIT 8 NDIM 1 NPOL 2 IN_USE 1 BYTES_PER_SECOND 80000000 I want to read the raw data without using dspsr as i would like to read the raw data into my simulator. can someone help with the format of the .dada file. Regards -- ____________________ Vigneswaran Karunanithi, EEMCS TU Delft, Zuid-Holland, Netherlands, Ph: +310623584766 ------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_sfd2d_oct_______________________________________________ Psrdada-developers mailing list Psr...@li... https://lists.sourceforge.net/lists/listinfo/psrdada-developers -- Andrew Jameson Systems & Software Engineer Centre for Astrophysics & Supercomputing Swinburne University of Technology +63 1 9214 5612 |