Codota Logo
DMSPHeader$DateFormatHandler
Code IndexAdd Codota to your IDE (free)

How to use
DMSPHeader$DateFormatHandler
in
ucar.nc2.iosp.dmsp

Best Java code snippets using ucar.nc2.iosp.dmsp.DMSPHeader$DateFormatHandler (Showing top 13 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
ScheduledThreadPoolExecutor s =
  • Codota Iconnew ScheduledThreadPoolExecutor(corePoolSize)
  • Codota IconThreadFactory threadFactory;new ScheduledThreadPoolExecutor(corePoolSize, threadFactory)
  • Codota IconString str;new ScheduledThreadPoolExecutor(1, new ThreadFactoryBuilder().setNameFormat(str).build())
  • Smart code suggestions by Codota
}
origin: edu.ucar/cdm

/**
 * Parse the processing/history information from the header.
 *
 * @throws IOException if any problems reading the file (or validating the file).
 */
private void handleProcessingInformation()
    throws IOException
{
 suborbitHistoryAtt = new Attribute( this.suborbitHistoryAttName,
                   (String) headerInfo.get( HeaderInfoTitle.SUBORBIT_HISTORY.toString() ) );
 processingSystemAtt = new Attribute( this.processingSystemAttName,
                    (String) headerInfo.get( HeaderInfoTitle.PROCESSING_SYSTEM.toString() ) );
 String processingDateString = (String) headerInfo.get( HeaderInfoTitle.PROCESSING_DATE.toString() );
 try
 {
  processingDate = DateFormatHandler.ALT_DATE_TIME.getDateFromDateTimeString( processingDateString );
 }
 catch ( ParseException e )
 {
  throw new IOException( "Invalid DMSP file: processing date string <" + processingDateString + "> not parseable: " + e.getMessage() );
 }
 processingDateAtt = new Attribute(
     this.processingDateAttName,
     DateFormatHandler.ISO_DATE_TIME.getDateTimeStringFromDate( processingDate ) );
}
origin: Unidata/thredds

assertTrue("Alternate date/time format string <" + DMSPHeader.DateFormatHandler.ALT_DATE_TIME.getDateTimeFormatString() + "> not as expected <" + altDateTimeFormatString + ">.",
    DMSPHeader.DateFormatHandler.ALT_DATE_TIME.getDateTimeFormatString().equals(altDateTimeFormatString));
 testDate = DMSPHeader.DateFormatHandler.ALT_DATE_TIME.getDateFromDateTimeString(targetDate1AltDateTimeString);
} catch (ParseException e) {
 assertTrue("Unexpected ParseException while parsing date/time string <" + targetDate1AltDateTimeString + ">: " + e.getMessage(),
testDateTimeString = DMSPHeader.DateFormatHandler.ALT_DATE_TIME.getDateTimeStringFromDate(targetDate1);
assertTrue("Date/time string <" + testDateTimeString + "> not as expected <" + targetDate1AltDateTimeString + ">.",
    testDateTimeString.equals(targetDate1AltDateTimeString));
origin: Unidata/thredds

retVal.append( DateFormatHandler.ALT_DATE_TIME.getDateTimeStringFromDate( this.processingDate ) );
retVal.append( "\n" );
origin: edu.ucar/cdm

retVal.append( DateFormatHandler.ALT_DATE_TIME.getDateTimeStringFromDate( this.processingDate ) );
retVal.append( "\n" );
origin: Unidata/thredds

/**
 * Parse the processing/history information from the header.
 *
 * @throws IOException if any problems reading the file (or validating the file).
 */
private void handleProcessingInformation()
    throws IOException
{
 suborbitHistoryAtt = new Attribute(this.suborbitHistoryAttName,
     headerInfo.get(HeaderInfoTitle.SUBORBIT_HISTORY.toString()));
 processingSystemAtt = new Attribute(this.processingSystemAttName,
     headerInfo.get(HeaderInfoTitle.PROCESSING_SYSTEM.toString()));
 String processingDateString = headerInfo.get(HeaderInfoTitle.PROCESSING_DATE.toString());
 try
 {
  processingDate = DateFormatHandler.ALT_DATE_TIME.getDateFromDateTimeString( processingDateString );
 }
 catch ( ParseException e )
 {
  throw new IOException( "Invalid DMSP file: processing date string <" + processingDateString + "> not parseable: " + e.getMessage() );
 }
 processingDateAtt = new Attribute(
     this.processingDateAttName,
     DateFormatHandler.ISO_DATE_TIME.getDateTimeStringFromDate( processingDate ) );
}
origin: Unidata/thredds

this.startDateString = this.header.getStartDateAtt().getStringValue();
try {
 this.startDate = DMSPHeader.DateFormatHandler.ISO_DATE_TIME.getDateFromDateTimeString(this.startDateString);
} catch (ParseException e) {
 throw new IOException("Invalid DMSP file: \"startDate\" attribute value <" + this.startDateString +
     "> not parseable with format string <" + DMSPHeader.DateFormatHandler.ISO_DATE_TIME.getDateTimeFormatString() + ">.");
origin: edu.ucar/cdm

this.startDateString = this.header.getStartDateAtt().getStringValue();
try {
 this.startDate = DMSPHeader.DateFormatHandler.ISO_DATE_TIME.getDateFromDateTimeString(this.startDateString);
} catch (ParseException e) {
 throw new IOException("Invalid DMSP file: \"startDate\" attribute value <" + this.startDateString +
     "> not parseable with format string <" + DMSPHeader.DateFormatHandler.ISO_DATE_TIME.getDateTimeFormatString() + ">.");
origin: edu.ucar/netcdf

this.startDateString = this.header.getStartDateAtt().getStringValue();
try {
 this.startDate = DMSPHeader.DateFormatHandler.ISO_DATE_TIME.getDateFromDateTimeString(this.startDateString);
} catch (ParseException e) {
 throw new IOException("Invalid DMSP file: \"startDate\" attribute value <" + this.startDateString +
     "> not parseable with format string <" + DMSPHeader.DateFormatHandler.ISO_DATE_TIME.getDateTimeFormatString() + ">.");
origin: edu.ucar/netcdf

             + "T" + time.substring( 0, time.indexOf( '.')+4) + "Z";
try {
 this.startDate = DateFormatHandler.ISO_DATE_TIME.getDateFromDateTimeString( startDateTimeUTC);
this.startDateAtt = new Attribute( this.startDateAttName, DateFormatHandler.ISO_DATE_TIME.getDateTimeStringFromDate( this.startDate));
            + "T" + time.substring( 0, time.indexOf( '.')+4) + "Z";
try {
 this.endDate = DateFormatHandler.ISO_DATE_TIME.getDateFromDateTimeString( endDateTimeUTC);
                  DateFormatHandler.ISO_DATE_TIME.getDateTimeStringFromDate( this.endDate));
origin: Unidata/thredds

             + "T" + time.substring( 0, time.indexOf( '.')+4) + "Z";
try {
 this.startDate = DateFormatHandler.ISO_DATE_TIME.getDateFromDateTimeString( startDateTimeUTC);
this.startDateAtt = new Attribute( this.startDateAttName, DateFormatHandler.ISO_DATE_TIME.getDateTimeStringFromDate( this.startDate));
            + "T" + time.substring( 0, time.indexOf( '.')+4) + "Z";
try {
 this.endDate = DateFormatHandler.ISO_DATE_TIME.getDateFromDateTimeString( endDateTimeUTC);
                  DateFormatHandler.ISO_DATE_TIME.getDateTimeStringFromDate( this.endDate));
origin: edu.ucar/netcdf

/**
 * Parse the processing/history information from the header.
 *
 * @throws IOException if any problems reading the file (or validating the file).
 */
private void handleProcessingInformation()
    throws IOException
{
 suborbitHistoryAtt = new Attribute( this.suborbitHistoryAttName,
                   (String) headerInfo.get( HeaderInfoTitle.SUBORBIT_HISTORY.toString() ) );
 processingSystemAtt = new Attribute( this.processingSystemAttName,
                    (String) headerInfo.get( HeaderInfoTitle.PROCESSING_SYSTEM.toString() ) );
 String processingDateString = (String) headerInfo.get( HeaderInfoTitle.PROCESSING_DATE.toString() );
 try
 {
  processingDate = DateFormatHandler.ALT_DATE_TIME.getDateFromDateTimeString( processingDateString );
 }
 catch ( ParseException e )
 {
  throw new IOException( "Invalid DMSP file: processing date string <" + processingDateString + "> not parseable: " + e.getMessage() );
 }
 processingDateAtt = new Attribute(
     this.processingDateAttName,
     DateFormatHandler.ISO_DATE_TIME.getDateTimeStringFromDate( processingDate ) );
}
origin: edu.ucar/cdm

             + "T" + time.substring( 0, time.indexOf( '.')+4) + "Z";
try {
 this.startDate = DateFormatHandler.ISO_DATE_TIME.getDateFromDateTimeString( startDateTimeUTC);
this.startDateAtt = new Attribute( this.startDateAttName, DateFormatHandler.ISO_DATE_TIME.getDateTimeStringFromDate( this.startDate));
            + "T" + time.substring( 0, time.indexOf( '.')+4) + "Z";
try {
 this.endDate = DateFormatHandler.ISO_DATE_TIME.getDateFromDateTimeString( endDateTimeUTC);
                  DateFormatHandler.ISO_DATE_TIME.getDateTimeStringFromDate( this.endDate));
origin: edu.ucar/netcdf

retVal.append( DateFormatHandler.ALT_DATE_TIME.getDateTimeStringFromDate( this.processingDate ) );
retVal.append( "\n" );
ucar.nc2.iosp.dmspDMSPHeader$DateFormatHandler

Javadoc

Class for dealing with date/time formats (from the header and for nc file).

Most used methods

  • getDateFromDateTimeString
    Return a java.util.Date given a date string using the date/time format string.
  • getDateTimeFormatString
  • getDateTimeStringFromDate
    Return the date/time string that represents the given a java.util.Date in the format of this DataFor

Popular in Java

  • Updating database using SQL prepared statement
  • getSupportFragmentManager (FragmentActivity)
  • setRequestProperty (URLConnection)
    Sets the general request property. If a property with the key already exists, overwrite its value wi
  • findViewById (Activity)
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • HttpURLConnection (java.net)
    An URLConnection for HTTP (RFC 2616 [http://tools.ietf.org/html/rfc2616]) used to send and receive d
  • MalformedURLException (java.net)
    Thrown to indicate that a malformed URL has occurred. Either no legal protocol could be found in a s
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • MessageFormat (java.text)
    MessageFormat provides a means to produce concatenated messages in language-neutral way. Use this to
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now