This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.
Steve Robischon <address@hidden> writes: > <DIV>Mr. Hartnett,</DIV> > <DIV> </DIV> > <DIV>I am doing some development work for some researchers at the University > of Idaho involving streamflow modelling. They have a submodel that > "downscales" gridded NetCDF formatted NCEP forecast data retrieved > from <SPAN style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman'; > mso-fareast-font-family: 'Times New Roman'; mso-ansi-language: EN-US; > mso-fareast-language: EN-US; mso-bidi-language: AR-SA"><A > href="ftp://ftp.cdc.noaa.gov/Public/jsw/refcst/.">ftp://ftp.cdc.noaa.gov/Public/jsw/refcst/.</A> > The downscaling involves utilizing regression models to predict values at > spatial locations spatially removed from the centroid of the 2-1/2 degree > grid values supplied by the NOAA data. I need to write code > that will FTP pull the appropriate forecast data, read values from a small > subset of the NetCDF data file, and apply the regression models to the > station locations of interest. </SPAN></DIV> > <DIV><SPAN style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman'; > mso-fareast-font-family: 'Times New Roman'; mso-ansi-language: EN-US; > mso-fareast-language: EN-US; mso-bidi-language: AR-SA"></SPAN> </DIV> > <DIV><SPAN style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman'; > mso-fareast-font-family: 'Times New Roman'; mso-ansi-language: EN-US; > mso-fareast-language: EN-US; mso-bidi-language: AR-SA">I have tried to > regster the .dll and add a reference in a Visual Studio .NET > project to the precompiled Windows binary <A > href="http://my.unidata.ucar.edu/content/software/netcdf/binaries.html">(http://my.unidata.ucar.edu/content/software/netcdf/binaries.html</A>), > but have had no success. I can build the .dll from the source files, > but I still can't reference it in a VB.Net project.</SPAN></DIV> > <DIV><SPAN style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman'; > mso-fareast-font-family: 'Times New Roman'; mso-ansi-language: EN-US; > mso-fareast-language: EN-US; mso-bidi-language: AR-SA"></SPAN> </DIV> > <DIV><SPAN style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman'; > mso-fareast-font-family: 'Times New Roman'; mso-ansi-language: EN-US; > mso-fareast-language: EN-US; mso-bidi-language: AR-SA">I saw the posting (<A > href="http://my.unidata.ucar.edu/content/support/help/MailArchives/netcdfgroup-list/msg00534.html">http://my.unidata.ucar.edu/content/support/help/MailArchives/netcdfgroup-list/msg00534.html</A>) > mentioning a VB wrapper class and was wondering whether this class would > allow me to access the NetCDF functionality from within my VB.NET > project. If so, would you be able to provide a copy of the wrapper > class code?</SPAN></DIV> > <DIV><SPAN style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman'; > mso-fareast-font-family: 'Times New Roman'; mso-ansi-language: EN-US; > mso-fareast-language: EN-US; mso-bidi-language: AR-SA"></SPAN> </DIV> > <DIV><SPAN style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman'; > mso-fareast-font-family: 'Times New Roman'; mso-ansi-language: EN-US; > mso-fareast-language: EN-US; mso-bidi-language: AR-SA">I have just begun > working in the .NET environment, and have never before been exposed to > NetCDF. I hope this newbie request is not too far out of line. I > would appreciate any help you could provide.</SPAN></DIV> > <DIV><SPAN style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman'; > mso-fareast-font-family: 'Times New Roman'; mso-ansi-language: EN-US; > mso-fareast-language: EN-US; mso-bidi-language: AR-SA"></SPAN> </DIV> > <DIV><SPAN style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman'; > mso-fareast-font-family: 'Times New Roman'; mso-ansi-language: EN-US; > mso-fareast-language: EN-US; mso-bidi-language: AR-SA">Thanks</SPAN></DIV> > <DIV><SPAN style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman'; > mso-fareast-font-family: 'Times New Roman'; mso-ansi-language: EN-US; > mso-fareast-language: EN-US; mso-bidi-language: AR-SA"></SPAN> </DIV> > <DIV><SPAN style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman'; > mso-fareast-font-family: 'Times New Roman'; mso-ansi-language: EN-US; > mso-fareast-language: EN-US; mso-bidi-language: AR-SA">Steve > Robischon</SPAN></DIV> > <DIV><SPAN style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman'; > mso-fareast-font-family: 'Times New Roman'; mso-ansi-language: EN-US; > mso-fareast-language: EN-US; mso-bidi-language: AR-SA"></SPAN> </DIV> > <DIV><SPAN style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman'; > mso-fareast-font-family: 'Times New Roman'; mso-ansi-language: EN-US; > mso-fareast-language: EN-US; mso-bidi-language: AR-SA"></SPAN> </DIV><p> > <hr size=1>Yahoo! Mail Mobile<br> > <a > href="http://us.rd.yahoo.com/mail_us/taglines/mobile/*http://mobile.yahoo.com/learn/mail">Take > Yahoo! Mail with you!</a> Check email on your mobile phone. It was kind of hard to read this HTML, but are you asking for the VB wrapper? If so, see: ftp://unidata.ucar.edu/pub/netcdf/contrib/win32/netcdf_vb_net_wrapper.zip Good luck! Ed -- Ed Hartnett -- address@hidden