private void augmentDataset3(NetcdfDataset ds) throws IOException { Group grids = ds.findGroup("/HDFEOS/GRIDS"); if (grids == null) return; for (Group g2 : grids.getGroups()) { Attribute gctp = g2.findAttribute("GCTPProjectionCode"); if (gctp == null || !gctp.getNumericValue().equals(0)) continue; Attribute nlon = g2.findAttribute("NumberOfLongitudesInGrid"); Attribute nlat = g2.findAttribute("NumberOfLatitudesInGrid"); if (nlon == null || nlon.isString()) continue; if (nlat == null || nlat.isString()) continue; ds.addCoordinateAxis(makeLonCoordAxis(ds, g2, nlon.getNumericValue().intValue(), "XDim")); ds.addCoordinateAxis(makeLatCoordAxis(ds, g2, nlat.getNumericValue().intValue(), "YDim")); for (Group g3 : g2.getGroups()) { for (Variable v : g3.getVariables()) { v.addAttribute(new Attribute(_Coordinate.Axes, "lat lon")); } } } ds.finish(); }
private void augmentDataset3(NetcdfDataset ds) throws IOException { Group grids = ds.findGroup("/HDFEOS/GRIDS"); if (grids == null) return; for (Group g2 : grids.getGroups()) { Attribute gctp = g2.findAttribute("GCTPProjectionCode"); if (gctp == null || !gctp.getNumericValue().equals(0)) continue; Attribute nlon = g2.findAttribute("NumberOfLongitudesInGrid"); Attribute nlat = g2.findAttribute("NumberOfLatitudesInGrid"); if (nlon == null || nlon.isString()) continue; if (nlat == null || nlat.isString()) continue; ds.addCoordinateAxis(makeLonCoordAxis(ds, g2, nlon.getNumericValue().intValue(), "XDim")); ds.addCoordinateAxis(makeLatCoordAxis(ds, g2, nlat.getNumericValue().intValue(), "YDim")); for (Group g3 : g2.getGroups()) { for (Variable v : g3.getVariables()) { v.addAttribute(new Attribute(_Coordinate.Axes, "lat lon")); } } } ds.finish(); }
/** * */ private void augmentDataset3(NetcdfDataset ds) throws IOException { final Group grids = ds.findGroup("/HDFEOS/GRIDS"); if (grids == null) { return; } for (final Group g2 : grids.getGroups()) { final Attribute gctp = g2.findAttribute("GCTPProjectionCode"); if (gctp == null || !gctp.getNumericValue().equals(0)) { continue; } final Attribute nlon = g2.findAttribute("NumberOfLongitudesInGrid"); final Attribute nlat = g2.findAttribute("NumberOfLatitudesInGrid"); if (nlon == null || nlon.isString()) { continue; } if (nlat == null || nlat.isString()) { continue; } ds.addCoordinateAxis(makeLonCoordAxis(ds, g2, nlon.getNumericValue().intValue(), "XDim")); ds.addCoordinateAxis(makeLatCoordAxis(ds, g2, nlat.getNumericValue().intValue(), "YDim")); for (final Group g3 : g2.getGroups()) { for (final Variable v : g3.getVariables()) { v.addAttribute(new Attribute(_Coordinate.Axes, "lat lon")); } } } ds.finish(); }
public void augmentDataset(NetcdfDataset ds, CancelTask cancelTask) throws IOException { ds.addAttribute(null, new Attribute("FeatureType", FeatureType.SWATH.toString())); Group vhrr = ds.findGroup("VHRR"); if (vhrr == null) throw new IllegalStateException(); Group loc = vhrr.findGroup("Geo-Location"); Group info = ds.findGroup("PRODUCT_METADATA/PRODUCT_DETAILS"); if (info == null) throw new IllegalStateException("AvhrrConvention must have PRODUCT_METADATA/PRODUCT_DETAILS group"); String dateS = info.findAttribute("ACQUISITION_DATE").getStringValue();
public void augmentDataset(NetcdfDataset ds, CancelTask cancelTask) throws IOException { ds.addAttribute(null, new Attribute("FeatureType", FeatureType.SWATH.toString())); Group vhrr = ds.findGroup("VHRR"); if (vhrr == null) throw new IllegalStateException(); Group loc = vhrr.findGroup("Geo-Location"); Group info = ds.findGroup("PRODUCT_METADATA/PRODUCT_DETAILS"); String dateS = info.findAttribute("ACQUISITION_DATE").getStringValue(); String timeS = info.findAttribute("ACQUISITION_TIME_IN_GMT").getStringValue();
public void augmentDataset(NetcdfDataset ds, CancelTask cancelTask) throws IOException { ds.addAttribute(null, new Attribute("FeatureType", FeatureType.SWATH.toString())); Group vhrr = ds.findGroup("VHRR"); Group loc = vhrr.findGroup("Geo-Location"); Variable lat = loc.findVariable("Latitude"); Group info = ds.findGroup("PRODUCT_METADATA/PRODUCT_DETAILS"); String dateS = info.findAttribute("ACQUISITION_DATE").getStringValue(); String timeS = info.findAttribute("ACQUISITION_TIME_IN_GMT").getStringValue();
Variable spectralCoord = null; Group group = ds.findGroup("All_Data/VIIRS-MOD-GEO-TC_All"); if (group == null) group = ds.findGroup("All_Data/VIIRS-CLD-AGG-GEO_All"); if (group == null) { group = ds.findGroup("All_Data"); if (group == null) throw new IllegalStateException(); hasPressureLevels = true;
Variable spectralCoord = null; Group group = ds.findGroup("All_Data/VIIRS-MOD-GEO-TC_All"); if (group == null) group = ds.findGroup("All_Data/VIIRS-CLD-AGG-GEO_All"); if (group == null) { group = ds.findGroup("All_Data"); if (group == null) throw new IllegalStateException(); hasPressureLevels = true;
Variable spectralCoord = null; Group group = ds.findGroup("All_Data/VIIRS-MOD-GEO-TC_All"); if (group == null) group = ds.findGroup("All_Data/VIIRS-CLD-AGG-GEO_All"); if (group == null) { group = ds.findGroup("All_Data"); hasPressureLevels = true; spectralCoord = group.findVariable(SPECTRAL_COORD_NAME);