melika1389
New member
Hello there,
I have created one of the inputs of the geogrid and wanted to create the geogrid file for that specific input to make sure if the projections and everything is fine or not. Still, after running geogrid.exe, I am getting the error that there is not enough virtual memory, which I think is not because of not having enough CPU or memory because, in my last run, I gave it 32 cores with almost 32 Gb per core. It gave me the same error, so I think it must be something wrong with the procedure I have done until now. Q1. Usually, how many cores with how much memory per each core is needed for running the geogrid.exe? Q2. Can I run the geogrid.exe file multiple times to check the procedure and each time add more parameters to it?
I am adding all my steps to make sure I haven't missed anything:
The input data is a three arc-seconds Hydrosheds DEM which using ArcMap, after downloading the data and giving the wps84 as the geographical information system, I resampled the grids to a 30 arc-seconds grid. Then I export it as a tiff file, and using the following command; I saved it as an ENVI file.
gdal_translate -of ENVI -co INTERLEAVE=BSQ D:\ArcMaps\GL_dem_30s.tif D:\ArcMaps\GL_dem_30s.envi
Then I renamed the file to 0001-2526.0001-1248.
Q3. How can I give this dem file with the original resolution to the wps instead of resampling it to 30 arc-seconds? Can I add the original dx and dy whenever I need to add them?
Next I created the following index file for the data:
type = continuous
signed = yes
projection = regular_ll
dx = 0.00833333
dy = 0.00833333
known_x = 1.0
known_y = 1.0
known_lat = 45.579165
known_lon = -82.688335
wordsize=2
tile_x = 2526
tile_y=1248
tile_z=1
missing_value = 0
units="meter"
interp_option = default:average_gcell(4.0)+four_pt+average_4pt
rel_path = default:/DEM/hydrosheds_30s/
description="DEM"
And this is my namelist.wps:
&share
wrf_core = 'ARW',
max_dom = 1,
start_date = '2000-01-01_00:00:00'
end_date = '2000-12-31_21:00:00'
interval_seconds = 31611600
io_form_geogrid = 2,
/
&geogrid
parent_id = 1, 1,
!
!!!!!!!!!!!!!!!!!!!!!!!!!!!! IMPORTANT NOTE !!!!!!!!!!!!!!!!!!!!!!!!!!!!
! The default datasets used to produce the HGT_M, GREENFRAC,
! and LU_INDEX/LANDUSEF fields have changed in WPS v3.8. The HGT_M field
! is now interpolated from 30-arc-second USGS GMTED2010, the GREENFRAC
! field is interpolated from MODIS FPAR, and the LU_INDEX/LANDUSEF fields
! are interpolated from 21-class MODIS.
!
! To match the output given by the default namelist.wps in WPS v3.7.1,
! the following setting for geog_data_res may be used:
!
! geog_data_res = 'gtopo_10m+usgs_10m+nesdis_greenfrac+10m','gtopo_2m+usgs_2m+nesdis_greenfrac+2m',
!
!!!!!!!!!!!!!!!!!!!!!!!!!!!! IMPORTANT NOTE !!!!!!!!!!!!!!!!!!!!!!!!!!!!
!
geog_data_res = 'default','default',
dx = 0.00833333,
dy = 0.00833333,
map_proj = 'lat-lon',
ref_lat = 45.579165,
ref_lon = -82.688335,
stand_lon = 82.688335,
geog_data_path = '/home/mel1389/GRIP/'
/
&ungrib
out_format = 'WPS',
prefix = 'FILE',
/
&metgrid
fg_name = 'FILE'
io_form_metgrid = 2,
/
And my GEOGRID.TBL:
# See options.txt for a (somewhat up to date) list of the
# options that may be specified here.
===============================
name = HGT_M
priority = 1
dest_type = continuous
smooth_option = smth-desmth_special; smooth_passes=1
fill_missing=0.
interp_option = default:average_gcell(4.0)+four_pt+average_4pt
rel_path = default:/DEM/hydrosheds_30s/
===============================
In the above namelist.wps, I gave the "stand_lon" as "-ref_lon" based on the WPS documentation as the case study is in N.H. Q4. Am I right?
Q5. Is the size of my input file, OK? My tile_x is 2526, which is more than 1200 than the usual wps files, and my tile_y is 1248, which makes the whole shape a rectangle, not a square, or do I have to create smaller files? Q6. Does the "gdal_translate" command, automatically fill the outside of the clipped tiff file with NAs? My tiff file has been clipped for my region.
Q7. What does "tile_bdr" stand for? I didn't define the parameters, so probably the default (zero) has been picked. Although in WPS examples, it was given, three. Do I need to define it?
Q8. About the "wordsize" parameter, my tile_x*tile_y is equal to 3152448, while the final file size is 6157 KB, which means each grid has almost 2 bytes. Is giving wordsize=2, OK?
I am looking forward to hearing from you.
Please do not hesitate to email me.
Regards,
Melika
I have created one of the inputs of the geogrid and wanted to create the geogrid file for that specific input to make sure if the projections and everything is fine or not. Still, after running geogrid.exe, I am getting the error that there is not enough virtual memory, which I think is not because of not having enough CPU or memory because, in my last run, I gave it 32 cores with almost 32 Gb per core. It gave me the same error, so I think it must be something wrong with the procedure I have done until now. Q1. Usually, how many cores with how much memory per each core is needed for running the geogrid.exe? Q2. Can I run the geogrid.exe file multiple times to check the procedure and each time add more parameters to it?
I am adding all my steps to make sure I haven't missed anything:
The input data is a three arc-seconds Hydrosheds DEM which using ArcMap, after downloading the data and giving the wps84 as the geographical information system, I resampled the grids to a 30 arc-seconds grid. Then I export it as a tiff file, and using the following command; I saved it as an ENVI file.
gdal_translate -of ENVI -co INTERLEAVE=BSQ D:\ArcMaps\GL_dem_30s.tif D:\ArcMaps\GL_dem_30s.envi
Then I renamed the file to 0001-2526.0001-1248.
Q3. How can I give this dem file with the original resolution to the wps instead of resampling it to 30 arc-seconds? Can I add the original dx and dy whenever I need to add them?
Next I created the following index file for the data:
type = continuous
signed = yes
projection = regular_ll
dx = 0.00833333
dy = 0.00833333
known_x = 1.0
known_y = 1.0
known_lat = 45.579165
known_lon = -82.688335
wordsize=2
tile_x = 2526
tile_y=1248
tile_z=1
missing_value = 0
units="meter"
interp_option = default:average_gcell(4.0)+four_pt+average_4pt
rel_path = default:/DEM/hydrosheds_30s/
description="DEM"
And this is my namelist.wps:
&share
wrf_core = 'ARW',
max_dom = 1,
start_date = '2000-01-01_00:00:00'
end_date = '2000-12-31_21:00:00'
interval_seconds = 31611600
io_form_geogrid = 2,
/
&geogrid
parent_id = 1, 1,
!
!!!!!!!!!!!!!!!!!!!!!!!!!!!! IMPORTANT NOTE !!!!!!!!!!!!!!!!!!!!!!!!!!!!
! The default datasets used to produce the HGT_M, GREENFRAC,
! and LU_INDEX/LANDUSEF fields have changed in WPS v3.8. The HGT_M field
! is now interpolated from 30-arc-second USGS GMTED2010, the GREENFRAC
! field is interpolated from MODIS FPAR, and the LU_INDEX/LANDUSEF fields
! are interpolated from 21-class MODIS.
!
! To match the output given by the default namelist.wps in WPS v3.7.1,
! the following setting for geog_data_res may be used:
!
! geog_data_res = 'gtopo_10m+usgs_10m+nesdis_greenfrac+10m','gtopo_2m+usgs_2m+nesdis_greenfrac+2m',
!
!!!!!!!!!!!!!!!!!!!!!!!!!!!! IMPORTANT NOTE !!!!!!!!!!!!!!!!!!!!!!!!!!!!
!
geog_data_res = 'default','default',
dx = 0.00833333,
dy = 0.00833333,
map_proj = 'lat-lon',
ref_lat = 45.579165,
ref_lon = -82.688335,
stand_lon = 82.688335,
geog_data_path = '/home/mel1389/GRIP/'
/
&ungrib
out_format = 'WPS',
prefix = 'FILE',
/
&metgrid
fg_name = 'FILE'
io_form_metgrid = 2,
/
And my GEOGRID.TBL:
# See options.txt for a (somewhat up to date) list of the
# options that may be specified here.
===============================
name = HGT_M
priority = 1
dest_type = continuous
smooth_option = smth-desmth_special; smooth_passes=1
fill_missing=0.
interp_option = default:average_gcell(4.0)+four_pt+average_4pt
rel_path = default:/DEM/hydrosheds_30s/
===============================
In the above namelist.wps, I gave the "stand_lon" as "-ref_lon" based on the WPS documentation as the case study is in N.H. Q4. Am I right?
Q5. Is the size of my input file, OK? My tile_x is 2526, which is more than 1200 than the usual wps files, and my tile_y is 1248, which makes the whole shape a rectangle, not a square, or do I have to create smaller files? Q6. Does the "gdal_translate" command, automatically fill the outside of the clipped tiff file with NAs? My tiff file has been clipped for my region.
Q7. What does "tile_bdr" stand for? I didn't define the parameters, so probably the default (zero) has been picked. Although in WPS examples, it was given, three. Do I need to define it?
Q8. About the "wordsize" parameter, my tile_x*tile_y is equal to 3152448, while the final file size is 6157 KB, which means each grid has almost 2 bytes. Is giving wordsize=2, OK?
I am looking forward to hearing from you.
Please do not hesitate to email me.
Regards,
Melika