Reading-eScience-Centre / edal-java

Environmental Data Abstraction Layer libraries
Other
39 stars 30 forks source link

How to use trajectory features? #101

Open marceloandrioni opened 6 years ago

marceloandrioni commented 6 years ago

Some releases mention improvements to trajectory features plotting but I couldn't find a description of the format of the netcdf file I should use. Do I need specific names for the dimensions/variables? Should I use http://cfconventions.org/Data/cf-conventions/cf-conventions-1.6/build/cf-conventions.html#discrete-sampling-geometries to create the file? Do I need to pass a "Data reading class" like uk.ac.rdg.resc.edal.dataset.cdm.En3DatasetFactory? If possible could you make a netcdf file available to test this features? Thank you very much.

guygriffiths commented 6 years ago

Currently there is no planned support for reading trajectory features from NetCDF. I implemented them in EDAL for use in an upcoming project (which interfaces with a 3rd party database to read features), and they will work in ncWMS2 if a suitable DatasetFactory is found (and configured in the "Data reading class" field, as you suggest). Currently the only implementation of a DatasetFactory which produces TrajectoryFeatures is FakeTrajectoryDatasetFactory, which I created for testing.

marceloandrioni commented 6 years ago

Ok, thanks for the info. I had seen the reference for trajectory features in the news for versions 1.2.12 and 1.2.11 and got confused. I will be closing this issue then. Thank you.

guygriffiths commented 6 years ago

No worries. I'm going to leave it open as an enhancement, since it has the link to the CF conventions on how to implement trajectories in NetCDF That way if we do get time, we can implement it.