The work is still in a development fork.
- git clone --recursive -b feature/inline https://github.com/uturuncoglu/ufs-weather-model.git
- cd ufs-weather-model/tests
cdeps: | |
execution: | |
executable: /usr/bin/date | |
batchargs: | |
nodes: 1 | |
stdout: /work2/noaa/nems/tufuk/COASTAL/ufs-coastal-app/sorc/uwtools/runscript.out | |
walltime: "00:05:00" | |
atm_in: | |
update_values: | |
datm_nml: |
The work is still in a development fork.
load "$NCARG_ROOT/lib/ncarg/nclscripts/contrib/ut_string.ncl" | |
procedure add_box(wks,plot,ll[2],width,cname,oval) | |
local xbox, ybox, gsres, dumstr | |
begin | |
xbox = (/ll(0),ll(0)+width,ll(0)+width,ll(0),ll(0)/) | |
ybox = (/ll(1),ll(1),ll(1)+width,ll(1)+width,ll(1)/) | |
gsres = True | |
gsres@gsFillColor = cname |
begin | |
;--- arguments --- | |
nx = 720 | |
ny = 600 | |
;--- get list of files --- | |
files = systemfunc("ls -al ufs.hafs.cpl.hi.* | awk '{print $9}' | grep -v '_reshp.nc'") | |
nfiles = dimsizes(files) | |
;--- loop over files and reshape atm ones --- |
begin | |
;--- arguments --- | |
vname = "zeta" | |
vname = "uwind_speed" | |
vname = "vwind_speed" | |
tindx = 71 | |
;--- open file --- | |
nc = addfile("sci_0001.nc", "r") |
To run the script just type following:
python mesh_create.py --ifile data.nc
The script requires numpy, xarray, dask and also datetime modules. The required data file can be found in the following repository
# install docker | |
https://www.docker.com | |
# create container and prepare for development | |
docker run -it ubuntu:latest | |
apt-get -qq update | |
apt-get -qq install tar unzip file gringo | |
apt-get -qq install build-essential binutils-dev gfortran | |
apt-get -qq install python3-dev python3-pip python3-boto3 python3-yaml |
% commands to use this script | |
% grid.txt: | |
% # | |
% # gridID 1 | |
% # | |
% gridtype = lonlat | |
% gridsize = 129600 | |
% datatype = float | |
% xsize = 360 | |
% ysize = 360 |
#!/bin/bash | |
#PBS -A P93300606 | |
#PBS -N mesh | |
#PBS -j oe | |
#PBS -q premium | |
#PBS -l walltime=03:00:00 | |
#PBS -l select=1:mpiprocs=36 | |
#PBS -o log.out | |
#export TMPDIR=/glade/scratch/$USER/temp |
; Note for user: | |
; The orog.tile*.nc files can be generated by simply using following command | |
; for each tile of surface output. | |
; ncks -v orog sfcf000.tile1.nc orog.tile1.nc | |
begin | |
;--- arguments --- | |
ntiles = 6 | |
did = 0 | |
diff = True | |
mask_land = False |