[Thread Prev][Thread Next][Index]

Re: [ferret_users] gridding problem



Hello everyone,

Ansley helped me find out what is missing in my script, here is the complete script

SET MEMORY/SIZE=200
use inputdata.nc
SET AXIS/MODULO `temp,RETURN=xaxis`
use  tavg.02000.02.01_ymonavg.nc
SET AXIS/MODULO `ts1,RETURN=xaxis`
let ts1_new = TS1[gt=temp[d=1]@asn,gxy=temp[d=1]@ave]
save/clobber/file=test_1.nc ts1_new
quit

thanks

Dian

On Tue, Feb 16, 2010 at 8:40 PM, Ansley Manke <Ansley.B.Manke@xxxxxxxx> wrote:
Hi -
Is the missing part of the regridded data in the x direction? I am guessing that the x axis of one or both grids is not marked as a MODULO axis.  Do both grids have units of degrees on the x axes? You can make sure that the definitions are correct by saying

  use inputdata.nc
  set axis/modulo/units=degrees `temp,return=xaxis`

  use outputdata.nc
  set axis/modulo/units=degrees `ts1,return=xaxis`


See if that helps.  If so, would you please write back to the Users List so that the question there has an answer?  Thanks-

Ansley



dian handiani wrote:
Hi Ansley,
Sorry, actually that e-mail is incomplete. I want to send complete email again just now. Here it is,

this is my script:
SET MEMORY/SIZE=200
use inputdata.nc
use outputdata.nc
let ts1_new = TS1[gt=temp[d=1]@asn,gxy=temp[
d=1]@ave]
save/clobber/file=test_1.nc ts1_new
quit

Here the information of inputdata.nc
   1> ./inputdata.nc  (default)
 name     title                             I         J         K         L
 TEMP     monthly mean temperature         1:720     1:360     ...       1:12
 PREC     monthly total precipitation      1:720     1:360     ...       1:12
 SUN      mean monthly percent of possibl  1:720     1:360     ...       1:12
 WHC      soil water holding capacity      1:720     1:360     1:2       ...
 PERC     soil water percolation index     1:720     1:360     1:2       ...
 TMIN     annual absolute mimimum tempera  1:720     1:360     ...       ...


outputdata.nc
   2> ./outputdata.nc  (default)
 name       title                         
    I         J         K         L
 YEAR     year                             ...       ...       ...       1:12
 MONTH   month                          ...       ...       ...       1:12
 DAY        day                              ...       ...       ...       1:12
 HOUR      hour                            ...       ...       ...       1:12
 MINUTE   minute                         ...       ...       ...       1:12
 SECOND second                         ...       ...       ...       1:12
 PERIOD  averaging period             ...       ...       ...       1:12
TS1          soil temperature       1:100     1:100     ...       1:12
 
and this is the gridding result

 3> ./test_1.nc  (default)
 name     title                                                          I         J         K         L
 TS1_NEW  TS1[GT=TEMP[D=11]@ASN            1:720     1:360     ...       1:12

The result showed dimension (360x720) as I wanted, but actually when I plotted is only half gridded.
Do you have any idea what happen? do I have to define the axis? how to do that?. Thanks.

Dian
Geoscience Departement
University of Bremen,Germany  



On Tue, Feb 16, 2010 at 7:13 PM, Ansley Manke <Ansley.B.Manke@xxxxxxxx> wrote:
Hello,
I don't see anything wrong with what you have done. What happens when you try this?  And, what does the grid of the data in outputdata.nc look like?

Ansley


dian handiani wrote:
Hello everyone,

I'm new user in Ferret, I was trying to grid data from dimension 100x100 to 360x720. Both data are input and output from my model. I written a script

SET MEMORY/SIZE=200
use inputdata.nc
use outputdata.nc
let ts1_new = TS1[gt=temp[d=1]@asn,gxy=temp[d=1]@ave]
save/clobber/file=test_1.nc ts1_new
quit

Here the information of inputdata.nc
   1> ./inputdata.nc  (default)
 name     title                             I         J         K         L
 TEMP     monthly mean temperature         1:720     1:360     ...       1:12
 PREC     monthly total precipitation      1:720     1:360     ...       1:12
 SUN      mean monthly percent of possibl  1:720     1:360     ...       1:12
 WHC      soil water holding capacity      1:720     1:360     1:2       ...
 PERC     soil water percolation index     1:720     1:360     1:2       ...
 TMIN     annual absolute mimimum tempera  1:720     1:360     ...       ...




[Thread Prev][Thread Next][Index]

Contact Us
Dept of Commerce / NOAA / OAR / PMEL / TMAP

Privacy Policy | Disclaimer | Accessibility Statement