Dear Sam @slevis
Thank you for your helpful comment. I think I am making some progress since I am seeing new errors:
This is what I did in my system (Narval):
then:
./mkmapdata.sh --gridfile /home/USER/my_cesm_sandbox/components/clm/tools/mkmapgrids/SCRIPgrid_1x1_nomask.nc --res 1x1
and it creates this file (map_0.5x0.5_AVHRR_to_1x1_nomask_aave_da_c250210.nc) but there is also an error:
I tried commenting out this file but it shows other errors for other files too. So I dont think my approach is correct and I guess I should ask for other files too (?)
in the line ~250 of mkmapdata.sh script this is written:
right now we have the first one. But it shows the error of "Input grid file does NOT exist" for the rest of this list.
Thank you for your helpful comment. I think I am making some progress since I am seeing new errors:
This is what I did in my system (Narval):
Code:
cd projects/def-XXX/USER/inputdata/lnd/clm2/mappingdata/
mkdir grids
cd grids/
wget https://ftp.cgd.ucar.edu/pub/slevis/for_wvsi3w/SCRIPgrid_0.5x0.5_AVHRR_c110228.nc
cd ~/my_cesm_sandbox/components/clm/tools/mkmapdata
export CSMDATA=/home/USER/projects/def-XXX/USER/inputdata
module load ncl
module load nco
module load StdEnv/2020 intel/2020.1.217 openmpi/4.0.3
module load esmf/8.2.0
export ESMFBIN_PATH=/cvmfs/soft.computecanada.ca/easybuild/software/2020/avx2/MPI/intel2020/openmpi4/esmf/8.2.0/bin
then:
./mkmapdata.sh --gridfile /home/USER/my_cesm_sandbox/components/clm/tools/mkmapgrids/SCRIPgrid_1x1_nomask.nc --res 1x1
and it creates this file (map_0.5x0.5_AVHRR_to_1x1_nomask_aave_da_c250210.nc) but there is also an error:
Code:
./mkmapdata.sh --gridfile /home/USER/my_cesm_sandbox/components/clm/tools/mkmapgrids/SCRIPgrid_1x1_nomask.nc --res 1x1
./mkmapdata.sh
Script to create mapping files required by mksurfdata_map
query command is ./../../bld/queryDefaultNamelist.pl -silent -namelist clmexp -justvalue -options sim_year=2000 -csmdata /home/USER/projects/def-XXX/USER/inputdata
Using user specified scrip grid file: /home/USER/my_cesm_sandbox/components/clm/tools/mkmapgrids/SCRIPgrid_1x1_nomask.nc
Output grid resolution is 1x1
Hostname = narval1.narval.calcul.quebec
Machine narval1.narval.calcul.quebec NOT recognized
Creating mapping file: map_0.5x0.5_AVHRR_to_1x1_nomask_aave_da_c250210.nc
From input grid: /home/USER/projects/def-XXX/USER/inputdata/lnd/clm2/mappingdata/grids/SCRIPgrid_0.5x0.5_AVHRR_c110228.nc
For output grid: /home/USER/my_cesm_sandbox/components/clm/tools/mkmapgrids/SCRIPgrid_1x1_nomask.nc
WARNING: deprecated switch -src_type will be ignored. The file type will be de
tected automatically
WARNING: deprecated switch -dst_type will be ignored. The file type will be de
tected automatically
Starting weight generation with these inputs:
Source File:
/home/USER/projects/def-XXX/USER/inputdata/lnd/clm2/mappingdata/grids/
SCRIPgrid_0.5x0.5_AVHRR_c110228.nc
Destination File:
/home/USER/my_cesm_sandbox/components/clm/tools/mkmapgrids/SCRIPgrid_1x1_noma
sk.nc
Weight File: map_0.5x0.5_AVHRR_to_1x1_nomask_aave_da_c250210.nc
Source File is in SCRIP format
Source Grid is a global grid
Source Grid is a logically rectangular grid
Use the center coordinates of the source grid to do the regrid
Destination File is in SCRIP format
Destination Grid is a global grid
Destination Grid is a logically rectangular grid
Use the center coordinates of the destination grid to do the regrid
Regrid Method: conserve
Pole option: NONE
Ignore unmapped destination points
Line Type: greatcircle
Norm Type: dstarea
Extrap. Method: none
Completed weight generation successfully.
Copyright (C) 1995-2019 - All Rights Reserved
University Corporation for Atmospheric Research
NCAR Command Language Version 6.6.2
The use of this software is governed by a License Agreement.
See http://www.ncl.ucar.edu/ for more details.
(0) map file: map_0.5x0.5_AVHRR_to_1x1_nomask_aave_da_c250210.nc
(0) n_s = 143788 max(row)=62616 max(col)=250143
(0) checking for dups, sorting...
(0) zeroing out any dups...
(0) No duplicate weights to remove from mapping file
Creating mapping file: map_0.5x0.5_MODIS_to_1x1_nomask_aave_da_c250210.nc
From input grid: /home/USER/projects/def-XXX/USER/inputdata/lnd/clm2/mappingdata/grids/SCRIPgrid_0.5x0.5_MODIS_c110228.nc
For output grid: /home/USER/my_cesm_sandbox/components/clm/tools/mkmapgrids/SCRIPgrid_1x1_nomask.nc
Input grid file does NOT exist: /home/USER/projects/def-XXX/USER/inputdata/lnd/clm2/mappingdata/grids/SCRIPgrid_0.5x0.5_MODIS_c110228.nc
I tried commenting out this file but it shows other errors for other files too. So I dont think my approach is correct and I guess I should ask for other files too (?)
in the line ~250 of mkmapdata.sh script this is written:
Code:
grids=( \
"0.5x0.5_AVHRR" \
"0.25x0.25_MODIS" \
"0.5x0.5_MODIS" \
"3x3min_LandScan2004" \
"3x3min_MODISv2" \
"3x3min_MODIS-wCsp" \
"3x3min_USGS" \
"5x5min_nomask" \
"5x5min_IGBP-GSDP" \
"5x5min_ISRIC-WISE" \
"5x5min_ORNL-Soil" \
"10x10min_nomask" \
"10x10min_IGBPmergeICESatGIS" \
"3x3min_GLOBE-Gardner" \
"3x3min_GLOBE-Gardner-mergeGIS" \
"0.9x1.25_GRDC" \
"360x720cru_cruncep" \
"1km-merge-10min_HYDRO1K-merge-nomask" \
)
right now we have the first one. But it shows the error of "Input grid file does NOT exist" for the rest of this list.