0

I am working with Regional Climate data that were provided in a rotated pole grid format. Using PROJ4 I can convert these coordinates to lat/lon using this command line $ proj -m 57.295779506 +proj=ob_tran +o_proj=latlon +o_lon_p=83 +o_lat_p=42.5 +lon_0=180 I have created an ASCII file with the coordinates of all the grid cells ifile.txt and an empty file for the output ofile.txt

When I use $ proj -m 57.295779506 +proj=ob_tran +o_proj=latlon +o_lon_p=83 +o_lat_p=42.5 +lon_0=180 ifile.txt ofile.txt

I get the transformed coordinates printing to the screen but not to ofile.txt. Can someone suggest how I can fix my command line?

Thank you for your time

4

1 回答 1

0

proj仅将输入文件作为其参数。您需要将标准输出重定向到您的文件:

$ proj -m 57.295779506 +proj=ob_tran +o_proj=latlon +o_lon_p=83 +o_lat_p=42.5 +lon_0=180 ifile.txt > ofile.txt

如果你想打印到标准输出和文件,你可以做

$ proj ... | tee ofile.txt
于 2014-04-04T08:05:46.840 回答