Dear Guys,
Could anyone tell me how to change the unit of x_rho and y_rho from "meter" to "degree" in output files of ROMS "ocean_avg.nc and ocean_his.nc" ?
Thank you very much
PV-Sy
Change the unit of x_rho from "meter" to "degree"
Re: Change the unit of x_rho from "meter" to "degree"
If you set spherical to True, you should get lat_rho and lon_rho instead, in units of degrees. Spherical is set in either the grid file or in ana_grid.
Re: Change the unit of x_rho from "meter" to "degree"
Great comment. It done
Thank you very much
Thank you very much
Re: Change the unit of x_rho from "meter" to "degree"
Dear Guys,
I still get problem with changing the coordinate
1. I set spherical to be True in /Functionals/ana_grid.h. The x_rho & y_rho changed to lon_rho & lat_rho but zero value in roms_avg.nc & roms_his.nc.
2. In the gird file I always set spherical to True. However, the x_rho & y_rho still exist in roms_avg.nc & roms_his.nc if I not set in ana_grid.h
Could anyone give me further comment?
Thank you very much
I still get problem with changing the coordinate
1. I set spherical to be True in /Functionals/ana_grid.h. The x_rho & y_rho changed to lon_rho & lat_rho but zero value in roms_avg.nc & roms_his.nc.
2. In the gird file I always set spherical to True. However, the x_rho & y_rho still exist in roms_avg.nc & roms_his.nc if I not set in ana_grid.h
Could anyone give me further comment?
Thank you very much
Re: Change the unit of x_rho from "meter" to "degree"
If you set ANA_GRID, it will call ana_grid and use grid information from there. If you don't set ANA_GRID, it will read your grid file and use information from it. It seems like you should undefine ANA_GRID.
Re: Change the unit of x_rho from "meter" to "degree"
Thank you very much for your useful comment. It work now