@@ -0,0 +1,1611 @@
+/*%0A * Copyright (c) 2020 University Corporation for Atmospheric Research/Unidata%0A * See LICENSE for license information.%0A */%0Apackage ucar.nc2.dataset;%0A%0Aimport static com.google.common.truth.Truth.assertThat;%0Aimport java.io.IOException;%0Aimport org.junit.Test;%0Aimport org.junit.experimental.categories.Category;%0Aimport ucar.nc2.constants.AxisType;%0Aimport ucar.unidata.util.test.TestDir;%0Aimport ucar.unidata.util.test.category.NeedsCdmUnitTest;%0A%0A/**%0A * Some GOES-16/17 products are %22CF-ish%22, in that they don't quite use projection variable attributes that match what CF%0A * expects. Given the widespread use of these files, it's best we try to identify them and %22do the right thing%22, and it%0A * no longer appears that products are being produced without duplicating the attributes, so it's for historical data%0A * only. This tests our CFConventions class to make sure this case is handled.%0A */%0A@Category(NeedsCdmUnitTest.class)%0Apublic class TestGoesCFish %7B%0A%0A  private static String testFile = TestDir.cdmUnitTestDir + %22/conventions/cf/cf-ish/OR_EFD-060.nc%22;%0A%0A  @Test%0A  public void testBadProjVarAttrsOld() throws IOException %7B%0A    try (NetcdfDataset ncd = NetcdfDataset.openDataset(testFile)) %7B%0A      checkAxis(ncd);%0A    %7D%0A  %7D%0A%0A  @Test%0A  public void testBadProjVarAttrsNew() throws IOException %7B%0A    try (NetcdfDataset ncd = NetcdfDatasets.openDataset(testFile)) %7B%0A      checkAxis(ncd);%0A    %7D%0A  %7D%0A%0A  private void checkAxis(NetcdfDataset ncd) %7B%0A    CoordinateAxis latAxis = ncd.findCoordinateAxis(AxisType.GeoX);%0A    assertThat(latAxis != null);%0A    assertThat(latAxis.getAxisType()).isEqualTo(AxisType.GeoX);%0A  %7D%0A%0A%7D%0A

Add test to fail on CF-ish GOES16 Product