initial blanks in some gravity fields headers prevent loading them
Some gravity fields have extra blanks at the front of headers lines in ICGEM format. One example is IGGT_R1C model available from ICGEM catalog http://icgem.gfz-potsdam.de/tom_longtime. The header of this file reads:
begin_of_head ======================================================================================
modelname IGGT_R1C
product_type gravity_field
earth_gravity_constant 0.3986004415E+15
radius 0.6378136460E+07
max_degree 240
norm fully_normalized
tide_system tide_free
errors formal
key L M C S sigma C sigma S
end_of_head ========================================================================================
The single blank before the expected keywords modelname
, product_type
... Prevents proper parsing.
The resulting error is serious as since the max degree has not been parsed, the arrays holding the
coefficients have not been built and a NullPointerException is raised.