public static String getZisPositive ( String zaxisName , String vertCoordUnits ) { if ( vertCoordUnits == null ) return CF . POSITIVE_UP ; if ( vertCoordUnits . isEmpty ( ) ) return CF . POSITIVE_UP ; if ( SimpleUnit . isCompatible ( "millibar" , vertCoordUnits ) ) return CF . POSITIVE_DOWN ; if ( SimpleUnit . isCompatible ( "m" , vertCoordUnits ) ) return CF . POSITIVE_UP ; // dunno - make it up return CF . POSITIVE_UP ; }
Guess the value of ZisPositive based on z axis name and units