var_has_missing_value Function

public function var_has_missing_value(this, var_name, rc)

Type Bound

FileMetadataUtils

Arguments

Type IntentOptional Attributes Name
class(FileMetadataUtils), intent(inout) :: this
character(len=*), intent(in) :: var_name
integer, intent(out), optional :: rc

Return Value logical


Calls

proc~~var_has_missing_value~~CallsGraph proc~var_has_missing_value FileMetadataUtils%var_has_missing_value interface~mapl_assert MAPL_Assert proc~var_has_missing_value->interface~mapl_assert none~get_variable FileMetadata%get_variable proc~var_has_missing_value->none~get_variable none~is_attribute_present Variable%is_attribute_present proc~var_has_missing_value->none~is_attribute_present proc~get_file_name FileMetadataUtils%get_file_name proc~var_has_missing_value->proc~get_file_name proc~mapl_return MAPL_Return proc~var_has_missing_value->proc~mapl_return proc~mapl_verify MAPL_Verify proc~var_has_missing_value->proc~mapl_verify none~get_variable->proc~mapl_return none~at~5 StringVariableMap%at none~get_variable->none~at~5 none~is_attribute_present->proc~mapl_return none~at~140 StringAttributeMap%at none~is_attribute_present->none~at~140 proc~get_file_name->proc~mapl_return at at proc~mapl_return->at insert insert proc~mapl_return->insert proc~mapl_throw_exception MAPL_throw_exception proc~mapl_return->proc~mapl_throw_exception proc~mapl_verify->proc~mapl_throw_exception none~find~39 StringAttributeMap%find none~at~140->none~find~39 none~find~2 StringVariableMap%find none~at~5->none~find~2

Called by

proc~~var_has_missing_value~~CalledByGraph proc~var_has_missing_value FileMetadataUtils%var_has_missing_value none~swap_undef_value MAPL_GriddedIO%swap_undef_value none~swap_undef_value->proc~var_has_missing_value none~process_data_from_file MAPL_GriddedIO%process_data_from_file none~process_data_from_file->none~swap_undef_value proc~mapl_read_bundle MAPL_read_bundle proc~mapl_read_bundle->none~process_data_from_file proc~main main proc~main->proc~mapl_read_bundle program~time_ave time_ave program~time_ave->proc~mapl_read_bundle program~ut_regridding ut_ReGridding program~ut_regridding->proc~mapl_read_bundle

Source Code

   logical function var_has_missing_value(this,var_name,rc)
      class(FileMetadataUtils), intent(inout) :: this
      character(len=*), intent(in) :: var_name
      integer, optional, intent(out) :: rc
     
      integer :: status
      character(:), allocatable :: fname
      type(Variable), pointer :: var

      fname = this%get_file_name(_RC)
      var => this%get_variable(var_name,_RC)
      _ASSERT(associated(var),"no variable named "//var_name//" in "//fname)
      var_has_missing_value = var%is_attribute_present("_FillValue")

      _RETURN(_SUCCESS)
   end function var_has_missing_value