Skip to content

Instantly share code, notes, and snippets.

View lesserwhirls's full-sized avatar

Sean Arms lesserwhirls

View GitHub Profile
@lesserwhirls
lesserwhirls / Find Datasets in Catalog.ipynb
Created April 26, 2017 18:00
Get spatial and temporal bounds from datasets listed in a catalog using NCSS
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@lesserwhirls
lesserwhirls / Find the Index OPeNDAP style.ipynb
Created April 25, 2017 22:14
Find the Index OPeNDAP style
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@lesserwhirls
lesserwhirls / AggGrib2.java
Created January 5, 2017 22:29
netCDF-Java code to aggregate grib2 files into a "best" collection
import org.jdom2.Element;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.io.IOException;
import thredds.featurecollection.FeatureCollectionConfig;
import thredds.featurecollection.FeatureCollectionType;
import ucar.nc2.dataset.NetcdfDataset;
import ucar.nc2.grib.collection.GribCdmIndex;
@lesserwhirls
lesserwhirls / DatesFromCatalog.java
Created February 10, 2015 23:41
Read a THREDDS catalog and print dates from the first dataset found
import java.io.IOException;
import java.util.List;
import thredds.catalog.CrawlableCatalog;
import thredds.crawlabledataset.CrawlableDataset;
import ucar.nc2.dataset.CoordinateAxis1DTime;
import ucar.nc2.dataset.CoordinateSystem;
import ucar.nc2.dataset.NetcdfDataset;
import ucar.nc2.dt.grid.GridCoordSys;
import ucar.nc2.time.CalendarDate;