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

Regarding make change in domain file

Status
Not open for further replies.

rajkmsaini

Dr. Raj Saini
Member
Dear CESM USER,

Actually, I am new to use this CESM (cesm1_2_2) and exploring things.

Problem description:

I have a domain file . i.e.

domain.lnd.fv0.9x1.25_gx1v6.090309.nc

I want to do some operation on that for given below:

1.
mask (treat the particular region (lon1= 65, lon2=88, lat1=6, lat2=18) land fraction point as ocean by providing the ocean value)

2.
frac (replace land fraction point of particular region (lon1= 65, lon2=88, lat1=6, lat2=18) with ocean value)




Please kindly help me with how I can start solving this issue.

And which tool is suitable for this. Please let me know.

Thanks in advance.
 

erik

Erik Kluzek
CSEG and Liaisons
Staff member
There are lot's of different tools that can read a NetCDF file and make the changes that you talk about. You could use one of the NetCDF Operator (NCO) tools (ncedit). Or you could use a language that can read NetCDF like NCL (NCAR Command Language) or Python, or Perl, or any number of scripting languages, as well as a compiled language like FORTRAN or C++. See the NetCDF documentation website at unidata regarding this.

If you modify the domain file for the land, if you are running a fully coupled case, you'll have to make the complementary change in the domain file for the ocean. If you are just running with CLM and stub or data ocean, just changing the one file will be sufficient.
 
Status
Not open for further replies.
Top