stats_define_pedestrian_wind Subroutine

private subroutine stats_define_pedestrian_wind(ncid)

Arguments

Type IntentOptional Attributes Name
integer, intent(in) :: ncid

Calls

proc~~stats_define_pedestrian_wind~~CallsGraph proc~stats_define_pedestrian_wind stats_define_pedestrian_wind proc~define_nc define_nc proc~stats_define_pedestrian_wind->proc~define_nc proc~write_pedestrian_wind_heights_nc write_pedestrian_wind_heights_nc proc~stats_define_pedestrian_wind->proc~write_pedestrian_wind_heights_nc proc~write_pedestrian_wind_metadata_nc write_pedestrian_wind_metadata_nc proc~stats_define_pedestrian_wind->proc~write_pedestrian_wind_metadata_nc nf90_def_var nf90_def_var proc~define_nc->nf90_def_var nf90_enddef nf90_enddef proc~define_nc->nf90_enddef nf90_inq_dimid nf90_inq_dimid proc~define_nc->nf90_inq_dimid nf90_inq_varid nf90_inq_varid proc~define_nc->nf90_inq_varid nf90_put_att nf90_put_att proc~define_nc->nf90_put_att nf90_redef nf90_redef proc~define_nc->nf90_redef proc~nchandle_error nchandle_error proc~define_nc->proc~nchandle_error nf90_def_dim nf90_def_dim proc~write_pedestrian_wind_heights_nc->nf90_def_dim proc~write_pedestrian_wind_heights_nc->nf90_def_var proc~write_pedestrian_wind_heights_nc->nf90_enddef nf90_get_var nf90_get_var proc~write_pedestrian_wind_heights_nc->nf90_get_var proc~write_pedestrian_wind_heights_nc->nf90_inq_dimid proc~write_pedestrian_wind_heights_nc->nf90_inq_varid nf90_inquire_dimension nf90_inquire_dimension proc~write_pedestrian_wind_heights_nc->nf90_inquire_dimension nf90_inquire_variable nf90_inquire_variable proc~write_pedestrian_wind_heights_nc->nf90_inquire_variable proc~write_pedestrian_wind_heights_nc->nf90_put_att nf90_put_var nf90_put_var proc~write_pedestrian_wind_heights_nc->nf90_put_var proc~write_pedestrian_wind_heights_nc->nf90_redef nf90_sync nf90_sync proc~write_pedestrian_wind_heights_nc->nf90_sync proc~write_pedestrian_wind_heights_nc->proc~nchandle_error proc~write_pedestrian_wind_metadata_nc->nf90_def_var proc~write_pedestrian_wind_metadata_nc->nf90_enddef proc~write_pedestrian_wind_metadata_nc->nf90_get_var proc~write_pedestrian_wind_metadata_nc->nf90_inq_varid proc~write_pedestrian_wind_metadata_nc->nf90_inquire_variable proc~write_pedestrian_wind_metadata_nc->nf90_put_att proc~write_pedestrian_wind_metadata_nc->nf90_put_var proc~write_pedestrian_wind_metadata_nc->nf90_redef proc~write_pedestrian_wind_metadata_nc->nf90_sync proc~write_pedestrian_wind_metadata_nc->proc~nchandle_error nf90_strerror nf90_strerror proc~nchandle_error->nf90_strerror

Called by

proc~~stats_define_pedestrian_wind~~CalledByGraph proc~stats_define_pedestrian_wind stats_define_pedestrian_wind proc~stats_createnc_tavg stats_createnc_tavg proc~stats_createnc_tavg->proc~stats_define_pedestrian_wind proc~stats_createnc_tkslice stats_createnc_tkslice proc~stats_createnc_tkslice->proc~stats_define_pedestrian_wind proc~stats_prepare stats_prepare proc~stats_prepare->proc~stats_createnc_tavg proc~stats_prepare->proc~stats_createnc_tkslice proc~stats_main stats_main proc~stats_main->proc~stats_prepare program~udales uDALES program~udales->proc~stats_main

Source Code

    subroutine stats_define_pedestrian_wind(ncid)
      implicit none
      integer, intent(in) :: ncid

      if (size(wind_heights) == 1) then
        call define_nc(ncid, size(pedestrianWindVars,1), pedestrianWindVars)
        call write_pedestrian_wind_metadata_nc(ncid, wind_heights(1))
      else
        call define_nc(ncid, 1, pedestrianWindVars(2:2,:))
        call write_pedestrian_wind_heights_nc(ncid, wind_heights)
      end if
    end subroutine stats_define_pedestrian_wind