[Thread Prev][Thread Next][Index]

RE: [las_users] NullPointerException error in LAS 7.3 getGrid



Hi Roland,

  Thanks for your reply and suggestions.  Actually we could list all 21000 points in the old LAS 6.

http://apdrc.soest.hawaii.edu/las/v6/dataset?dset=APDRC%20Public-Access%20Products/Paleoclimate%20modeling/ECBilt-CLIO/SIM2bl/SIM2bl%20Annual%20atmosphere

using the <v></v> and use a Ferret script to reassign the time as a point.

  <time-t-id-b09cb8cf16 type="t" units="year">

    <v>0</v>

    <v>1</v>

    <v>2</v>

    <v>3</v>

......

    <v>20996</v>

    <v>20997</v>

    <v>20998</v>

    <v>20999</v>

  </time-t-id-b09cb8cf16>

 

>Unfortunately the _javascript_ date widget cannot handle the dates in 22900 (or any year > 8000). 

As you said the _javascript_ date widget could not generate this large points.  I tried it.  The loading time is slow, and browser is not responded after awhile.

Does LAS have option not to use date widget? and use input text box like LAS 6 having a input textbox next to it?

 

>The only thing I can think of would be to configure the data set in 8000 year pieces

>and use metadata to explain to the user that the year is n*8000 + i.

 

Do you mean configuring 3 different xml files? (year 0-8000, year 8001-16000, year 16001-20999)

The problem with this approach is that if a person likes to do a time series plot.  It will not allow to show all of the time range.

 

Thanks,

  Kin

 

From: Roland Schweitzer [mailto:Roland.Schweitzer@xxxxxxxx]
Sent: Wednesday, September 21, 2011 4:45 AM
To: Kin Lik Wang
Cc: oar.pmel.las_users@xxxxxxxx
Subject: Re: [las_users] NullPointerException error in LAS 7.3 getGrid

 

On 09/20/2011 07:27 PM, Kin Lik Wang wrote:

Hi Roland,

  Thank you very much for looking into it.  You are right because I have another xml file with a missing time prior this ASCAT xml file.

So it would not allow me to find the time.  I fixed it, then both the datasets are working fine now. 

 

I have another problem about time range if that is too big.  For example, this SIM2bl dataset with 21000 years.

http://apdrc.soest.hawaii.edu/dods/public_data/Paleoclimate_modeling/ECBilt-CLIO/SIM2bl/atm-annual/single_level

Time: 00Z01JAN0000 to 00Z01JAN20999 (21000 points, avg. res. 365.243 days)

I used the addXML to create the xml file.

I worked in LAS6 and loaded fast, but it loaded kind of slow or not responded with some pop-up _javascript_ warning messages in LAS 7.3.

The pop-up warning showed:

“A script on this page may be busy, or it may have stopped responding. You can stop the script now, or you can continue to see if the script will complete.”

Do you have another method loading the time range with input text box rather than scroll menu?

 

Thanks,

  Kin

 


You can get a smaller configuration by using the -a:t option to force the time axis to be estimated rather than have all 21000 point included in the XML.


Unfortunately the _javascript_ date widget cannot handle the dates in 22900 (or any year > 8000).  The only thing I can think of would be to configure the data set in 8000 year pieces and use metadata to explain to the user that the year is n*8000 + i.

Roland


rhs@gazelle:~/Workspaces/MyEclipse/baker$ bin/addXML.sh -a:t -n http://apdrc.soest.hawaii.edu/dods/public_data/Paleoclimate_modeling/ECBilt-CLIO/SIM2bl/atm-annual/single_level
rhs@gazelle:~/Workspaces/MyEclipse/baker$ more las_from_addXML.xml
<datasets>
  <id-aeccc88b73 name="Annual atmospheric - single level fields" url="" href="http://apdrc.soest.hawaii.edu/dods/public_data/Paleoclimate_modeling/ECBilt-CLIO/SIM2bl/atm-annual/single_level">"http://apdrc.soest.hawaii.edu/dods/public_data/Paleoclimate_modeling/ECBilt-CLIO/SIM2bl/atm-annual/single_level">
    <variables>
      <alb-id-aeccc88b73 name="surface albedo [%]" units="no units" url="">        <link match="/lasdata/grids/grid-lon-lat-time-id-aeccc88b73" />
      </alb-id-aeccc88b73>
      <bm-id-aeccc88b73 name="bottom moisture [m]" units="no units" url="">        <link match="/lasdata/grids/grid-lon-lat-time-id-aeccc88b73" />
      </bm-id-aeccc88b73>
      <eminp-id-aeccc88b73 name="evaporation minus precipitation [cm/yr]" units="no units" url="">        <link match="/lasdata/grids/grid-lon-lat-time-id-aeccc88b73" />
      </eminp-id-aeccc88b73>
      <evap-id-aeccc88b73 name="surface evaporation [cm/yr]" units="no units" url="">        <link match="/lasdata/grids/grid-lon-lat-time-id-aeccc88b73" />
      </evap-id-aeccc88b73>
      <hic-id-aeccc88b73 name="sea ice thickness [m]" units="no units" url="">        <link match="/lasdata/grids/grid-lon-lat-time-id-aeccc88b73" />
      </hic-id-aeccc88b73>
      <lhf-id-aeccc88b73 name="surface latent heat flux [w/m^2]" units="no units" url="">        <link match="/lasdata/grids/grid-lon-lat-time-id-aeccc88b73" />
      </lhf-id-aeccc88b73>
      <palb-id-aeccc88b73 name="planetary albedo [%]" units="no units" url="">        <link match="/lasdata/grids/grid-lon-lat-time-id-aeccc88b73" />
      </palb-id-aeccc88b73>
      <pp-id-aeccc88b73 name="total precipitation [cm/yr]" units="no units" url="">        <link match="/lasdata/grids/grid-lon-lat-time-id-aeccc88b73" />
      </pp-id-aeccc88b73>
      <q-id-aeccc88b73 name="specific humidity [kg/kg]" units="no units" url="">        <link match="/lasdata/grids/grid-lon-lat-time-id-aeccc88b73" />
      </q-id-aeccc88b73>
      <r-id-aeccc88b73 name="relative humidity [kg/kg]" units="no units" url="">        <link match="/lasdata/grids/grid-lon-lat-time-id-aeccc88b73" />
      </r-id-aeccc88b73>
      <runoffl-id-aeccc88b73 name="surface runoff over land [cm/yr]" units="no units" url="">        <link match="/lasdata/grids/grid-lon-lat-time-id-aeccc88b73" />
      </runoffl-id-aeccc88b73>
      <runoffo-id-aeccc88b73 name="surface runoff over ocean [cm/yr]" units="no units" url="">        <link match="/lasdata/grids/grid-lon-lat-time-id-aeccc88b73" />
      </runoffo-id-aeccc88b73>
      <sdl-id-aeccc88b73 name="snow depth over land [m]" units="no units" url="">        <link match="/lasdata/grids/grid-lon-lat-time-id-aeccc88b73" />
      </sdl-id-aeccc88b73>
      <shf-id-aeccc88b73 name="surface sensible heat flux [w/m^2]" units="no units" url="">        <link match="/lasdata/grids/grid-lon-lat-time-id-aeccc88b73" />
      </shf-id-aeccc88b73>
      <snow-id-aeccc88b73 name="total snow fall [cm/yr]" units="no units" url="">        <link match="/lasdata/grids/grid-lon-lat-time-id-aeccc88b73" />
      </snow-id-aeccc88b73>
      <ssr-id-aeccc88b73 name="surface solar radiation [w/m^2]" units="no units" url="">        <link match="/lasdata/grids/grid-lon-lat-time-id-aeccc88b73" />
      </ssr-id-aeccc88b73>
      <str-id-aeccc88b73 name="surface thermal radiation [w/m^2]" units="no units" url="">        <link match="/lasdata/grids/grid-lon-lat-time-id-aeccc88b73" />
      </str-id-aeccc88b73>
      <t2m-id-aeccc88b73 name="temperature at 2 meters [celsius]" units="no units" url="">        <link match="/lasdata/grids/grid-lon-lat-time-id-aeccc88b73" />
      </t2m-id-aeccc88b73>
      <tcc-id-aeccc88b73 name="total cloud cover" units="no units" url="">        <link match="/lasdata/grids/grid-lon-lat-time-id-aeccc88b73" />
      </tcc-id-aeccc88b73>
      <ts-id-aeccc88b73 name="surface temperature [celsius]" units="no units" url="">        <link match="/lasdata/grids/grid-lon-lat-time-id-aeccc88b73" />
      </ts-id-aeccc88b73>
      <tsr-id-aeccc88b73 name="top solar radiation [w/m^2]" units="no units" url="">        <link match="/lasdata/grids/grid-lon-lat-time-id-aeccc88b73" />
      </tsr-id-aeccc88b73>
      <ttr-id-aeccc88b73 name="top thermal radiation [w/m^2]" units="no units" url="">        <link match="/lasdata/grids/grid-lon-lat-time-id-aeccc88b73" />
      </ttr-id-aeccc88b73>
    </variables>
  </id-aeccc88b73>
</datasets>
<grids>
  <grid-lon-lat-time-id-aeccc88b73>
    <link match="/lasdata/axes/lon-x-id-aeccc88b73" />
    <link match="/lasdata/axes/lat-y-id-aeccc88b73" />
    <link match="/lasdata/axes/time-t-id-aeccc88b73" />
  </grid-lon-lat-time-id-aeccc88b73>
</grids>
<axes>
  <lon-x-id-aeccc88b73 type="x" units="degrees_east">
    <arange start="0" size="64" step="5.625" />
  </lon-x-id-aeccc88b73>
  <lat-y-id-aeccc88b73 type="y" units="degrees_north">
    <v>-85.7606</v>
    <v>-80.2688</v>
    <v>-74.7445</v>
    <v>-69.213</v>
    <v>-63.6786</v>
    <v>-58.143</v>
    <v>-52.6065</v>
    <v>-47.0696</v>
    <v>-41.5325</v>
    <v>-35.9951</v>
    <v>-30.4576</v>
    <v>-24.9199</v>
    <v>-19.3822</v>
    <v>-13.8445</v>
    <v>-8.3067</v>
    <v>-2.7689</v>
    <v>2.7689</v>
    <v>8.3067</v>
    <v>13.8445</v>
    <v>19.3822</v>
    <v>24.9199</v>
    <v>30.4576</v>
    <v>35.9951</v>
    <v>41.5325</v>
    <v>47.0696</v>
    <v>52.6065</v>
    <v>58.143</v>
    <v>63.6786</v>
    <v>69.213</v>
    <v>74.7445</v>
    <v>80.2688</v>
    <v>85.7606</v>
  </lat-y-id-aeccc88b73>
  <time-t-id-aeccc88b73 type="t" modulo="true" units="year">
    <arange start="0000-01-01" size="21000" step="1" />
  </time-t-id-aeccc88b73>
</axes>


[Thread Prev][Thread Next][Index]


Contact Us
Dept of Commerce / NOAA / OAR / PMEL / TMAP

Privacy Policy | Disclaimer | Accessibility Statement