rosetta icon indicating copy to clipboard operation
rosetta copied to clipboard

Bug (?) creating trajectory files

Open aleksandervines opened this issue 8 years ago • 2 comments

How is this supposed to work?

For a trajectory, it makes sense for me to require time, lat and lon as variables from the text file. Altitude could optionally either be assigned in "specify site specific information" or in variables from text file.

I'm trying this on the current version on https://rosetta.unidata.ucar.edu/create with following settings:

sessionStorage.delimiters = "Whitespace";
sessionStorage.headerLineNumbers = "0,1,2";
sessionStorage.generalMetadata = "title:title,description:desc,institution:inst";
sessionStorage.platformMetadata = "platformName:trajectory name";
sessionStorage.variableName0 = "time";
sessionStorage.variableName0Metadata = "standard_name:time,units:days since 2010-01-01,_coordinateVariable:coordinate,_coordinateVariableType:relTime,dataType:Float,long_name:var desc";
sessionStorage.variableName1 = "latitude";
sessionStorage.variableName1Metadata = "standard_name:latitude,units:degree_north,_coordinateVariable:coordinate,_coordinateVariableType:lat,dataType:Float,long_name:var desc";
sessionStorage.variableName2 = "longitude";
sessionStorage.variableName2Metadata = "standard_name:longitude,units:degree_east,_coordinateVariable:coordinate,_coordinateVariableType:lon,dataType:Float,long_name:var desc";
sessionStorage.variableName3 = "depth";
sessionStorage.variableName3Metadata = "standard_name:depth,units:m,_coordinateVariable:coordinate,_coordinateVariableType:alt,dataType:Float,long_name:var desc";
sessionStorage.variableName4 = "sea_water_pressure";
sessionStorage.variableName4Metadata = "standard_name:sea_water_pressure,units:dbar,_coordinateVariable:non-coordinate,dataType:Float,source:isnt desc,missing_value:-999,long_name:var desc";

The resulting output will not mark the lat/lon/depth from coord vars as coordinate variables. See the output cdl file: uni-trajectory-rosetta-test-minimum-dot.txt

I'm wondering about this, because I'm trying to test my development version of adding new cf-type - profile - and I've made some changes to e.g. NetcdfFileManager.java which is affecting the output from other cf-types, and I'm trying to test that I've not broken anything. But for me it appear that its already broken (unless the user is the problem:).

aleksandervines avatar Oct 24 '16 10:10 aleksandervines

This is related to "otherInfo" which is kind of hardcoded in for trajectory in TemplateController.parseFile

It seems quite illogical to have this logic in there. It should be generalized and moved (to NetcdfFileManager?)

aleksandervines avatar Oct 28 '16 15:10 aleksandervines

I think a good generic solution to this would solve #41 as well And I think it's related to #28

The commit I've tagged this issue with (3x because of me rebasing some silly stuff) is a good path to solving #7

aleksandervines avatar Oct 28 '16 15:10 aleksandervines