-
Notifications
You must be signed in to change notification settings - Fork 0
Description
I was just testing a real collection, SNEX23_CSU_GPR in dry-run mode. In the ini file, I've defined a path for premet and spatial files, and within the spatial file dir are 3 .spo files each defining 5 points—four plus the first coord pair repeated to close the gpoly.
I checked the ummg files output and they contained the following for the gpoly:
"GPolygons": [
{
"Boundary": {
"Points": [
{
"Longitude": -147.59,
"Latitude": 65.1448
},
{
"Longitude": -147.51,
"Latitude": 65.1448
},
{
"Longitude": -147.5099,
"Latitude": 65.1448
},
{
"Longitude": -147.5098,
"Latitude": 65.1448
},
{
"Longitude": -147.5098,
"Latitude": 65.1449
},
{
"Longitude": -147.5098,
"Latitude": 65.145
},
{
"Longitude": -147.5098,
"Latitude": 65.152
},
{
"Longitude": -147.5098,
"Latitude": 65.1521
},
{
"Longitude": -147.5098,
"Latitude": 65.1522
},
{
"Longitude": -147.5099,
"Latitude": 65.1522
},
{
"Longitude": -147.51,
"Latitude": 65.1522
},
{
"Longitude": -147.59,
"Latitude": 65.1522
},
{
"Longitude": -147.5901,
"Latitude": 65.1522
},
{
"Longitude": -147.5902,
"Latitude": 65.1522
},
{
"Longitude": -147.5902,
"Latitude": 65.1521
},
{
"Longitude": -147.5902,
"Latitude": 65.152
},
{
"Longitude": -147.5902,
"Latitude": 65.145
},
{
"Longitude": -147.5902,
"Latitude": 65.1449
},
{
"Longitude": -147.5902,
"Latitude": 65.1448
},
{
"Longitude": -147.5901,
"Latitude": 65.1448
},
{
"Longitude": -147.59,
"Latitude": 65.1448
}
I edited the .ini file to add
[Spatial]
spatial_polygon_enabled = false
This is a simple and effective workaround that now gets metgenc use just the spo file contents:
"GPolygons": [
{
"Boundary": {
"Points": [
{
"Longitude": -147.59,
"Latitude": 65.152
},
{
"Longitude": -147.59,
"Latitude": 65.145
},
{
"Longitude": -147.51,
"Latitude": 65.145
},
{
"Longitude": -147.51,
"Latitude": 65.152
},
{
"Longitude": -147.59,
"Latitude": 65.152
}
I fear I did a poor job of confirming issue #255. I'm really sorry!!😞 Actually after a few hours of letting my head clear I realized that igbth4 rely on .spatial, not. spo files…so I did test that specific issue reasonably well. It's still a bummer that this only just cropped up (but at least I feel a little better about myself! 😏).