[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]Author Index][Subject Index]

Maximum size for HISTORY descriptor of BDF files in MIDAS ?



Hello.

I would like to know if there is a limitation in the size of the HISTORY
descriptor in BDF files or a limitation for the size of the header of
the BDF files (descriptors and so on). 

 What makes me ask this question is that someone is trying (MIDAS 96NOV,
AXP/VMS) to build two-dimensional images from individual one-dimensional
spectra unsing command INSERT/IMAG (procedure reconstitou.prg is given
at the end of this message). 
When one reaches a certain number of lines (48 the first time), there is
a crash :

Warning: data is VAX Float instead of Gfloat...
%SYSTEM-F-ACCVIO, access violation, reason mask=00, virtual
address=7D217D80, PC
=00078D68, PS=0000001B
%TRACE-F-TRACEBACK, symbolic stack dump follows
 Image Name   Module Name     Routine Name    Line Number  rel PC    
abs PC 
 GENXX1                                          0 00068D68   0005410C
 GENXX1                                          0 00042858   00052858
 GENXX1                                          0 0004C4D8   0005C4D8
 GENXX1                                          0 0004124C   0005124C
 GENXX1                                          0 00041EE0   00051EE0
 GENXX1                                          0 00024178   00034178
 GENXX1                                          0 00020114  
00030114          

When one reads the descriptor of the created 2D BDF image, one gets :
                      
Midas 010> read/descr rec_wc_arp81_1

frame: rec_wc_arp81_1  (data = R4)
NAXIS:                    2
NPIX:                   653        80
START:                4666.0000000000         51.000000000000
STEP:                 1.5000000000000         1.0000000000000
IDENT:           image built from polygon
CUNIT:           none given
LHCUTS:            0.0000000E+00  0.0000000E+00  -49.93337      
3933.225
Midas 011> read/descr rec_wc_arp81_1 history

frame: rec_wc_arp81_1  (data = R4)
HISTORY:
CREATE/IMAGE rec_WC_ARP81_1 2,0653,0080
4.666000000000000E+03,0051,1.50000000000
0000E+00,1 poly +
INSERT/IMAGE WC_ARP81_1_051 rec_WC_ARP81_1 @1,0051
INSERT/IMAGE WC_ARP81_1_052 rec_WC_ARP81_1 @1,0052
INSERT/IMAGE WC_ARP81_1_053 rec_WC_ARP81_1 @1,0053
INSERT/IMAGE WC_ARP81_1_054 rec_WC_ARP81_1 @1,0054
INSERT/IMAGE WC_ARP81_1_055 rec_WC_ARP81_1 @1,0055
INSERT/IMAGE WC_ARP81_1_056 rec_WC_ARP81_1 @1,0056
INSERT/IMAGE WC_ARP81_1_057 rec_WC_ARP81_1 @1,0057
INSERT/IMAGE WC_ARP81_1_058 rec_WC_ARP81_1 @1,0058
INSERT/IMAGE WC_ARP81_1_059 rec_WC_ARP81_1 @1,0059
INSERT/IMAGE WC_ARP81_1_060 rec_WC_ARP81_1 @1,0060
INSERT/IMAGE WC_ARP81_1_061 rec_WC_ARP81_1 @1,0061
INSERT/IMAGE WC_ARP81_1_062 rec_WC_ARP81_1 @1,0062
INSERT/IMAGE WC_ARP81_1_063 rec_WC_ARP81_1 @1,0063
INSERT/IMAGE WC_ARP81_1_064 rec_WC_ARP81_1 @1,0064
INSERT/IMAGE WC_ARP81_1_065 rec_WC_ARP81_1 @1,0065
INSERT/IMAGE WC_ARP81_1_066 rec_WC_ARP81_1 @1,0066
INSERT/IMAGE WC_ARP81_1_067 rec_WC_ARP81_1 @1,0067
INSERT/IMAGE WC_ARP81_1_068 rec_WC_ARP81_1 @1,0068
INSERT/IMAGE WC_ARP81_1_069 rec_WC_ARP81_1 @1,0069
INSERT/IMAGE WC_ARP81_1_070 rec_WC_ARP81_1 @1,0070
INSERT/IMAGE WC_ARP81_1_071 rec_WC_ARP81_1 @1,0071
INSERT/IMAGE WC_ARP81_1_072 rec_WC_ARP81_1 @1,0072
INSERT/IMAGE WC_ARP81_1_073 rec_WC_ARP81_1 @1,0073
INSE1_1_096 rec_WC_ARP81_1 @1,0096                              P
ARP81_1_097 rec_WC_ARP81_1 @1,0097
P
   
       P
   
       P
   
       P
   
       P
   
       P
   
       P
   
       P
   
       P
   
       P
   
       P
   
       P
   
       P
   
       P
   
       P
   
       P
   
       P
   
       P
   
       P
   
       P
   
as if there were some kind of overflow somewhere.

 If one tries to delete descriptor HISTORY after a certain number of
loops (e.g. 40) to avoid this problem, the same thing occurs again but
after only 24 iterations. 
If one dumps the BDF file, one still sees old "INSERT/IMA..." lines of
descriptor HISTORY which should have been overwritten by command
DELETE/HISTORY.
 
 So :
- is there a limitation in the size of the HISTORY descriptor for BDF
files ? (I have not found any information about that in the
documentation) 
- is there a limitation in the size of the header of BDF files ?
- isn't there a bug in the handling of the HISTORY descriptor which
results in the filling of HISTORY not from the beginning of the reserved
part of the header ?

 Thank you for any information, best regards,
                            Bernard Debray
                            Observatoire de Besancon

**********************************************************************
**********************************************************************
!  Procedure reconstitou.prg                       
!                                                        30-09-1999
!
! inserts 1-D spectra in an empty file in order to rebuild a 2D file
!
!------------------------------------------------------------------
!
set/format  E23.15
write/key       i/i/1/1         0
write/key       k/i/1/1         0
write/key       l/i/1/1         0
write/key       n/i/1/1         0
write/key       ref/c/1/20
write/key       in/c/1/30
write/key       cara/c/1/4
!
inquire/key ref "nom pilote des spectres a inserer: "
write/out
inquire/key in "Nom du fichier image 2-dim a constituer : "
write/out
inquire/key k "Premiere ligne a inserer : "
write/out
inquire/key l "Derniere ligne a inserer : "
write/out
!
cara = "{k}"
read/descr {ref}_{cara(2:4)}
n = {l} - {k} + 1
!
inquire/key     npix1/i/1/1     "Nbre de pixels suivant lambda : "
inquire/key     start1/d/1/1    "Lambda depart : "
inquire/key     step1/d/1/1     "lambda step : "
!
create/ima {in} 2,{npix1},{n} {start1},{k},{step1},1
!
read/descr {in}
do i = {k} {l}
write/out "---------- {i}----------"
cara = "{i}"
insert/ima  {ref}_{cara(2:4)}    {in}   @1,{i}
enddo
!
write/out "-----------------------------------------"
write/key titre/c/1/70 " " all
inquire/key titre "Donner l'identificateur (entre doubles cotes) : "
write/descr {in} ident/c/1/70 {titre}
!
read/descr {in} *
set/format
!
dele/descr {in} history
write/descr {in} history/c/1/80 -
"Reconstitution spectre 2-dim par la procedure reconstitou.prg du
30-09-99"
!
read/descr {in} *
!
**********************************************************************
**********************************************************************