Ignore:
Timestamp:
08/25/15 16:52:45 (9 years ago)
Author:
rlacroix
Message:

Add support for indexed output.

If the new field attribute "indexed_output" is set to true and a mask is defined (either at grid, domain or axis level), the indexed data will be outputed instead of the full data with missing values.

See http://cfconventions.org/Data/cf-conventions/cf-conventions-1.5/build/cf-conventions.html#compression-by-gathering for more information.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/trunk/src/interface/fortran_attr/field_interface_attr.F90

    r608 r676  
    231231 
    232232 
     233    SUBROUTINE cxios_set_field_indexed_output(field_hdl, indexed_output) BIND(C) 
     234      USE ISO_C_BINDING 
     235      INTEGER (kind = C_INTPTR_T), VALUE :: field_hdl 
     236      LOGICAL (KIND=C_BOOL)      , VALUE :: indexed_output 
     237    END SUBROUTINE cxios_set_field_indexed_output 
     238 
     239    SUBROUTINE cxios_get_field_indexed_output(field_hdl, indexed_output) BIND(C) 
     240      USE ISO_C_BINDING 
     241      INTEGER (kind = C_INTPTR_T), VALUE :: field_hdl 
     242      LOGICAL (KIND=C_BOOL)             :: indexed_output 
     243    END SUBROUTINE cxios_get_field_indexed_output 
     244 
     245    FUNCTION cxios_is_defined_field_indexed_output(field_hdl) BIND(C) 
     246      USE ISO_C_BINDING 
     247      LOGICAL(kind=C_BOOL) :: cxios_is_defined_field_indexed_output 
     248      INTEGER (kind = C_INTPTR_T), VALUE :: field_hdl 
     249    END FUNCTION cxios_is_defined_field_indexed_output 
     250 
     251 
    233252    SUBROUTINE cxios_set_field_level(field_hdl, level) BIND(C) 
    234253      USE ISO_C_BINDING 
Note: See TracChangeset for help on using the changeset viewer.