Ignore:
Timestamp:
01/07/22 12:17:18 (3 years ago)
Author:
ymipsl
Message:

Improve file reading reading

  • add_offset and scaling_factor attributes are set when present in reading file
  • Add new attribute for axis to scale axis_value when read from file : convert_from_factor
  • fix bugs when time dimension in reading file is not unlimited

YM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/trunk/src/io/inetcdf4.hpp

    r1639 r2280  
    4040 
    4141      /// Getters /// 
    42       StdSize getNbOfTimestep(const CVarPath* const path = NULL); 
    4342 
    4443      StdString getUnlimitedDimensionName(const CVarPath* const path = NULL); 
     
    112111      /// Tests /// 
    113112      bool hasMissingValue(const StdString& name, const CVarPath* const path = NULL); 
    114  
     113      bool hasAttribute(const StdString& name, const StdString* const var  = NULL, const CVarPath* const path = NULL); 
     114       
     115      template <class T> 
    115116      bool hasAttribute(const StdString& name, const StdString* const var  = NULL, const CVarPath* const path = NULL); 
    116117 
     
    144145      int getDimension(const StdString& dimname, const CVarPath* const path = NULL); 
    145146      int getUnlimitedDimension(const CVarPath* const path = NULL); 
     147      bool hasUnlimitedDimension(const CVarPath* const path = NULL); 
     148 
    146149      int getAttributeId(const StdString& name, 
    147150                         const StdString* const var = NULL, 
Note: See TracChangeset for help on using the changeset viewer.