nc文件转cad文件,答案满意追分

nc文件转cad文件,答案满意追分,第1张

1)在FastPLOT中把NC套料文件读入,转到FastCAM中进行编辑,最后保存为DXF或DWG文件格式即可。

2)在FastPLOT中读入NC套料文件,选择“NC工具—>转换到DXF”功能,进行套料文件到DXF文件的格式转换,进行保存即可。

3)在FastNEST中,把文件类型改为“NC—>DXF”,在输出时,就可以把相关的套料文件转换成DXF文件类型了。

给你一个小程序,是用perl写的,然后funny转成了exe文件,你可以用它生成ctl,但生成的ctl文件还需要自己去掉这个程序强制添加上去的一些信息,然后,你用gribmap.exe生成index文件,就可以显示了。

这个zip包里有原始的perl程序,转好的exe文件和 gribmap.exe三个文件。

C:\drawing\ncep-monthly\ex>grib2ctl -i prs.grib.mean.y1980>y1980.ctl Using NCEP reanalysis table, see -ncep_opn, -ncep_rean options Using NCEP reanalysis table, see -ncep_opn, -ncep_rean options

C:\drawing\ncep-monthly\ex>gribmap -i y1980.ctl Open Error: Unknown keyword in description file -->The invalid description file record is:

-->this exe file was created with the evaluation version of perl2exe.

The data file was not opened. File name is: y1980.ctl

"Using NCEP reanalysis table, see -ncep_opn, -ncep_rean options" 就是说你应该用 -ncep_opn 或 -ncep_rean 的选项,具体看帮助

下面就不用说了,ctl都没有形成,自然不行的了

Hi,funny Thanks!

错误与“ -ncep_opn, -ncep_rean options”无关,是ctl中endvars后“-->this exe file was created with the evaluation version of perl2exe.”的这句话作怪,删掉后可正常得到idx。

=========

D:\PCGrADS\win32>grib2ctl E:\。。。\air2m.mon.mean.nc >air2m.ctl 显示的信息如下: Big problem:

#either e:\ncep\nc\air2m.mon.mean.nc is missing or not a grib file or wgrib is not on your path

可这个人家告诉我确实是格点文件啊 ================

这个文件是格点文件,但不是grib码文件,直接用sdfopen 文件名就可以了。

#我在DOS里面用命令C:\Program Files\PCGrADS\win32>grib2ctl.exe grib_file 为什么不能生成grib_file.ctl?请各位前辈指点。 [这个贴子最后由tibet在 2004/06/30 04:13pm 编辑]

C:\Program Files\PCGrADS\win32>grib2ctl grib_file >grib_file.ctl or

gs>!grib2ctl grib_file >grib_file.ctl

#请教个问题,如何形成几个时次在一个文件中的ctl 和idex

请参考grads中文手册。 ctl文件中可以设置一个参数 options template。生成一个时次的ctl之后自己编辑修改ctl。不然,把所有时次都写一个grib文件中。

'reinit'

'sdfopen d:\zhj\slp.1948.nc' 'set lon 120 240' 'set lat 20 60' 'set lev 0' 'set t 289 366' 'set gxout fwrite'

'set fwrite d:\zhj\slp.grd' 'd slp'

'disable fwrite'

写成.grd文件再写一个.ctl文件就可以了 不过是不是有点麻烦

#各位前辈

我最近才接触到grads ,现在用的是.nc格式的ncep reanalysis资料 看了前面的贴子,还是有很多不太明白的,现在我用sdfopen可以打开资料 也可以画图,但是怎么能生成.ctl文件呢.希望能说的清楚一些 非常感谢

你这个是格点资料 直接用sdfopen读就可以了,nc文件自带描述文件的,不需要你编ctl。要是你把nc

资料转化成grd格式的再画图就需要编写ctl了

D:\PCGrADS\win32e>gribmap -i hhca50.ctl Open Error: Data file type invalid

-->The invalid description file record is: -->options yrev

The data file was not opened. File name is: hhca50.ctl

我用girbmap命令生成idx时候,会提示这样的错误,是怎么回事啊?


欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/tougao/8145379.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2023-04-13
下一篇 2023-04-13

发表评论

登录后才能评论

评论列表(0条)

保存