org.gcube.dataanalysis.geo.utils
Class ThreddsDataExplorer

java.lang.Object
  extended by org.gcube.dataanalysis.geo.utils.ThreddsDataExplorer

public class ThreddsDataExplorer
extends Object


Field Summary
static String timePrefix
           
 
Constructor Summary
ThreddsDataExplorer()
           
 
Method Summary
static double adjX(double x)
           
static double adjY(double y)
           
static List<String> getFiles(String catalogURL)
           
static double getMaxX(ucar.nc2.dt.GridCoordSystem gcs)
           
static double getMaxY(ucar.nc2.dt.GridCoordSystem gcs)
           
static double getMinX(ucar.nc2.dt.GridCoordSystem gcs)
           
static double getMinY(ucar.nc2.dt.GridCoordSystem gcs)
           
static boolean isDataset(String filename)
           
static boolean isGridDataset(String filename)
           
static boolean isPointDataset(String filename)
           
static LinkedHashMap<String,Double> manageGridDataset(String layer, String filename, double x, double y, double z)
           
static List<Double> manageGridDataset(String layer, String filename, int time, List<org.gcube.dataanalysis.ecoengine.utils.Tuple<Double>> triplets, double xL, double xR, double yL, double yR)
           
 LinkedHashMap<String,String> managePointsDataset(String layer, String filename, double x, double y)
           
static LinkedHashMap<String,Double> retrieveDataFromNetCDF(String openDapLink, String layer, double x, double y, double z)
           
static List<Double> retrieveDataFromNetCDF(String openDapLink, String layer, int time, List<org.gcube.dataanalysis.ecoengine.utils.Tuple<Double>> triplets, double xL, double xR, double yL, double yR)
           
static Double takeFirstDouble(ucar.ma2.Array data)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

timePrefix

public static String timePrefix
Constructor Detail

ThreddsDataExplorer

public ThreddsDataExplorer()
Method Detail

getFiles

public static List<String> getFiles(String catalogURL)
                             throws Exception
Throws:
Exception

retrieveDataFromNetCDF

public static LinkedHashMap<String,Double> retrieveDataFromNetCDF(String openDapLink,
                                                                  String layer,
                                                                  double x,
                                                                  double y,
                                                                  double z)

retrieveDataFromNetCDF

public static List<Double> retrieveDataFromNetCDF(String openDapLink,
                                                  String layer,
                                                  int time,
                                                  List<org.gcube.dataanalysis.ecoengine.utils.Tuple<Double>> triplets,
                                                  double xL,
                                                  double xR,
                                                  double yL,
                                                  double yR)

manageGridDataset

public static List<Double> manageGridDataset(String layer,
                                             String filename,
                                             int time,
                                             List<org.gcube.dataanalysis.ecoengine.utils.Tuple<Double>> triplets,
                                             double xL,
                                             double xR,
                                             double yL,
                                             double yR)
                                      throws Exception
Throws:
Exception

manageGridDataset

public static LinkedHashMap<String,Double> manageGridDataset(String layer,
                                                             String filename,
                                                             double x,
                                                             double y,
                                                             double z)
                                                      throws Exception
Throws:
Exception

takeFirstDouble

public static Double takeFirstDouble(ucar.ma2.Array data)

managePointsDataset

public LinkedHashMap<String,String> managePointsDataset(String layer,
                                                        String filename,
                                                        double x,
                                                        double y)
                                                 throws Exception
Throws:
Exception

isGridDataset

public static boolean isGridDataset(String filename)

isPointDataset

public static boolean isPointDataset(String filename)

isDataset

public static boolean isDataset(String filename)
                         throws Exception
Throws:
Exception

adjX

public static double adjX(double x)

adjY

public static double adjY(double y)

getMinX

public static double getMinX(ucar.nc2.dt.GridCoordSystem gcs)

getMaxX

public static double getMaxX(ucar.nc2.dt.GridCoordSystem gcs)

getMinY

public static double getMinY(ucar.nc2.dt.GridCoordSystem gcs)

getMaxY

public static double getMaxY(ucar.nc2.dt.GridCoordSystem gcs)


Copyright © 2013. All Rights Reserved.