Scheduled Downtime
On Tuesday 24 October 2023 @ 5pm MT the forums will be in read only mode in preparation for the downtime. On Wednesday 25 October 2023 @ 5am MT, this website will be down for maintenance and expected to return online later in the morning.
Normal Operations
The forums are back online with normal operations. If you notice any issues or errors related to the forums, please reach out to help@ucar.edu

How to get the ncdata corresponding to 0.47x0.63

Han Lubin

Han Lubin
Member
Hello everyone,

I try to get the output including GRAINC_TO_FOOD with 1/2 degree by CESM2.1.3. The surface file and landuse file corresponding to f05_g17 have been generated, and I run this case with compset HIST_DATM%GSWP3v1_CLM50%BGC-CROP_SICE_SOCN_MOSART_SGLC_SWAV and resolution f05_g17 successfully. In order to compare the difference between CAM and DATM results, I also attempt to get output by this case with HIST_CAM60_CLM50%BGC-CROP_CICE%PRES_DOCN%DOM_MOSART_SGLC_SWAV and f05_g17. But when executing ./case.build --skip-provenance-check, there are some error message ERROR: No default value found for ncdata. I don't find the 32-level data corresponding to 0.47x0.63 in /inputdata/atm/cam/inic/fv/, where should I get such data from?

Maybe, I need to generate CAM initial file corresponding to 0.47x0.63. Unfortunately, an error message occurs to me when I ./interpic -t fv_0.47x0.63.nc cami-mam3_0000-01-01_0.9x1.25_L32_c141031.nc cami-mam3_0000-01-01_0.47x0.63_L32_c230207.nc. driver: ERROR: input variable CLDICE has dimension lev; which is not found in the output file.

Is this caused by a mismatch between fv_0.47x0.63.nc and the input file? How can I solve this problem? Thanks in advance.
 

nusbaume

Jesse Nusbaumer
CSEG and Liaisons
Staff member
Hi Han Lubin,

Apologies for the slow response, but do you know if you are using the "interpic" or "interpic_new" tool? If you are using the "interpic_new" version, then I believe you need to make a copy of your template file that contains the save vertical level information as your cami-mam3_0000-01-01_0.9x1.25_L32_c141031.nc file. According to the README file that is located in the "interpic_new" directory this can be done with the following command(s):

Code:
cp fv_0.47x0.63.nc fv_0.47x0.63_L32.nc
ncks -vhyai,hyam,hybi,hybm cami-mam3_0000-01-01_0.9x1.25_L32_c141031.nc fv_0.47x0.63_L32.nc

After which you should be able to use the interpic tool with your new template file like so:

Code:
./interpic -t fv_0.47x0.63_L32.nc cami-mam3_0000-01-01_0.9x1.25_L32_c141031.nc cami-mam3_0000-01-01_0.47x0.63_L32_c230207.nc

Of course if for some reason that doesn’t work then please let me know.

Thanks, and have a great day!

Jesse
 

Han Lubin

Han Lubin
Member
Hi Jesse,

Thank you so much! According to your reply, I have generated cami-mam3_0000-01-01_0.47x0.63_L32_c230219.nc successfully. Have a great day!
 

Paul

New Member
Hi Jesse,

I have a further question about this. I created a 4x5 degree case with FC2010climo, and I found that the model still works fine using different resolutions in the user_nl_cam. For example, the srf_emis_specifier file is 0.9x1.25, and the ncdata and bnd_topo are 1.9x2.5 (copied from a 1.9x2.5 case).

Does this mean I don't need to interpolate these files (e.g. ncdata, topo, and srf emission) to the case's resolution? The model will interpolate these files automatically like CLM5? How do I check if the model is working fine?

Thank you in advance.
 

Paul

New Member
Sorry, I made some mistakes in my previous statement. The resolution of the ncdata in the model needs to be the same as the case, otherwise it will report an error.
But the resolution of bnd_topo and srf emission files are not consistent and the model still works fine. I am confused about this.
 

Ceil

Member
n order t
Hi Han Lubin,

Apologies for the slow response, but do you know if you are using the "interpic" or "interpic_new" tool? If you are using the "interpic_new" version, then I believe you need to make a copy of your template file that contains the save vertical level information as your cami-mam3_0000-01-01_0.9x1.25_L32_c141031.nc file. According to the README file that is located in the "interpic_new" directory this can be done with the following command(s):

Code:
cp fv_0.47x0.63.nc fv_0.47x0.63_L32.nc
ncks -vhyai,hyam,hybi,hybm cami-mam3_0000-01-01_0.9x1.25_L32_c141031.nc fv_0.47x0.63_L32.nc

After which you should be able to use the interpic tool with your new template file like so:

Code:
./interpic -t fv_0.47x0.63_L32.nc cami-mam3_0000-01-01_0.9x1.25_L32_c141031.nc cami-mam3_0000-01-01_0.47x0.63_L32_c230207.nc

Of course if for some reason that doesn’t work then please let me know.

Thanks, and have a great day!

Jesse
Hi Jesse,

I could not create an executable named "interpic". I tried to run gnumake in the directory components/cam/tools/interpic_new, but I got errors "-bash: gnumake: command not found".
I tried to run the following commands,
../../../../cime/tools/configure --machine betzy --macros-format Makefile --mpilib mpi-serial
. ./.env_mach_specific.sh
gmake
But I got errors "gmake: *** [interpic] Error 1".
 

Ceil

Member
Hi Han Lubin,

Apologies for the slow response, but do you know if you are using the "interpic" or "interpic_new" tool? If you are using the "interpic_new" version, then I believe you need to make a copy of your template file that contains the save vertical level information as your cami-mam3_0000-01-01_0.9x1.25_L32_c141031.nc file. According to the README file that is located in the "interpic_new" directory this can be done with the following command(s):

Code:
cp fv_0.47x0.63.nc fv_0.47x0.63_L32.nc
ncks -vhyai,hyam,hybi,hybm cami-mam3_0000-01-01_0.9x1.25_L32_c141031.nc fv_0.47x0.63_L32.nc

After which you should be able to use the interpic tool with your new template file like so:

Code:
./interpic -t fv_0.47x0.63_L32.nc cami-mam3_0000-01-01_0.9x1.25_L32_c141031.nc cami-mam3_0000-01-01_0.47x0.63_L32_c230207.nc

Of course if for some reason that doesn’t work then please let me know.

Thanks, and have a great day!

Jesse

Hi Jesse,

I have struggled for a long time but I still do not install interpic. I run the following commands, but I always get errors that can be seen in the attached make_log.txt
module purge
module load netCDF-Fortran/4.5.2-iimpi-2020a
cd cesm2.1.3/my_cesm_sandbox/components/cam/tools/interpic_new
vi Makefile #edit the following paths
LIB_NETCDF := /cluster/software/netCDF-Fortran/4.5.2-iimpi-2020a/lib
INC_NETCDF := /cluster/software/netCDF-Fortran/4.5.2-iimpi-2020a/include
gmake

I have tried all methods I know but I failed every time. I sincerely hope to get your help. Many thanks!
 

Attachments

  • make_log.txt
    9.5 KB · Views: 2

xiaoxiaokuishu

Ru Xu
Member
嗨韩鲁宾,

对于响应缓慢,我们深表歉意,但是您知道您使用的是“interpic”还是“interpic_new”工具吗?如果您使用的是“interpic_new”版本,那么我相信您需要复制模板文件,其中包含保存垂直级别信息作为您的 cami-mam3_0000-01-01_0.9x1.25_L32_c141031.nc[/ ICODE] 文件。根据位于“interpic_new”目录中的自述文件,这可以通过以下命令完成: [代码] cp fv_0.47x0.63.nc fv_0.47x0.63_L32.nc ncks -vhyai、hyam、hybi、hybm cami-mam3_0000-01-01_0.9x1.25_L32_c141031.nc fv_0.47x0.63_L32.nc [/代码] 之后您应该能够将 interpic 工具与新模板文件一起使用,如下所示: [代码] ./interpic -t fv_0.47x0.63_L32.nc cami-mam3_0000-01-01_0.9x1.25_L32_c141031.nc cami-mam3_0000-01-01_0.47x0.63_L32_c230207.nc [/代码] 当然,如果由于某种原因不起作用,请告诉我。 谢谢,祝你有美好的一天! 杰西 [/QUOTE] 你好, 当我运行 ncks -vhyai、hyam、hybi、hybm cami-mam3_0000-01-01_0.9x1.25_L32_c141031.nc fv_0.47x0.63_L32.nc 出现错误: ncks:找不到错误文件 cami-mam3_0000-01-01_0.9x1.25_L32_c141031.nc。它不存在于本地文件系统上,也不匹配远程文件名模式(例如,http://foo 或foo.bar.edu:file)。 ncks:提示文件未找到错误通常是由文件名拼写错误、路径不正确、文件丢失或反复无常引起的。请验证所请求文件的拼写和位置。如果文件驻留在可通过“hsi”命令访问的高性能存储系统 (HPSS) 上,则添加 --hpss 选项并重试命令。 你知道这有什么问题吗?
 
Top