Resources

NOAA SWDI Preliminary Local Storm Report Data

/*----------------------------------------------------------------

                   SAS SAMPLE LIBRARY

       Name: noaaex02.sas
Description: Example program from SAS/ETS User's Guide,
             The SASENOAA Interface Engine
      Title: NOAA SWDI Preliminary Local Storm Report Data
             Using the BBOX= option
    Product: SAS/ETS Software
       Keys: NOAA Severe Weather Data Inventory for NOAASET=plsr
      Procs: SASENOAA
      Notes: Read this before you run this sample.
             The sample data provided resides in the ets/sasmisc folder,
             and is only provided so that you can see how the data you
             download is supposed to look.
             The XML data that SASENOAA downloads
             should look the same as the sample data.

             You can define a system environment variable
             named NOAA_DATA that designates the path of your writeable
             folder where the maps and XML files from the NOAA SWDIWS are
             to be written.
             To assign a fileref to the external file to be processed,
             you could then use the NOAA_DATA environment variable in the
             following form of the libname statement:

           libname noaa sasenoaa "%sysget(NOAA_DATA)"
              OUTXML=my8BB
              AUTOMAP=replace
              MAPREF=MyMap
              XMLMAP="%sysget(NOAA_DATA)my8BB.map"
              NOAASET=plsr
              RANGE='20060505:20060510'
              BBOX='-91,30,-90,31'
              FORMAT=xml
              ;

             Alternatively, you can specify a path to an already existing
             physical folder such as "/sasusr/playpens/saskff/noaa/test/"
             as shown in the code that follows.
 ----------------------------------------------------------------*/


options validvarname=any
   sslcalistloc="/SASSecurityCertificateFramework/1.1/cacerts/trustedcerts.pem";

title 'Retrieve the NOAA SWDI PLSR Data for a Bounding Box';
libname _all_ clear;
libname mylib "/sasusr/playpens/saskff/noaa/doc/";

libname noaa sasenoaa "/sasusr/playpens/saskff/noaa/test/"
   noaaset=plsr
   range='20060505:20060510'
   bbox='-91,30,-90,31'
   id='427200'
   outXml=my8BB
   automap=replace
   mapref=MyMap
   xmlmap="/sasusr/playpens/saskff/noaa/test/my8BB.map"
   format=xml
   ;

data mylib.PLSRbb;
   set noaa.my8BB;
run;

proc contents data=mylib.PLSRbb; run;
proc print data=mylib.PLSRbb; run;

libname myreport "/sasusr/playpens/saskff/noaa/test/";

proc contents data=myreport.my8bb_m; run;
proc print data=myreport.my8bb_m; run;