18 static ossimTrace traceDebug(
"ImageOptionsFileDescriptor:debug");
30 os<<
"ascii_flag:"<<data.
_ascii_flag.c_str()<<std::endl;
32 os<<
"format_doc:"<<data.
_format_doc.c_str()<<std::endl;
34 os<<
"format_rev:"<<data.
_format_rev.c_str()<<std::endl;
36 os<<
"design_rev:"<<data.
_design_rev.c_str()<<std::endl;
38 os<<
"software_id:"<<data.
_software_id.c_str()<<std::endl;
40 os<<
"file_num:"<<data.
_file_num<<std::endl;
42 os<<
"file_name:"<<data.
_file_name.c_str()<<std::endl;
44 os<<
"rec_seq:"<<data.
_rec_seq.c_str()<<std::endl;
46 os<<
"seq_loc:"<<data.
_seq_loc<<std::endl;
48 os<<
"seq_len:"<<data.
_seq_len<<std::endl;
50 os<<
"rec_code:"<<data.
_rec_code.c_str()<<std::endl;
52 os<<
"code_loc:"<<data.
_code_loc<<std::endl;
54 os<<
"code_len:"<<data.
_code_len<<std::endl;
56 os<<
"rec_len:"<<data.
_rec_len.c_str()<<std::endl;
58 os<<
"rlen_loc:"<<data.
_rlen_loc<<std::endl;
60 os<<
"rlen_len:"<<data.
_rlen_len<<std::endl;
66 os<<
"nbit:"<<data.
_nbit<<std::endl;
68 os<<
"nsamp:"<<data.
_nsamp<<std::endl;
70 os<<
"nbyte:"<<data.
_nbyte<<std::endl;
72 os<<
"justify:"<<data.
_justify.c_str()<<std::endl;
74 os<<
"nchn:"<<data.
_nchn<<std::endl;
76 os<<
"nlin:"<<data.
_nlin<<std::endl;
78 os<<
"nleft:"<<data.
_nleft<<std::endl;
80 os<<
"ngrp:"<<data.
_ngrp<<std::endl;
82 os<<
"nright:"<<data.
_nright<<std::endl;
84 os<<
"ntop:"<<data.
_ntop<<std::endl;
86 os<<
"nbott:"<<data.
_nbott<<std::endl;
88 os<<
"intleav:"<<data.
_intleav.c_str()<<std::endl;
90 os<<
"nrec_lin:"<<data.
_nrec_lin<<std::endl;
92 os<<
"nrec_chn:"<<data.
_nrec_chn<<std::endl;
94 os<<
"n_prefix:"<<data.
_n_prefix<<std::endl;
96 os<<
"n_sar:"<<data.
_n_sar<<std::endl;
98 os<<
"n_suffix:"<<data.
_n_suffix<<std::endl;
100 os<<
"lin_loc:"<<data.
_lin_loc.c_str()<<std::endl;
102 os<<
"chn_loc:"<<data.
_chn_loc.c_str()<<std::endl;
104 os<<
"tim_loc:"<<data.
_tim_loc.c_str()<<std::endl;
106 os<<
"left_loc:"<<data.
_left_loc.c_str()<<std::endl;
108 os<<
"right_loc:"<<data.
_right_loc.c_str()<<std::endl;
110 os<<
"pad_ind:"<<data.
_pad_ind.c_str()<<std::endl;
112 os<<
"qual_loc:"<<data.
_qual_loc.c_str()<<std::endl;
114 os<<
"cali_loc:"<<data.
_cali_loc.c_str()<<std::endl;
116 os<<
"gain_loc:"<<data.
_gain_loc.c_str()<<std::endl;
118 os<<
"bias_loc:"<<data.
_bias_loc.c_str()<<std::endl;
120 os<<
"type_id:"<<data.
_type_id.c_str()<<std::endl;
122 os<<
"type_code:"<<data.
_type_code.c_str()<<std::endl;
128 os<<
"pix_rng:"<<data.
_pix_rng<<std::endl;
204 for (
int i=0;i<4;i++)
223 data.
_nbit = atoi(buf);
239 data.
_nchn = atoi(buf);
246 int result = strtol(buf, &p, 10);
247 if ( *p != 0 || p == buf)
251 ossimNotify(
ossimNotifyLevel_DEBUG) <<
"WARNING: strtol() try to convert an empty tab of characters. It may be possible in case of SCN and SCW format" << buf <<
"!" << std::endl;
267 data.
_ngrp = atoi(buf);
275 data.
_ntop = atoi(buf);
int _ntop
Top border lines
int _pix_rng
Maximum data range of pixel
std::string _rec_len
Record length/location flag
std::string _pad_ind
Pad pixel indicator
int _nrec_lin
Number of physical records per line
int _code_loc
Record code location
int _seq_loc
Sequence number location
std::string _file_name
File name
std::string _tim_loc
Time locator
ImageOptionsFileDescriptor & operator=(const ImageOptionsFileDescriptor &rhs)
Copy operator.
int _n_sar
Number of bytes of SAR data (or pixel data) per record
std::string _left_loc
Left fill locator
std::string _type_id
Data type identifier
std::string _intleav
Interleave indicator
int _rlen_len
Record length length
int _nbyte
Bytes per data group
int _file_num
File number
int _n_dataset
Number of SAR data records
int _nbit
Number of bits per sample
std::string _justify
Sample justification and order
int _n_suffix
Number of bytes of suffix data per record
std::string _gain_loc
Gain value locator
int _rlen_loc
Record length location
std::string _type_code
Data type code.
This class is the base class of all the record classes.
std::string _design_rev
File design revision
~ImageOptionsFileDescriptor()
Destructor.
std::string _rec_code
Record code/location flag
std::ostream & operator<<(std::ostream &os, const AlosPalsarData &data)
std::string _rec_seq
Record sequence/location flag
std::string _ascii_flag
ASCII flag.
int _ngrp
Groups per line per channel
std::string _qual_loc
Quality code locator
std::string _right_loc
Right fill locator
ImageOptionsFileDescriptor()
Constructor.
std::istream & operator>>(std::istream &is, AlosPalsarData &data)
std::string _format_doc
Format control document
int _code_len
Record code length
int _right_fill
Number of right fill bits
This class is able to read an Image options file descriptor record.
std::string _cali_loc
Calibration info locator
std::basic_istream< char > istream
Base class for char input streams.
int _l_dataset
SAR data record length
std::string _software_id
Software identifier
int _nlin
Lines per data set
int _nchn
Number of SAR channels
int _nleft
Left border pixels per line
int _n_prefix
Number of bytes of prefix data per record
std::string _chn_loc
Channel number locator
int _nrec_chn
Number of physical records per multi-channel line in this file
std::string _bias_loc
Bias value locator
int _left_fill
Number of left fill bits
std::string _lin_loc
Line number locator
int _nsamp
Samples per data group
std::string _format_rev
Format document revision
int _nbott
Bottom border lines
OSSIMDLLEXPORT std::ostream & ossimNotify(ossimNotifyLevel level=ossimNotifyLevel_WARN)
std::basic_ostream< char > ostream
Base class for char output streams.
int _seq_len
Sequence number length
int _nright
Right border pixels per line