! ./src/oblimap_gcm_to_im_program config-files/oblimap/ice2sea-to-im/config_oblimap_ice2sea_to_im_greenland_20x20km
! Mapping the ice2sea data on to an IM grid for Greenland.

&CONFIG 
NLON_config                                               =   2501                                                ! The number of GCM grid points in the longitude direction
NLAT_config                                               =   3001                                                ! The number of GCM grid points in the latitude  direction

NX_config                                                 =     77                                                ! The number of IM grid points in the x-direction
NY_config                                                 =    141                                                ! The number of IM grid points in the y-direction
dx_config                                                 =  20000                                                ! The           IM grid size   in the x-direction (in meter)
dy_config                                                 =  20000                                                ! The           IM grid size   in the y-direction (in meter)

lambda_M_config                                           =    319                                                ! The longitude coordinate of the middle point of projection (in degrees)
phi_M_config                                              =     72                                                ! The latitude  coordinate of the middle point of projection (in degrees)
alpha_stereographic_config                                =      7.1                                              ! alpha determines the standard parallel of the projection (in degrees)
choice_projection_method_config                           = 'oblique_stereographic_projection_ellipsoid_snyder'

scanning_mode_config                                      = .TRUE.
sid_filename_config                                       = './oblimap-sid-files/sid-file-ice2sea-to-im-greenland-20x20km.txt'
!scan_search_block_size_config                             = 37
R_search_interpolation_config                             = 8000
shepard_exponent_config                                   = 2
nearest_point_assignment_config                           = .FALSE.

! The input data below is obtained by: ./src/oblimap_convert_program config-files/oblimap/convert-for-ice2sea/config_oblimap_convert_ice2sea_01x01km
gcm_input_filename_config                                 = './data/ice2sea/ice2sea_greenland_geometry_1km_updated_at_lon_lat.nc'
gcm_record_range_config                                   = 1,1


number_of_mapped_fields_config                            = 5
im_field_name_config(1)                                   = 'Surface Elevation'
im_field_name_config(2)                                   = 'Ice Thickness'
im_field_name_config(3)                                   = 'Bedrock Elevation'
im_field_name_config(4)                                   = 'longitude'
im_field_name_config(5)                                   = 'latitude'
gcm_field_name_config(-4)                                 = 'latitude'                                            ! Should match with the gcm input file
gcm_field_name_config(-2)                                 = 'longitude'                                           ! Should match with the gcm input file
gcm_field_name_config(1)                                  = 'Surface Elevation'                                   ! Should match with the gcm input file
gcm_field_name_config(2)                                  = 'Ice Thickness'                                       ! Should match with the gcm input file
gcm_field_name_config(3)                                  = 'Bedrock Elevation'                                   ! Should match with the gcm input file
gcm_field_name_config(4)                                  = 'longitude'                                           ! Should match with the gcm input file
gcm_field_name_config(5)                                  = 'latitude'                                            ! Should match with the gcm input file

im_field_unit_config(-4)                                  = 'meter'
im_field_unit_config(-2)                                  = 'meter'
im_field_unit_config(1)                                   = 'meter'
im_field_unit_config(2)                                   = 'meter'
im_field_unit_config(3)                                   = 'meter'
im_field_unit_config(4)                                   = 'degrees'
im_field_unit_config(5)                                   = 'degrees'

im_field_longname_config(-4)                              = 'y-axis (meter)'
im_field_longname_config(-2)                              = 'x-axis (meter)'
im_field_longname_config(1)                               = 'Surface Elevation (meter)'
im_field_longname_config(2)                               = 'Ice Thickness (meter)'
im_field_longname_config(3)                               = 'Bedrock Elevation (meter)'
im_field_longname_config(4)                               = 'longitude (degrees)'
im_field_longname_config(5)                               = 'latitude (degrees)'

field_which_determines_invalid_value_mask_config(1)       = -1
field_which_determines_invalid_value_mask_config(2)       = -2
field_which_determines_invalid_value_mask_config(3)       =  3
field_which_determines_invalid_value_mask_config(4)       = -4
field_which_determines_invalid_value_mask_config(5)       = -5

invalid_input_value_config(3)                             = -9999

im_created_filename_config                                = './oblimap-results/initial_greenland_ice2sea_20x20km.nc'
protect_file_overwriting_config                           = .FALSE.
oblimap_message_level_config                              = 0

oblimap_allocate_factor_config                            = 110
/
