Ocean Modeling Discussion

ROMS/TOMS

Search for:
It is currently Mon Jul 22, 2019 6:29 pm




Post new topic Reply to topic  [ 2 posts ] 

All times are UTC

Author Message
 Post subject: temperature
PostPosted: Wed Jun 27, 2018 6:16 am 
Offline

Joined: Wed May 30, 2018 3:18 pm
Posts: 6
Location: Ghent university
Hello everybody,
I used the Ecmwf data to create the forcing file, but I got unusual values in the coastal region and the temperature is high in the regions, I have read the previous posts and I understand I should extrapolate the data because the land-sea mask doesn't match with the grid file,
I did some attempts with cdo and ncl to extrapolate them but I did not succeed,
I am very very new to modeling, I would be grateful if you could tell me the easiest way to do that.

I am looking forward to any suggestions.
Best Regards,
Sara


Top
 Profile  
Reply with quote  
 Post subject: Re: temperature
PostPosted: Wed Jun 27, 2018 5:37 pm 
Offline
User avatar

Joined: Wed Jul 02, 2003 5:29 pm
Posts: 3633
Location: IMS/UAF, USA
My previous reply on this included the link to sosie. An example of using it (for MERRA):
Code:
#!/bin/bash

SOSIE=/home/raphael/TOOLS/sosie-rutgers/bin
dirin=/t3/workdir/raphael/MERRA/2014
dirout=/t3/workdir/raphael/MERRA/2014/drowned

ybeg=2014
yend=2014

# build the list of variables to proceed
list_var=$( ls $dirin | grep $ybeg | sed -e "s/MERRA_//" -e "s/_$ybeg.nc//" | awk '{ print $1 }' )

for year in $( seq $ybeg $yend ) ; do

    for var in $list_var ; do

        filein=MERRA_${var}_$year.nc
        timevar=$( ncdump -h $dirin/$filein | grep time | head -1 | awk '{ print $1 }' )
        ncvar=$( ncdump -h $dirin/$filein | grep float | tail -1 | sed -e "s/(/ /" | awk '{ print $2 }' )

        echo Processing variable $ncvar in file $filein

        $SOSIE/mask_drown_field_roms.x -D -i $dirin/$filein -v $ncvar -t $timevar \
                                     -m $HOME/STORAGE/MERRA/mask_MERRA.nc -o $dirout/drowned_$filein



    done

done


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group