[Thread Prev][Thread Next][Index]

Re: [ferret_users] How to fix Ambiguous coordinates on X axis & Y axis



I think you can just use the regrid command.
For exemple:

let new_variable = var[d=file2,G=var[d=file1]@NRST]

So the variable of the file 2 will be record with the nearest coordinate of the variable in the file 1.


2013/12/5 Syktus Jozef <Jozef.Syktus@xxxxxxxxxxxxxxxxxxxxxxxxx>

Dear ferret users,

 

I need your help with fixing X and Y axis in data files. I have two netcdf files which have slightly different X and Y coordinates, they are the same size

dimensions:

        lat = 301 ;

        lon = 451 ;

 

However one has

lat: -60, -59.8, -59.6, -59.4, -59.2, -59, -58.8, -58.6, -58.4, -58.2, -58,

lon = 90, 90.2, 90.4, 90.6

 

the other has

lat = -60, -59.7999992370605, -59.5999984741211, -59.4000015258789,

lon = 90, 90.1999969482422, 90.4000015258789, 90.5999984741211

 

How do I change the second file to have the same  X & Y as in first file.

 

Thanks

 

______________________________________________________________________

Jozef Syktus

Science Leader, Climate Adaptation

Telephone: 07 3170 5491 Mobile: 0402 894 607

Email:jozef.syktus@xxxxxxxxxxxxxxxxxxxxxxxxx

Department of Science, Information Technology, Innovation and the Arts -- Queensland Government

Ecosciences Precinct, Level 3 B-West, 41 Boggo Rd, Dutton Park, Queensland 4102

Postal: ESP, DSITIA -Science Delivery, GPO Box 5078, Brisbane 4001

Courier Address: Basement 3 Loading Dock, off Joe Baker Street, Dutton Park, Qld 4102

_________________________________________________________________________________

 

***************************** Disclaimer  *****************************

The contents of this electronic message and any attachments are intended only for the addressee and may contain privileged or confidential information. They may only be used for the purposes for which they were supplied. If you are not the addressee, you are notified that any transmission, distribution, downloading, printing or photocopying of the contents of this message or attachments is strictly prohibited.
The privilege of confidentiality attached to this message and attachments is not waived, lost or destroyed by reason of mistaken delivery to you. If you receive this message in error please notify the sender by return e-mail or telephone.

Please note: the Department of Science, Information Technology, Innovation and the Arts carries out automatic software scanning, filtering and blocking of E-mails and attachments (including emails of a personal nature) for detection of viruses, malicious code, SPAM, executable programs or content it deems unacceptable. All reasonable precautions will be taken to respect the privacy of individuals in accordance with the Information Privacy Act 2009 (Qld). Personal information will only be used for official purposes, e.g. monitoring Departmental Personnel's compliance with Departmental Policies. Personal information will not be divulged or disclosed to others, unless authorised or required by Departmental Policy and/or law.




--
----------------------------------------------------
Nicolas Freychet
Postdoc Reseach Fellow at RCEC
Academia Sinica
----------------------------------------------------

[Thread Prev][Thread Next][Index]
Contact Us
Dept of Commerce / NOAA / OAR / PMEL / Ferret

Privacy Policy | Disclaimer | Accessibility Statement