namelist_example_bilin 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. &comments
  2. -----------------------------------------------------------------------------------
  3. - grid_inputs holds parameters for the scripgrid routine which reformats information
  4. about the input grids
  5. - scripgrid always needs a coordinates.nc file in the
  6. current directory and creates the remapped grid file correspondingly
  7. - it uses the following namelist block to determine its actions
  8. method: only 'regular' is yet implemented, this assumes a cartesian grid
  9. input_lon: name of longitude variable in the input_file
  10. input_lat: name of latitude variable in the input_file
  11. nemo_lon: name of longitude variable in the coordinates.nc
  12. nemo_lat: name of latitude variable in the coordinates.nc
  13. /
  14. &grid_inputs
  15. input_file = 'snow_1m_DUM_1958.nc'
  16. nemo_file = 'coordinates.nc'
  17. datagrid_file = 'remap_data_grid.nc'
  18. nemogrid_file = 'remap_nemo_grid.nc'
  19. method = 'regular'
  20. input_lon = 'lon'
  21. input_lat = 'lat'
  22. nemo_lon = 'glamt'
  23. nemo_lat = 'gphit'
  24. nemo_mask = 'none'
  25. nemo_mask_value = 10
  26. input_mask = 'none'
  27. input_mask_value = 10
  28. /
  29. &comments
  30. -----------------------------------------------------------------------------------
  31. - remap_inputs holds parameters for the scrip routine which calculates the weights
  32. needed to convert between two grids
  33. - two remap grid files are required as output by scripgrid
  34. - num_maps is either 1 or 2 depending on whether the reverse transformation is required
  35. - one or two interp_file names are then supplied; these hold the weights to convert
  36. one grid to another
  37. - the map_name variable is just descriptive
  38. - map_method can be 'bilinear' 'bicubic' or 'conservative' (the latter untested)
  39. - normalize_opt should usually be 'frac' or else the user needs to do this scaling
  40. manually (this seems to the case for fractional ice cover)
  41. - restrict_type should be 'latitude' or 'latlon' in which case num_srch_bins only are
  42. used in one or two directions
  43. - use_grid_area fields override the scrip calculation of area in case the model gets
  44. slightly different answers, but the area needs to be supplied in the input files
  45. - output_opt may be supplied and set to either 'scrip' or 'ncar-csm'
  46. /
  47. &remap_inputs
  48. num_maps = 1
  49. grid1_file = 'remap_data_grid.nc'
  50. grid2_file = 'remap_nemo_grid.nc'
  51. interp_file1 = 'data_nemo_bilin.nc'
  52. interp_file2 = 'nemo_data_bilin.nc'
  53. map1_name = 'data to nemo bilin Mapping'
  54. map2_name = 'nemo to data bilin Mapping'
  55. map_method = 'bilinear'
  56. normalize_opt = 'frac'
  57. output_opt = 'scrip'
  58. restrict_type = 'latitude'
  59. num_srch_bins = 90
  60. luse_grid1_area = .false.
  61. luse_grid2_area = .false.
  62. /
  63. &interp_inputs
  64. input_file = "snow_1m_DUM_1958.nc"
  65. interp_file = "data_nemo_bilin.nc"
  66. input_name = "snow"
  67. input_start = 1,1,1,1
  68. input_stride = 1,1,1,1
  69. input_stop = 0,0,0,1
  70. input_vars = 'initial_time0_hours'
  71. /
  72. &interp_outputs
  73. output_file = "snow_orca.nc"
  74. output_mode = "create"
  75. output_dims = 'x', 'y', 'time_counter'
  76. output_scaling = "snow|1.0", "time_counter|86400.0"
  77. output_name = 'snow'
  78. output_lon = 'x'
  79. output_lat = 'y'
  80. output_vars = 'time_counter'
  81. output_attributes = 'time_counter|units|seconds since 1995-00-00 00:00:00',
  82. 'time_counter|calendar|noleap',
  83. 'snow|units|mm/s'
  84. /
  85. &comments
  86. -----------------------------------------------------------------------------------
  87. - shape_inputs are the input fields required by scripshape.f90
  88. - first is the interpolation file created by scrip.f90 mapping data to model grid
  89. - second is the name of the output weights file to create
  90. - third is the east-west wrap to assume in the model (needed when calculating gradient
  91. terms in the bicubic scheme); the number is just the number of columns on one side
  92. that are repeats of those on the opposite side (-1 for not cyclic)
  93. /
  94. &shape_inputs
  95. interp_file = 'data_nemo_bilin.nc'
  96. output_file = 'weights_bilin.nc'
  97. ew_wrap = 0
  98. /