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

(shr_ncread_domain) ERROR: var does not exist (lon), (Error in DATA sizes)

AquaTech_007

AquaTech_007
New Member
Hi,

I am running CLM5 and trying to prescribe the soil moisture data by using the soil moisture stream in user_nl_clm (given below) and i am getting this error (ERROR: (shr_ncread_domain) ERROR var does not exist lon) and invalid dimension ID. There is might be problem with the soil moisture NetCDF. All the variables are mentioned in the nc file. I have prepared the soil moisture nc file according to the meteorological forcing data nc file. The input meteorological data is hourly so i have also used the soil moisture data hourly with 20 soil layers for the three years.

I am attaching the cesm log document and soil moisture NetCDF google drive link because of the size restriction not able to upload it here( PrescribeSM.nc ) with this thread. If anyone can provide the insight, thank you in advance.

use_soil_moisture_streams = .true.
&soil_moisture_streams
stream_year_first_soilm = 2021
stream_year_last_soilm = 2023
model_year_align_soilm = 2021
soilm_tintalgo = 'linear'
soilm_offset = 0
soilm_ignore_data_if_missing = .true.
stream_fldfilename_soilm = '/home/hydrology/simulations/prescribe_data/PrescribeSM.nc'
 

Attachments

  • cesm.log.250704-132050.txt
    8.3 KB · Views: 2

slevis

Moderator
Staff member
@AquaTech_007 you are probably correct that something is wrong with the netcdf file. The error message does not give enough information for me to help you, so you will need to troubleshoot. I searched the forums for "soil stream" and found examples where users used the same model functionality and had to troubleshoot:
and a few more.
 

AquaTech_007

AquaTech_007
New Member
Thank you @slevis for the references. It helped alot.

The issue has been resolved. The NetCDF file requires the dimensions for the soil moisture data to be in the order of (lon, lat, time, nlevsoi). I tested it with data for 10 soil layers, and it worked.

Can you please help change the thread title or tell me how to do it? I have written a name by chance it should be, ((shr_ncread_domain) ERROR: var does not exist (lon)) or "(Error in DATA sizes)." It would be helpful if the title could be updated so others in the community with same issue can find it.
 
Top