public final class SpiceCommon extends Object
Modifier and Type | Field and Description |
---|---|
static String |
BINARY_FORMAT
Java binary format.
|
static int |
BYTES_DOUBLE
Number of bytes in a double precision number.
|
static int |
CTRSIZ
Size of counter arrays.
|
static String |
DAF
String literal for DAF architecture.
|
static String |
EMPTY
Empty string for comparisons.
|
static int |
FILE_TABLE_SIZE
Size of the file tables.
|
static int |
MAX_CHAR_RECORD
Max number of characters in a record.
|
static int |
RECORD_LENGTH
Number of bytes in a record.
|
static String |
SPK
String literal for SPK file type.
|
static String |
UNKNOWN
String to define an unknown architecture or file type.
|
Modifier and Type | Method and Description |
---|---|
static boolean |
ftpCheck(String ftp)
Check a character string that may contain the FTP validation string for FTP based errors.
|
static String[] |
idword2architype(String idword)
Extract the architecture and type of a SPICE binary kernel file from a file ID word.
|
static int |
indexOfNoChar(String s,
char ch)
Find the first occurrence in a string of a character NOT being the char on input.
|
static void |
unpackSummary(double[] sum,
int nd,
int ni,
double[] dc,
int[] ic)
Unpack an array summary into its double precision and integer components.
|
public static final int CTRSIZ
public static final int FILE_TABLE_SIZE
public static final String BINARY_FORMAT
public static final int RECORD_LENGTH
public static final int MAX_CHAR_RECORD
public static final String UNKNOWN
public static final String EMPTY
public static final String DAF
public static final String SPK
public static final int BYTES_DOUBLE
public static String[] idword2architype(String idword) throws PatriusException
Based on IDW2AT routine from the SPICE library
idword
- the ID word from a SPICE binary kernel filePatriusException
- if the architecture is not DAF TODO change if more architectures are allowedpublic static boolean ftpCheck(String ftp)
Based on the ZZFTPCHK routine from the SPICE library
ftp
- String that may contain the FTP validation stringpublic static int indexOfNoChar(String s, char ch)
Based on the NCPOS routine in the SPICE library
s
- Any character stringch
- a characterpublic static void unpackSummary(double[] sum, int nd, int ni, double[] dc, int[] ic)
Based on the DAFUS routine of the SPICE library
sum
- Array summarynd
- Number of double precision componentsni
- Number of integer componentsdc
- (out) Double precision componentsic
- (out) Integer componentsCopyright © 2023 CNES. All rights reserved.