Java Doc for NetcdfMetadata.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) 


org.geotools.image.io.metadata.GeographicMetadata
   org.geotools.image.io.netcdf.NetcdfMetadata

NetcdfMetadata
public class NetcdfMetadata extends GeographicMetadata (Code)
Metadata from NetCDF file. This implementation assumes that the NetCDF file follows the CF Metadata conventions.

Limitation: Current implementation retains only the first found in the NetCDF file or for a given variable. The org.geotools.coverage.io package would not know what to do with the extra coordinate systems anyway.
since:
   2.4
version:
   $Id: NetcdfMetadata.java 27848 2007-11-12 13:10:32Z desruisseaux $
author:
   Martin Desruisseaux




Constructor Summary
public  NetcdfMetadata(ImageReader reader, NetcdfDataset file)
     Creates metadata from the specified file.
public  NetcdfMetadata(ImageReader reader, VariableDS variable)
     Creates metadata from the specified file.

Method Summary
public  voidaddCoordinateAxis(CoordinateAxis axis)
     Adds the specified coordinate axis.
public  voidaddCoordinateSystem(CoordinateSystem cs)
     Adds the specified coordinate system.
public  voidaddSampleDimension(VariableDS variable)
     Adds sample dimension information for the specified variable.
protected  booleanforcePacking(String attribute)
     Returns true if an attribute (usually the valid range) should be converted from unpacked to packed units.
protected  FormatgetAxisFormat(AxisType type, String prototype)
     Returns a format to use for parsing values along the specified axis type.


Constructor Detail
NetcdfMetadata
public NetcdfMetadata(ImageReader reader, NetcdfDataset file)(Code)
Creates metadata from the specified file. This constructor is typically invoked for creating . Note that ucar.nc2.dataset.CoordSysBuilder.addCoordinateSystems should have been invoked (if needed) before this constructor.



NetcdfMetadata
public NetcdfMetadata(ImageReader reader, VariableDS variable)(Code)
Creates metadata from the specified file. This constructor is typically invoked for creating . Note that ucar.nc2.dataset.CoordSysBuilder.addCoordinateSystems should have been invoked (if needed) before this constructor.




Method Detail
addCoordinateAxis
public void addCoordinateAxis(CoordinateAxis axis)(Code)
Adds the specified coordinate axis. This method is invoked recursively by NetcdfMetadata.addCoordinateSystem .
Parameters:
  axis - The axis to add.



addCoordinateSystem
public void addCoordinateSystem(CoordinateSystem cs)(Code)
Adds the specified coordinate system. Current implementation can adds at most one coordinate system, but this limitation may be revisited in a future Geotools version.
Parameters:
  cs - The coordinate system to add.



addSampleDimension
public void addSampleDimension(VariableDS variable)(Code)
Adds sample dimension information for the specified variable.
Parameters:
  variable - The variable to add as a sample dimension.



forcePacking
protected boolean forcePacking(String attribute)(Code)
Returns true if an attribute (usually the valid range) should be converted from unpacked to packed units. The CF Metadata conventions states that valid ranges should be in packed units, but not every NetCDF files follow this advice in practice. The UCAR NetCDF library applies the following heuristic rules (quoting from ucar.nc2.dataset.EnhanceScaleMissing ):
If valid_range is the same type as scale_factor (actually the wider of scale_factor and add_offset ) and this is wider than the external data, then it will be interpreted as being in the units of the internal (unpacked) data. Otherwise it is in the units of the external (packed) data.
However some NetCDF files stores unpacked ranges using the same type than packed data. The above cited heuristic rule can not resolve those cases.

If this method returns true , then the attribute is assumed in unpacked units no matter what the CF convention and the heuristic rules said. If this method returns false , then UCAR's heuristic rules applies.

The default implementation returns false in all cases.
Parameters:
  attribute - The attribute (usually "valid_range" ). true if the attribute should be converted from unpacked to packed unitsregardless CF convention and UCAR's heuristic rules.
See Also:   ucar.nc2.dataset.EnhanceScaleMissing




getAxisFormat
protected Format getAxisFormat(AxisType type, String prototype)(Code)
Returns a format to use for parsing values along the specified axis type. This method is invoked when parsing the date part of axis units like "days since 1990-01-01 00:00:00". Subclasses should override this method if the date part is formatted in a different way. The default implementation returns the following formats:

  • For , a DateFormat using the "yyyy-MM-dd HH:mm:ss" pattern in UTC .
  • For all other kind of axis, a NumberFormat .

The is used by default for most formats because it is relatively close to ISO (for example regarding days and months order in dates) while using the English symbols.
Parameters:
  type - The type of the axis.
Parameters:
  prototype - An example of the values to be parsed. Implementations may parse thisprototype when the axis type alone is not suffisient. For example the should uses the "yyyy-MM-dd" date pattern,but some files do not follow this convention and use the default local instead. The format for parsing values along the axis.




Methods inherited from org.geotools.image.io.metadata.GeographicMetadata
public Band addBand(String name)(Code)(Java Doc)
protected LoggedFormat createLoggedFormat(Format format, Class type)(Code)(Java Doc)
public Node getAsTree(String formatName) throws IllegalArgumentException(Code)(Java Doc)
public Band getBand(int bandIndex) throws IndexOutOfBoundsException(Code)(Java Doc)
public ImageGeometry getGeometry()(Code)(Java Doc)
public Locale getLocale()(Code)(Java Doc)
public int getNumBands()(Code)(Java Doc)
public ImageReferencing getReferencing()(Code)(Java Doc)
public String getSampleType()(Code)(Java Doc)
public boolean isReadOnly()(Code)(Java Doc)
public void mergeTree(String formatName, Node root) throws IIOInvalidTreeException(Code)(Java Doc)
public void mergeTree(IIOMetadata metadata) throws IIOInvalidTreeException(Code)(Java Doc)
public void reset()(Code)(Java Doc)
public void setSampleType(String type)(Code)(Java Doc)
public String toString()(Code)(Java Doc)
protected void warningOccurred(LogRecord record)(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.