Java Doc for VariableMetadata.java in  » GIS » GeoTools-2.4.1 » org » geotools » image » io » netcdf » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » GIS » GeoTools 2.4.1 » org.geotools.image.io.netcdf 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.geotools.image.io.netcdf.VariableMetadata

VariableMetadata
final class VariableMetadata (Code)
Parses the offset, scale factor, minimum, maximum and fill values from a variable. This class duplicate UCAR's EnhanceScaleMissingImpl functionality, but we have to do that because:

  • I have not been able to find any method giving me directly the offset and scale factor. We can use some trick with VariableEnhanced.convertScaleOffsetMissing , but they are subject to rounding errors and there is no efficient way I can see to take missing values in account.
  • The VariableEnhanced methods are available only if the variable is enhanced. Our variable is not, because we want raw (packed) data.
  • We want minimum, maximum and fill values in packed units (as opposed to the geophysics values provided by the UCAR's API), because we check for missing values before to convert them.

version:
   $Id: VariableMetadata.java 27583 2007-10-23 11:29:26Z desruisseaux $
author:
   Martin Desruisseaux


Field Summary
final public  doubleminimummaximum
     The minimal and maximal valid values in geophysics units, or infinity if none.
final public  double[]missingValues
     The fill and missing values in packed units, or null if none. Note that this is different from UCAR, who converts to geophysics values.
final public  doublescaleoffset
     The scale and and offset values, or Double.NaN NaN if none.

Constructor Summary
public  VariableMetadata(VariableEnhanced variable)
     Extracts metadata from the specified variable using UCAR's API.
public  VariableMetadata(Variable variable, boolean forceRangePacking)
     Extracts metadata from the specified variable using our own method.

Method Summary
public  voidcopyTo(Band band)
     Copies the value in this variable metadata into the specified band.
static  intgetRawDataType(VariableIF variable)
     Returns the data type which most closely represents the "raw" internal data of the variable.

Field Detail
minimummaximum
final public double minimummaximum(Code)
The minimal and maximal valid values in geophysics units, or infinity if none. They are converted from the packed values if needed, as UCAR does.



missingValues
final public double[] missingValues(Code)
The fill and missing values in packed units, or null if none. Note that this is different from UCAR, who converts to geophysics values. We keep packed values in order to avoir rounding error. This array contains both the fill value and the missing values, without duplicated values.



scaleoffset
final public double scaleoffset(Code)
The scale and and offset values, or Double.NaN NaN if none.




Constructor Detail
VariableMetadata
public VariableMetadata(VariableEnhanced variable)(Code)
Extracts metadata from the specified variable using UCAR's API. This approach suffers from rounding errors and is unable to get the missing values. Use this constructor only for comparing our own results with the results from the UCAR's API.



VariableMetadata
public VariableMetadata(Variable variable, boolean forceRangePacking)(Code)
Extracts metadata from the specified variable using our own method.
Parameters:
  variable - The variable to extract metadata from.
Parameters:
  forceRangePacking - true if the valid range is encoded in geophysics units(which is a violation of CF convention), or false in order to autodetectusing the UCAR heuristic rule.




Method Detail
copyTo
public void copyTo(Band band)(Code)
Copies the value in this variable metadata into the specified band.



getRawDataType
static int getRawDataType(VariableIF variable)(Code)
Returns the data type which most closely represents the "raw" internal data of the variable. This is the value returned by the default implementation of NetcdfImageReader.getRawDataType .
Parameters:
  variable - The variable. The data type, or DataBuffer.TYPE_UNDEFINED if unknown.
See Also:   NetcdfImageReader.getRawDataType



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.