eccodes/definitions/grib2/template.3.120.def

45 lines
1.5 KiB
Modula-2
Raw Normal View History

2020-01-28 14:32:34 +00:00
# (C) Copyright 2005- ECMWF.
2013-03-25 12:04:10 +00:00
# TEMPLATE 3.120, Azimuth-range projection
# Nb - number of data bins along radials (A data bin is a data point representing the volume centred on it)
unsigned[4] numberOfDataBinsAlongRadials ;
alias Nb = numberOfDataBinsAlongRadials;
# Nr - number of radials
unsigned[4] numberOfRadials ;
alias Nr = numberOfRadials;
2013-06-24 16:39:33 +00:00
# La1 - latitude of centre point
signed[4] latitudeOfCentrePoint ;
alias La1 = latitudeOfCentrePoint;
meta geography.latitudeOfCentrePointInDegrees
scale(latitudeOfCentrePoint,one,grib2divider,truncateDegrees) : dump;
alias La1InDegrees=latitudeOfCentrePointInDegrees;
2013-03-25 12:04:10 +00:00
2013-06-24 16:39:33 +00:00
# Lo1 - longitude of centre point
unsigned[4] longitudeOfCentrePoint ;
alias Lo1 = longitudeOfCentrePoint;
meta geography.longitudeOfCentrePointInDegrees
scale(longitudeOfCentrePoint,one,grib2divider,truncateDegrees) : dump;
alias Lo1InDegrees=longitudeOfCentrePointInDegrees;
2013-03-25 12:04:10 +00:00
# Dx - spacing of bins along radials
unsigned[4] spacingOfBinsAlongRadials ;
alias Dx = spacingOfBinsAlongRadials;
# Dstart - offset from origin to inner bound
unsigned[4] offsetFromOriginToInnerBound ;
alias Dstart = offsetFromOriginToInnerBound;
include "grib2/template.3.scanning_mode.def";
2013-03-25 12:04:10 +00:00
# Octets 40-(39+4Nr) : For each of Nr radials:
radials list(numberOfRadials){
# Azi - starting azimuth, degrees x 10 (degrees as north)
signed[2] startingAzimuth;
alias Azi = startingAzimuth;
# Adelta - azimuthal width, degrees x 100 (+ clockwise, - counterclockwise)
signed[2] azimuthalWidth;
alias Adelta = azimuthalWidth;
}