domain sticks when using setProjection(layer)
Posted: Fri Aug 11, 2017 6:56 pm
Hi,
Bob and I recently looked at an issue where I was loading data from the "M" descriptor of GOES-16 and use the projection of the layer or data source. In that case, the second sector would map into the domain of the first sector and display in the wrong place. This only happened in scripting.
I thought this was confined to use the combined M1 and M2 sectors in the M descriptor. However, it is not. There is an eclipse prep today, and this seems to happen with moving sectors within the same data source. I have an attached example script. If I build the window every time the sector will be in the correct projection, however, if I try to reuse the window, later sectors plot within the first domain.
I tried one other test. I built the window first, set Auto-Set Projection to "on" and ran again without setting the projection in the script loop. This fails to plot the sectors in the correct locations.
In the attached script, I selected two images that should plot roughly over the west coast and then in the midwest.
Joleen
Bob and I recently looked at an issue where I was loading data from the "M" descriptor of GOES-16 and use the projection of the layer or data source. In that case, the second sector would map into the domain of the first sector and display in the wrong place. This only happened in scripting.
I thought this was confined to use the combined M1 and M2 sectors in the M descriptor. However, it is not. There is an eclipse prep today, and this seems to happen with moving sectors within the same data source. I have an attached example script. If I build the window every time the sector will be in the correct projection, however, if I try to reuse the window, later sectors plot within the first domain.
I tried one other test. I built the window first, set Auto-Set Projection to "on" and ran again without setting the projection in the script loop. This fails to plot the sectors in the correct locations.
In the attached script, I selected two images that should plot roughly over the west coast and then in the midwest.
Joleen