@Component public final class NcssRequestUtils extends Object implements org.springframework.context.ApplicationContextAware
| Modifier and Type | Method and Description |
|---|---|
static GridAsPointDataset |
buildGridAsPointDataset(GridDataset gds,
List<String> vars) |
static double |
getActualVertLevel(GridDatatype grid,
CalendarDate date,
LatLonPoint point,
double targetLevel)
Returns the actual vertical level if the grid has vertical transformation or -9999.9 otherwise
|
static List<String> |
getAllVarsAsList(GridDataset gds) |
static Double |
getTargetLevelForVertCoord(CoordinateAxis1D zAxis,
Double vertLevel) |
static TdsContext |
getTdsContext()
Makes the TdsContext available
|
static Double |
getTimeCoordValue(GridDatatype grid,
CalendarDate date,
CalendarDate origin) |
static GridDatatype |
getTimeGrid(Map<String,List<String>> groupedVars,
GridDataset gridDataset) |
static String |
nameFromPathInfo(String pathInfo) |
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
static List<CalendarDate> |
wantedDates(GridAsPointDataset gap,
CalendarDateRange dates,
long timeWindow) |
static List<VariableSimpleIF> |
wantedVars2VariableSimple(List<String> wantedVars,
GridDataset gds,
NetcdfDataset ncfile) |
public static GridAsPointDataset buildGridAsPointDataset(GridDataset gds, List<String> vars)
public static List<String> getAllVarsAsList(GridDataset gds)
public static List<CalendarDate> wantedDates(GridAsPointDataset gap, CalendarDateRange dates, long timeWindow) throws TimeOutOfWindowException, OutOfBoundariesException
public static List<VariableSimpleIF> wantedVars2VariableSimple(List<String> wantedVars, GridDataset gds, NetcdfDataset ncfile)
public static GridDatatype getTimeGrid(Map<String,List<String>> groupedVars, GridDataset gridDataset)
public static Double getTimeCoordValue(GridDatatype grid, CalendarDate date, CalendarDate origin)
public static Double getTargetLevelForVertCoord(CoordinateAxis1D zAxis, Double vertLevel)
public static double getActualVertLevel(GridDatatype grid, CalendarDate date, LatLonPoint point, double targetLevel) throws IOException, InvalidRangeException
grid - date - point - targetLevel - InvalidRangeExceptionIOExceptionpublic static TdsContext getTdsContext()
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
throws org.springframework.beans.BeansException
setApplicationContext in interface org.springframework.context.ApplicationContextAwareorg.springframework.beans.BeansExceptionCopyright © 1999–2014 UCAR/Unidata. All rights reserved.