[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: .NET Wrapper for NetCDF



Steve Robischon <address@hidden> writes:

> <DIV>Mr. Hartnett,</DIV>
> <DIV>&nbsp;</DIV>
> <DIV>I am doing some development work for some researchers at the University 
> of Idaho involving streamflow modelling.&nbsp; They have a submodel that 
> "downscales" gridded NetCDF formatted&nbsp;NCEP&nbsp;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>&nbsp;
>  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.&nbsp; I&nbsp;need to write&nbsp;code 
> that will FTP pull the appropriate forecast data, read values from a small 
> subset of the&nbsp;NetCDF data file, and apply the regression models to the 
> station locations of interest.&nbsp; </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>&nbsp;</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&nbsp;add a reference in&nbsp;a Visual Studio .NET 
> project to&nbsp;the precompiled Windows binary&nbsp; <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.&nbsp; 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>&nbsp;</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.&nbsp; 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>&nbsp;</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. &nbsp;I hope this newbie request is not too far out of line.&nbsp; 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>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;</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