mirror of https://github.com/ecmwf/eccodes.git
GRIB-659: Provide key to get angular precision
This commit is contained in:
parent
5a295138bd
commit
1a0f090b92
|
@ -29,9 +29,6 @@ meta section0Pointer section_pointer(offsetSection0,section0Length,0);
|
|||
# of the message length and of the section4 lenth, so instead of
|
||||
# section_length[3] totalLength ;
|
||||
# we get:
|
||||
|
||||
|
||||
|
||||
g1_message_length[3] totalLength(section4Length) ;
|
||||
position startOfHeaders;
|
||||
unsigned[1] editionNumber = 1 : edition_specific,dump;
|
||||
|
@ -48,6 +45,7 @@ meta GDSPresent gds_is_present(gridDescriptionSectionPresent,gridDefinition,bitm
|
|||
flagbit bitmapPresent(section1Flags,6) :dump;
|
||||
alias bitmapSectionPresent=bitmapPresent;
|
||||
alias geography.bitmapPresent=bitmapPresent;
|
||||
transient angularPrecision=1000; # milli degrees
|
||||
|
||||
if(gridDescriptionSectionPresent){
|
||||
template section_2 "grib1/section.2.def" ;
|
||||
|
|
|
@ -12,6 +12,7 @@ constant million = 1000000 : hidden;
|
|||
constant grib2divider = 1000000;
|
||||
alias extraDimensionPresent=zero;
|
||||
alias is_tigge = zero;
|
||||
transient angularPrecision=grib2divider; # micro degrees
|
||||
|
||||
meta gts_header gts_header() : no_copy,hidden,read_only;
|
||||
meta gts_TTAAii gts_header(20,6) : no_copy,hidden,read_only;
|
||||
|
|
|
@ -37,8 +37,10 @@ unsigned[4] subdivisionsOfBasicAngle = missing() : can_be_missing;
|
|||
transient angleDivisor = 1000000;
|
||||
when (missing(subdivisionsOfBasicAngle) || subdivisionsOfBasicAngle == 0) {
|
||||
set angleDivisor = 1000000;
|
||||
set angularPrecision = 1000000;
|
||||
} else {
|
||||
set angleDivisor = subdivisionsOfBasicAngle;
|
||||
set angularPrecision = subdivisionsOfBasicAngle;
|
||||
}
|
||||
|
||||
# La1 - latitude of first grid point
|
||||
|
|
12069
src/grib_hash_keys.c
12069
src/grib_hash_keys.c
File diff suppressed because it is too large
Load Diff
3502
tests/keys
3502
tests/keys
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue