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

convert data to chunk stucture in cam4

Dear all,      I have read some variables(eg:ua1(144,96,26,1))  from a netcdf file,these variables should be converted to the "chunk" structure,so how can I  convert  these variables(eg:u(144,96,26,1)) to the chunk structure(u(i,k)) ?I have read this poster http://bb.cgd.ucar.edu/node/1002286, but I can't understand better,can you enxplain me in detail ? Thank you ! 
 
or should I use this in physpkg.F90do c = begchunk,endchunk        ncol = phys_state(c)%ncol        call get_lon_all_p(c, ncol, lons)        call get_lat_all_p(c, ncol, lats)        do k=1,pver          do i=1,ncol             ic = lons(i)             jc = lats(i)             ua1(i,k) = u_A1(ic,jc,k,1)             va1(i,k) = v_A1(ic,jc,k,1)             ta1(i,k) = t_A1(ic,jc,k,1)             qa1(i,k) = q_A1(ic,jc,k,1)          enddo        enddo     enddoThank you!
 
or should I use this in physpkg.F90do c = begchunk,endchunk        ncol = phys_state(c)%ncol        call get_lon_all_p(c, ncol, lons)        call get_lat_all_p(c, ncol, lats)        do k=1,pver          do i=1,ncol             ic = lons(i)             jc = lats(i)             ua1(i,k) = u_A1(ic,jc,k,1)             va1(i,k) = v_A1(ic,jc,k,1)             ta1(i,k) = t_A1(ic,jc,k,1)             qa1(i,k) = q_A1(ic,jc,k,1)          enddo        enddo     enddoThank you!
 
or should I use this in physpkg.F90do c = begchunk,endchunk        ncol = phys_state(c)%ncol        call get_lon_all_p(c, ncol, lons)        call get_lat_all_p(c, ncol, lats)        do k=1,pver          do i=1,ncol             ic = lons(i)             jc = lats(i)             ua1(i,k) = u_A1(ic,jc,k,1)             va1(i,k) = v_A1(ic,jc,k,1)             ta1(i,k) = t_A1(ic,jc,k,1)             qa1(i,k) = q_A1(ic,jc,k,1)          enddo        enddo     enddoThank you!
 
Top