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

SpinupStability_v10.ncl error

tenghao

tenghao
New Member
I tried to use ncl SpinupStability_v10.ncl to judge whether the operation has reached a balanced state, but it failed. Prompt:



fatal:conform_dims: The array to be conformed must have the same number of dimensions as indicated by the length of the last argument

fatal:["Execute.c":8637]:Execute: Error occurred at or near line 229 in file SpinupStability_v10.ncl




I have used the atmospheric driving data for three years (2010-2012) and saved it as a result every month. How can I solve this error and make SpinupStability_v10.ncl work normally?




In addition, I saw in the forum that it must be saved as a file every month or every year before it can be run. How to change this situation, for example, save it in an h0 file for 12 months, read the monthly results in this file and run SpinupStability_v10.ncl.
 

Attachments

  • SpinupStability_v10.ncl.txt.txt
    33.3 KB · Views: 2
  • user_nl_clm.txt.txt
    1.7 KB · Views: 2

oleson

Keith Oleson
CSEG and Liaisons
Staff member
How many times have your cycled over the atmospheric data? As the comment in the script says:

You need a run consisting of at least three cycles of atmospheric data.

Is this a single-point simulation?

The script supports either monthly history files, one file per month, or annual average history files. If you want to add a third option, you'lll have to modify the script yourself.
 

oleson

Keith Oleson
CSEG and Liaisons
Staff member
It looks like the error is associated with this line:

landareaC = conform_dims(dimsizes(totecosysc),landarea,(/1/)) ; conforming dimensions of landarea to totecosysc

For the single point simulation option you've selected, the variables landfrac and area (which are used to calculate landarea) should have a single dimension named lndgrid, and the variable TOTECOSYSC should have the dimensions (time,lndgrid).
 

tenghao

tenghao
New Member
I'm running regional simulation, but I set region=”SPT ".Is this the cause of the problem? For regional simulation, should region be set to Arctic?

My atmospheric forcing data is from 2010 to 2012. I set subper=3, and output the result file for 108 months, which is saved as a file every month, but it has not been run yet.The simulation time should be at least three times as long as the atmospheric forcing data, right?
 

oleson

Keith Oleson
CSEG and Liaisons
Staff member
Yes, that's probably the problem. You can try Arctic and set your lat/lons for your region appropriately, although I don't think that option has been tested for awhile, See the discussion beginning Dec 7, 2023 in this post for some possibly helpful information regarding modifying the script for regional runs:


Yes, the simulation time should be at least three times as long as the atmospheric forcing you are looping over.
 
Top