blaylockbk / pyBKB_v3

Python scripts for atmospheric science written during grad school at the University of Utah (Python 3)
http://home.chpc.utah.edu/~u0553130/Brian_Blaylock/home.html
MIT License
103 stars 32 forks source link

GOES-16 Longitude #1

Closed mnichol3 closed 5 years ago

mnichol3 commented 5 years ago

Hey Brian,

I'm writing code that deals with GOES-16 ABI & GLM imagery as well as aircraft observations as part of my senior research. I saw in your mapping_GOES16_TrueColor.py code, when getting GOES-16's Longitude of Projection Origin from the netCDF file, it will return -75.0. I originally got the same result in my own original code with the netCDFs I was processing. However, GOES-16's longitude is -75.2. I found that this small difference in longitude resulted in a considerable amount of error when transforming the ABI coordinates to a Mercator projection and plotting aircraft-observed hurricane low pressure centers on top of the ABI images, more error than could have been attributed to just parallax. My advisor & I eventually figured out the problem and I hardcoded GOES-16's longitude at -75.2, which cleared things up. Just wanted to pass this along in-case you run into some discrepancies when working with GOES-16 imagery, especially on the mesoscale.

blaylockbk commented 5 years ago

I haven't run into issues like this yet, but this is good to know. Thanks.

blaylockbk commented 5 years ago

@mnichol3, I can confirmed the issue with the satellite longitude location. The left is GOES16 at -75.0 degrees, the right is GOES16 at -75.2 degrees. It is obvious that the drawn coastlines are wrong for the -75 degree location. The location metadata in the file is wrong! image

This document shows that GOES-16 location is -75.2. (It looks like GOES-13 used to be at -75.0, which might be the source of the error). https://www.goes-r.gov/users/transitionToOperations16.html

The question is, how do we get the metadata fixed in the NetCDF files available on Amazon??? image

mnichol3 commented 5 years ago

I downloaded another GOES-16 netCDF from NCDC to see if the longitude metadata error was unique to the Amazon files; the NCDC file had it too.

screenshot from 2019-02-28 14-33-35

Not exactly sure how to go about addressing this issue, but I know some folks at NESDIS so I'll talk to them and see if they've heard anything about it!

blaylockbk commented 5 years ago

That makes sense, since Amazon receives the files directly from them.

I contacted the people I know, too. Maybe with several people hearing the issue it will be fixed soon.

I wonder if GOES-17 has a similar issue?

blaylockbk commented 5 years ago

The answer I got from Tim Schmit (Twitter @GOESguy) is this:

There are 2 longitudes, one is the location of the satellite, which is approximately 75.2W, the other, as you have noted above, that is the longitude of the remapped ABI data and that is in fact to 75.0W. Since you have remapped data, I think the 75.0W is the right value.

From that statement, I suspect the file's metadata should be trusted because the ABI data has been remapped to a common grid. However, that still doesn't explain why the coastlines I'm plotting appear misplaced. Perhaps there are issues when reprojection the image.

mnichol3 commented 5 years ago

I talked to Scott Rudlosky from NESDIS and he pretty much reiterated what Tim said, adding that Tim really knows his stuff. I agree that the metadata must be correct, but I'm still puzzled as to why the ABI imagery seems to contain more error than can be attributed to just parallax. I'll dig around and play around with reprojection functions some more and let you know if I come up with anything

blaylockbk commented 5 years ago

It appears the issue depends on which map plotting tool you use. With Basemap, the coastlines are off, but with Cartopy, the coastlines are correct.

With Cartopy: image

With Basemap: image