mod_measurement_oldnew.F90 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. module mod_measurement_oldnew
  2. type measurement_old
  3. real d ! Measurement value
  4. real var ! Error variance of measurement
  5. character(len=5) id ! Type of measurement ('SST', 'SLA', 'COL', 'HICE', 'FICE', 'SAL', 'TEM'
  6. real lon ! Longitude position
  7. real lat ! Latitude position
  8. real depths ! depths of position
  9. integer ipiv ! i-pivot point in grid
  10. integer jpiv ! j-pivot point in grid
  11. integer ns ! representativity in mod cells (meas. support)
  12. ! ns=0 means: point measurements
  13. ! used in m_Generate_element_Sij.F90
  14. real a1 ! bilinear coeffisients (if ni=0)
  15. real a2 ! bilinear coeffisients
  16. real a3 ! bilinear coeffisients
  17. real a4 ! bilinear coeffisients
  18. logical status ! active or not
  19. end type measurement_old
  20. type measurement_new
  21. real d ! Measurement value
  22. real var ! Error variance of measurement
  23. character(len=5) id ! Type of measurement ('SST', 'SLA', 'COL', 'HICE', 'FICE', 'SAL', 'TEM'
  24. real lon ! Longitude position
  25. real lat ! Latitude position
  26. real depths ! depths of position
  27. integer ipiv ! i-pivot point in grid
  28. integer jpiv ! j-pivot point in grid
  29. integer ns ! representativity in mod cells (meas. support)
  30. ! ns=0 means: point measurements
  31. ! used in m_Generate_element_Sij.F90
  32. real a1 ! bilinear coeffisients (if ni=0)
  33. real a2 ! bilinear coeffisients
  34. real a3 ! bilinear coeffisients
  35. real a4 ! bilinear coeffisients
  36. logical status ! active or not
  37. integer i_orig_grid ! KAL - ice drift needs orig grid index as well !!! NEW
  38. integer j_orig_grid ! KAL - ice drift needs orig grid index as well !!! NEW
  39. end type measurement_new
  40. contains
  41. subroutine oldtonew(old,new)
  42. implicit none
  43. type (measurement_old), intent(in) :: old
  44. type (measurement_new), intent(out) :: new
  45. new%d =old%d
  46. new%var =old%var
  47. new%id =old%id
  48. new%lon =old%lon
  49. new%lat =old%lat
  50. new%depths=old%depths
  51. new%ipiv =old%ipiv
  52. new%jpiv =old%jpiv
  53. new%ns =old%ns
  54. new%a1 =old%a1
  55. new%a2 =old%a2
  56. new%a3 =old%a3
  57. new%a4 =old%a4
  58. new%status=old%status
  59. new%i_orig_grid=0
  60. new%j_orig_grid=0
  61. end subroutine
  62. end module mod_measurement_oldnew